kayfahaarukku commited on
Commit
1bbc80e
1 Parent(s): d00ca06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -11,7 +11,7 @@ tqdm.monitor_interval = 0
11
 
12
  # Load the diffusion pipeline
13
  pipe = StableDiffusionXLPipeline.from_pretrained(
14
- "kayfahaarukku/UrangDiffusion-2.0",
15
  torch_dtype=torch.float16,
16
  custom_pipeline="lpw_stable_diffusion_xl",
17
  )
@@ -58,11 +58,11 @@ def interface_fn(prompt, negative_prompt, use_defaults, resolution, guidance_sca
58
  return image, seed, gr.update(value=metadata_text)
59
 
60
  def reset_inputs():
61
- return gr.update(value=''), gr.update(value=''), gr.update(value=True), gr.update(value='832x1216'), gr.update(value=7), gr.update(value=28), gr.update(value=0), gr.update(value=True), gr.update(value='')
62
 
63
- with gr.Blocks(title="UrangDiffusion 2.0 Demo", theme="NoCrypt/miku@1.2.1") as demo:
64
  gr.HTML(
65
- "<h1>UrangDiffusion 2.0 Demo</h1>"
66
  "This demo is intended to showcase what the model is capable of and is not intended to be the main generation platform. Results produced with Diffusers are not the best, and it's highly recommended for you to get the model running inside Stable Diffusion WebUI or ComfyUI."
67
  )
68
  with gr.Row():
@@ -78,7 +78,7 @@ with gr.Blocks(title="UrangDiffusion 2.0 Demo", theme="NoCrypt/miku@1.2.1") as d
78
  label="Resolution",
79
  value="832x1216"
80
  )
81
- guidance_scale_input = gr.Slider(minimum=1, maximum=20, step=0.5, label="Guidance Scale", value=7)
82
  num_inference_steps_input = gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=28)
83
  seed_input = gr.Slider(minimum=0, maximum=999999999, step=1, label="Seed", value=0, interactive=True)
84
  randomize_seed_input = gr.Checkbox(label="Randomize Seed", value=True)
@@ -103,7 +103,8 @@ with gr.Blocks(title="UrangDiffusion 2.0 Demo", theme="NoCrypt/miku@1.2.1") as d
103
 
104
  ### Recommended settings:
105
  - Steps: 25-30
106
- - CFG: 5-7
 
107
  """
108
  )
109
 
 
11
 
12
  # Load the diffusion pipeline
13
  pipe = StableDiffusionXLPipeline.from_pretrained(
14
+ "kayfahaarukku/irAsu-1.0",
15
  torch_dtype=torch.float16,
16
  custom_pipeline="lpw_stable_diffusion_xl",
17
  )
 
58
  return image, seed, gr.update(value=metadata_text)
59
 
60
  def reset_inputs():
61
+ return gr.update(value=''), gr.update(value=''), gr.update(value=True), gr.update(value='832x1216'), gr.update(value=4), gr.update(value=28), gr.update(value=0), gr.update(value=True), gr.update(value='')
62
 
63
+ with gr.Blocks(title="irAsu 1.0 Demo", theme="NoCrypt/miku@1.2.1") as demo:
64
  gr.HTML(
65
+ "<h1>irAsu 1.0 Demo</h1>"
66
  "This demo is intended to showcase what the model is capable of and is not intended to be the main generation platform. Results produced with Diffusers are not the best, and it's highly recommended for you to get the model running inside Stable Diffusion WebUI or ComfyUI."
67
  )
68
  with gr.Row():
 
78
  label="Resolution",
79
  value="832x1216"
80
  )
81
+ guidance_scale_input = gr.Slider(minimum=1, maximum=20, step=0.5, label="Guidance Scale", value=4)
82
  num_inference_steps_input = gr.Slider(minimum=1, maximum=100, step=1, label="Number of Inference Steps", value=28)
83
  seed_input = gr.Slider(minimum=0, maximum=999999999, step=1, label="Seed", value=0, interactive=True)
84
  randomize_seed_input = gr.Checkbox(label="Randomize Seed", value=True)
 
103
 
104
  ### Recommended settings:
105
  - Steps: 25-30
106
+ - CFG: 3.5-5
107
+ - Sweet spot: 28 steps, 4 CFG
108
  """
109
  )
110