dezzman commited on
Commit
c1e556a
·
verified ·
1 Parent(s): b8002e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ def infer(
167
  cn_mode,
168
  pipeline_mgr.get_hed_detector()
169
  )
170
- params['controlnet_conditioning_scale'] = cn_strength
171
 
172
  if ip_enable:
173
  pipe.load_ip_adapter(IP_ADAPTER, subfolder="models", weight_name=IP_ADAPTER_WEIGHT_NAME)
 
167
  cn_mode,
168
  pipeline_mgr.get_hed_detector()
169
  )
170
+ params['controlnet_conditioning_scale'] = float(cn_strength)
171
 
172
  if ip_enable:
173
  pipe.load_ip_adapter(IP_ADAPTER, subfolder="models", weight_name=IP_ADAPTER_WEIGHT_NAME)