silveroxides commited on
Commit
c4ec763
·
verified ·
1 Parent(s): 0091b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -148,6 +148,7 @@ t5tokenizeroptions = NODE_CLASS_MAPPINGS["T5TokenizerOptions"]()
148
  cliptextencode = CLIPTextEncode()
149
  unetloader = UNETLoader()
150
  vaeloader = VAELoader()
 
151
  cfgguider = NODE_CLASS_MAPPINGS["CFGGuider"]()
152
  betascheduler = NODE_CLASS_MAPPINGS["BetaSamplingScheduler"]()
153
  samplercustomadvanced = NODE_CLASS_MAPPINGS["SamplerCustomAdvanced"]()
@@ -191,7 +192,7 @@ def generate_image(prompt, negative_prompt, width, height, steps, cfg, seed):
191
  emptysd3latentimage_69 = emptysd3latentimage.generate(
192
  width=width, height=height, batch_size=1
193
  )
194
- ksamplerselect_72 = ksamplerselect.get_sampler(sampler_name="euler")
195
 
196
  cliptextencode_74 = cliptextencode.encode(
197
  text=prompt,
@@ -203,6 +204,14 @@ def generate_image(prompt, negative_prompt, width, height, steps, cfg, seed):
203
  clip=get_value_at_index(t5tokenizeroptions_82, 0),
204
  )
205
 
 
 
 
 
 
 
 
 
206
  cfgguider_73 = cfgguider.get_guider(
207
  cfg=cfg,
208
  model=get_value_at_index(unetloader_76, 0),
@@ -212,7 +221,7 @@ def generate_image(prompt, negative_prompt, width, height, steps, cfg, seed):
212
 
213
  betascheduler_84 = betascheduler.get_sigmas(
214
  steps=steps,
215
- alpha=0.4,
216
  beta=0.4,
217
  model=get_value_at_index(unetloader_76, 0),
218
  )
@@ -247,7 +256,7 @@ with gr.Blocks() as app:
247
 
248
  Model: [Chroma](https://huggingface.co/lodestones/Chroma) by [lodestones](https://huggingface.co/lodestones)
249
 
250
- Chroma Version: {CHROMA_VERSION}
251
 
252
  Run any ComfyUI Workflow on Spaces: [ComfyUI Workflows](https://huggingface.co/blog/run-comfyui-workflows-on-spaces)
253
 
@@ -288,7 +297,7 @@ Space Author: [GitHub](https://github.com/gokayfem) | [X.com](https://x.com/goka
288
  steps = gr.Slider(
289
  minimum=1,
290
  maximum=50,
291
- value=26,
292
  step=1,
293
  label="Steps"
294
  )
 
148
  cliptextencode = CLIPTextEncode()
149
  unetloader = UNETLoader()
150
  vaeloader = VAELoader()
151
+ modelsamplingflux = NODE_CLASS_MAPPINGS["ModelSamplingFlux"]
152
  cfgguider = NODE_CLASS_MAPPINGS["CFGGuider"]()
153
  betascheduler = NODE_CLASS_MAPPINGS["BetaSamplingScheduler"]()
154
  samplercustomadvanced = NODE_CLASS_MAPPINGS["SamplerCustomAdvanced"]()
 
192
  emptysd3latentimage_69 = emptysd3latentimage.generate(
193
  width=width, height=height, batch_size=1
194
  )
195
+ ksamplerselect_72 = ksamplerselect.get_sampler(sampler_name="res_multistep")
196
 
197
  cliptextencode_74 = cliptextencode.encode(
198
  text=prompt,
 
204
  clip=get_value_at_index(t5tokenizeroptions_82, 0),
205
  )
206
 
207
+ modelsamplingflux_85 = modelsamplingflux.patch(
208
+ max_shift=1.0,
209
+ base_shift=0.0,
210
+ width=width,
211
+ height=height,
212
+ model=get_value_at_index(unetloader_76, 0),
213
+ )
214
+
215
  cfgguider_73 = cfgguider.get_guider(
216
  cfg=cfg,
217
  model=get_value_at_index(unetloader_76, 0),
 
221
 
222
  betascheduler_84 = betascheduler.get_sigmas(
223
  steps=steps,
224
+ alpha=0.55,
225
  beta=0.4,
226
  model=get_value_at_index(unetloader_76, 0),
227
  )
 
256
 
257
  Model: [Chroma](https://huggingface.co/lodestones/Chroma) by [lodestones](https://huggingface.co/lodestones)
258
 
259
+ Chroma CFG Rescaled Version Use Only 1.0 CFG: {CHROMA_VERSION}
260
 
261
  Run any ComfyUI Workflow on Spaces: [ComfyUI Workflows](https://huggingface.co/blog/run-comfyui-workflows-on-spaces)
262
 
 
297
  steps = gr.Slider(
298
  minimum=1,
299
  maximum=50,
300
+ value=24,
301
  step=1,
302
  label="Steps"
303
  )