@@ -93,22 +93,22 @@ def __getattr__(self, attr):
93
93
94
94
95
95
def download_weights ():
96
- global p_14 , p_14_np
96
+ global p_15 , p_15_np
97
97
98
98
print ("sdbk mltl Loading Model" )
99
99
100
100
is_downloaded = False
101
101
for _ in range (10 ):
102
102
try :
103
103
104
- p_14 = ProgressBarDownloader (title = "Downloading Model 1/2" ).download (
105
- url = "https://huggingface.co/divamgupta/stable_diffusion_mps/resolve/main/sd-v1-4_fp16 .tdict" ,
106
- md5_checksum = "9f1fc1e94821d000b811e3bb6e7686b2 " ,
104
+ p_15 = ProgressBarDownloader (title = "Downloading Model 1/2" ).download (
105
+ url = "https://huggingface.co/divamgupta/stable_diffusion_mps/resolve/main/sd-v1-5_fp16 .tdict" ,
106
+ md5_checksum = "a36c79b8edb4b21b75e50d5834d1f4ae " ,
107
107
verify_ssl = False ,
108
108
extract_zip = False ,
109
109
)
110
110
111
- p_14_np = ProgressBarDownloader (title = "Downloading Model 2/2" ).download (
111
+ p_15_np = ProgressBarDownloader (title = "Downloading Model 2/2" ).download (
112
112
url = "https://huggingface.co/divamgupta/stable_diffusion_mps/resolve/main/sd-v1-5-inpainting_fp16.tdict" ,
113
113
md5_checksum = "68303f49cca00968c39abddc20b622a6" ,
114
114
verify_ssl = False ,
@@ -139,10 +139,10 @@ def process_opt(d, generator):
139
139
140
140
if d ['model_id' ] == 1 :
141
141
model_mode = "inpaint_15"
142
- tdict_path = p_14_np
142
+ tdict_path = p_15_np
143
143
print ("sdbk mdvr 1.5_inp" )
144
144
else :
145
- tdict_path = p_14
145
+ tdict_path = p_15
146
146
print ("sdbk mdvr 1.4" )
147
147
148
148
if d ['do_controlnet' ] == True :
@@ -262,7 +262,7 @@ def process_opt(d, generator):
262
262
263
263
def diffusion_bee_main ():
264
264
265
- global p_14 , p_14_np
265
+ global p_15 , p_15_np
266
266
download_weights ()
267
267
268
268
print ("sdbk mltl Loading Model" )
@@ -277,7 +277,7 @@ def callback(state="" , progress=-1):
277
277
if "__stop__" in get_input ():
278
278
return "stop"
279
279
280
- generator = StableDiffusion ( ModelInterface , p_14 , model_name = "sd_1x" , callback = callback , debug_output_path = debug_output_path )
280
+ generator = StableDiffusion ( ModelInterface , p_15 , model_name = "sd_1x" , callback = callback , debug_output_path = debug_output_path )
281
281
282
282
283
283
default_d = { "W" : 512 , "H" : 512 , "num_imgs" :1 , "ddim_steps" : 25 ,
0 commit comments