silveroxides commited on
Commit
5ea42b7
·
verified ·
1 Parent(s): 40661de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -171,15 +171,9 @@ unetloader_76 = unetloader.load_unet(
171
  )
172
  vaeloader_80 = vaeloader.load_vae(vae_name="ae.safetensors")
173
 
174
- loraloader_81 = loraloader.load_lora_model_only(
175
- lora_name=LORA_VERSION,
176
- strength_model=1.0,
177
- model=get_value_at_index(unetloader_76, 0),
178
- )
179
-
180
 
181
  # Add all the models that load a safetensors file
182
- model_loaders = [cliploader_78, unetloader_76, vaeloader_80, loraloader_81]
183
 
184
  # Check which models are valid and how to best load them
185
  valid_models = [
@@ -214,14 +208,20 @@ def generate_image(prompt, negative_prompt, width, height, steps, cfg, seed):
214
  clip=get_value_at_index(t5tokenizeroptions_82, 0),
215
  )
216
 
 
 
 
 
 
 
217
  modelsamplingauraflow_85 = modelsamplingauraflow.patch(
218
  shift=1.0,
219
- model=get_value_at_index(loraloader_81, 0),
220
  )
221
 
222
  cfgguider_73 = cfgguider.get_guider(
223
  cfg=cfg,
224
- model=get_value_at_index(loraloader_81, 0),
225
  positive=get_value_at_index(cliptextencode_74, 0),
226
  negative=get_value_at_index(cliptextencode_75, 0),
227
  )
@@ -230,7 +230,7 @@ def generate_image(prompt, negative_prompt, width, height, steps, cfg, seed):
230
  steps=steps,
231
  alpha=0.45,
232
  beta=0.45,
233
- model=get_value_at_index(loraloader_81, 0),
234
  )
235
 
236
  samplercustomadvanced_67 = samplercustomadvanced.sample(
 
171
  )
172
  vaeloader_80 = vaeloader.load_vae(vae_name="ae.safetensors")
173
 
 
 
 
 
 
 
174
 
175
  # Add all the models that load a safetensors file
176
+ model_loaders = [cliploader_78, unetloader_76, vaeloader_80]
177
 
178
  # Check which models are valid and how to best load them
179
  valid_models = [
 
208
  clip=get_value_at_index(t5tokenizeroptions_82, 0),
209
  )
210
 
211
+ loraloader_81 = loraloader.load_lora_model_only(
212
+ lora_name=LORA_VERSION,
213
+ strength_model=1.0,
214
+ model=get_value_at_index(unetloader_76, 0),
215
+ )
216
+
217
  modelsamplingauraflow_85 = modelsamplingauraflow.patch(
218
  shift=1.0,
219
+ model=get_value_at_index(unetloader_76, 0),
220
  )
221
 
222
  cfgguider_73 = cfgguider.get_guider(
223
  cfg=cfg,
224
+ model=get_value_at_index(unetloader_76, 0),
225
  positive=get_value_at_index(cliptextencode_74, 0),
226
  negative=get_value_at_index(cliptextencode_75, 0),
227
  )
 
230
  steps=steps,
231
  alpha=0.45,
232
  beta=0.45,
233
+ model=get_value_at_index(unetloader_76, 0),
234
  )
235
 
236
  samplercustomadvanced_67 = samplercustomadvanced.sample(