Spaces:
Runtime error
Runtime error
update
Browse files- sam2edit.py +0 -1
sam2edit.py
CHANGED
@@ -137,7 +137,6 @@ def create_demo():
|
|
137 |
print("To Use:", config_dict[condition_model], "Current:", default_controlnet_path)
|
138 |
if default_controlnet_path!=config_dict[condition_model]:
|
139 |
print("Change condition model to:", config_dict[condition_model])
|
140 |
-
del pipe
|
141 |
global pipe
|
142 |
pipe = obtain_generation_model(config_dict[condition_model])
|
143 |
default_controlnet_path = config_dict[condition_model]
|
|
|
137 |
print("To Use:", config_dict[condition_model], "Current:", default_controlnet_path)
|
138 |
if default_controlnet_path!=config_dict[condition_model]:
|
139 |
print("Change condition model to:", config_dict[condition_model])
|
|
|
140 |
global pipe
|
141 |
pipe = obtain_generation_model(config_dict[condition_model])
|
142 |
default_controlnet_path = config_dict[condition_model]
|