zerhero commited on
Commit
2b086e9
1 Parent(s): 3cee4b5

change to stream

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. gui.py +2 -2
app.py CHANGED
@@ -178,7 +178,6 @@ SD_GEN: GuiSD = GuiSD(
178
  task_stablepy=task_stablepy,
179
  lora_model_list=lora_model_list,
180
  embed_list=embed_list,
181
- stream=False
182
  )
183
 
184
  with open("app.css", "r") as f:
 
178
  task_stablepy=task_stablepy,
179
  lora_model_list=lora_model_list,
180
  embed_list=embed_list,
 
181
  )
182
 
183
  with open("app.css", "r") as f:
gui.py CHANGED
@@ -27,7 +27,7 @@ class GuiSD:
27
  self.model = Model_Diffusers(
28
  base_model_id="models/animaPencilXL_v500.safetensors",
29
  task_name="txt2img",
30
- vae_model=None,
31
  type_model_precision=torch.float16,
32
  retain_task_model_in_cache=False,
33
  )
@@ -415,7 +415,7 @@ class GuiSD:
415
  "ip_adapter_scale": params_ip_scale,
416
  }
417
 
418
- random_number = random.randint(1, 100)
419
  if random_number < 25 and num_images < 3:
420
  if (not upscaler_model and
421
  steps < 45 and
 
27
  self.model = Model_Diffusers(
28
  base_model_id="models/animaPencilXL_v500.safetensors",
29
  task_name="txt2img",
30
+ vae_model="vaes/sdXL_v10VAEFix.safetensors",
31
  type_model_precision=torch.float16,
32
  retain_task_model_in_cache=False,
33
  )
 
415
  "ip_adapter_scale": params_ip_scale,
416
  }
417
 
418
+ random_number: int = random.randint(1, 100)
419
  if random_number < 25 and num_images < 3:
420
  if (not upscaler_model and
421
  steps < 45 and