lemonaddie commited on
Commit
f12775a
1 Parent(s): 0c3bbb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -74,7 +74,7 @@ def depth_normal(img,
74
  domain):
75
 
76
  seed = int(seed)
77
- torch.manual_seed(seed)
78
 
79
  pipe_out = pipe(
80
  img,
@@ -83,6 +83,7 @@ def depth_normal(img,
83
  processing_res=processing_res,
84
  batch_size=0,
85
  domain=domain,
 
86
  show_progress_bar=True,
87
  )
88
 
@@ -158,7 +159,7 @@ def run_demo():
158
  step=1,
159
  value=4,
160
  )
161
- seed = gr.Number(42, label='Seed. May try different seed for better results.')
162
 
163
  processing_res = gr.Radio(
164
  [
 
74
  domain):
75
 
76
  seed = int(seed)
77
+ #torch.manual_seed(seed)
78
 
79
  pipe_out = pipe(
80
  img,
 
83
  processing_res=processing_res,
84
  batch_size=0,
85
  domain=domain,
86
+ seed = seed,
87
  show_progress_bar=True,
88
  )
89
 
 
159
  step=1,
160
  value=4,
161
  )
162
+ seed = gr.Number(0, label='Seed. Negative values for not specifying seeds')
163
 
164
  processing_res = gr.Radio(
165
  [