lemonaddie commited on
Commit
f788b7c
1 Parent(s): f3991d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -81,7 +81,8 @@ def depth_normal(img,
81
  domain):
82
 
83
  seed = int(seed)
84
- #torch.manual_seed(seed)
 
85
 
86
  pipe_out = pipe(
87
  img,
@@ -90,7 +91,7 @@ def depth_normal(img,
90
  processing_res=processing_res,
91
  batch_size=0,
92
  domain=domain,
93
- seed = seed,
94
  show_progress_bar=True,
95
  )
96
 
 
81
  domain):
82
 
83
  seed = int(seed)
84
+ if seed >= 0:
85
+ torch.manual_seed(seed)
86
 
87
  pipe_out = pipe(
88
  img,
 
91
  processing_res=processing_res,
92
  batch_size=0,
93
  domain=domain,
94
+ #seed = seed,
95
  show_progress_bar=True,
96
  )
97