lemonaddie commited on
Commit
ea219f3
·
verified ·
1 Parent(s): db47fe5

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +9 -9
app2.py CHANGED
@@ -75,7 +75,7 @@ def depth_normal(img,
75
  denoising_steps,
76
  ensemble_size,
77
  processing_res,
78
- #guidance_scale,
79
  domain):
80
 
81
  #img = img.resize((processing_res, processing_res), Image.Resampling.LANCZOS)
@@ -149,13 +149,13 @@ def run_demo():
149
  label="Data Type (Must Select One matches your image)",
150
  value="indoor",
151
  )
152
- # guidance_scale = gr.Slider(
153
- # label="Classifier Free Guidance Scale",
154
- # minimum=1,
155
- # maximum=5,
156
- # step=1,
157
- # value=3,
158
- # )
159
  denoising_steps = gr.Slider(
160
  label="Number of denoising steps (More stepes, better quality)",
161
  minimum=1,
@@ -192,7 +192,7 @@ def run_demo():
192
  inputs=[input_image, denoising_steps,
193
  ensemble_size,
194
  processing_res,
195
- #guidance_scale,
196
  domain],
197
  outputs=[depth, normal]
198
  )
 
75
  denoising_steps,
76
  ensemble_size,
77
  processing_res,
78
+ guidance_scale,
79
  domain):
80
 
81
  #img = img.resize((processing_res, processing_res), Image.Resampling.LANCZOS)
 
149
  label="Data Type (Must Select One matches your image)",
150
  value="indoor",
151
  )
152
+ guidance_scale = gr.Slider(
153
+ label="Classifier Free Guidance Scale",
154
+ minimum=1,
155
+ maximum=5,
156
+ step=1,
157
+ value=3,
158
+ )
159
  denoising_steps = gr.Slider(
160
  label="Number of denoising steps (More stepes, better quality)",
161
  minimum=1,
 
192
  inputs=[input_image, denoising_steps,
193
  ensemble_size,
194
  processing_res,
195
+ guidance_scale,
196
  domain],
197
  outputs=[depth, normal]
198
  )