Alexander Bagus commited on
Commit
7ca8d69
·
1 Parent(s): 2486fc0
Files changed (3) hide show
  1. app.py +2 -4
  2. static/data.json +3 -3
  3. static/header.html +1 -1
app.py CHANGED
@@ -27,8 +27,6 @@ weight_dtype = torch.bfloat16
27
  transformer = ZImageControlTransformer2DModel.from_pretrained(
28
  MODEL_LOCAL,
29
  subfolder="transformer",
30
- # low_cpu_mem_usage=False,
31
- # torch_dtype=torch.bfloat16,
32
  transformer_additional_kwargs={
33
  "control_layers_places": [0, 5, 10, 15, 20, 25],
34
  "control_in_dim": 16
@@ -236,9 +234,9 @@ with gr.Blocks(css=css) as demo:
236
  num_inference_steps = gr.Slider(
237
  label="Number of inference steps",
238
  minimum=1,
239
- maximum=30,
240
  step=1,
241
- value=8,
242
  )
243
  gr.Examples(examples=examples, inputs=[input_image, prompt, control_mode])
244
  gr.HTML(read_file("static/footer.html"))
 
27
  transformer = ZImageControlTransformer2DModel.from_pretrained(
28
  MODEL_LOCAL,
29
  subfolder="transformer",
 
 
30
  transformer_additional_kwargs={
31
  "control_layers_places": [0, 5, 10, 15, 20, 25],
32
  "control_in_dim": 16
 
234
  num_inference_steps = gr.Slider(
235
  label="Number of inference steps",
236
  minimum=1,
237
+ maximum=50,
238
  step=1,
239
+ value=15,
240
  )
241
  gr.Examples(examples=examples, inputs=[input_image, prompt, control_mode])
242
  gr.HTML(read_file("static/footer.html"))
static/data.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
  "examples": [
3
  ["examples/pose1.jpg", "A female paladin.", "Pose"],
4
- ["examples/bird.png", "A bird sitting on a branch", "Canny"],
5
- ["examples/bottle.png", "A man holding glass", "HED"],
6
- ["examples/room.png", "modern architecture, living room", "Depth"],
7
  ["examples/pose2.jpg", "A fit, athletic young woman. beach background", "Pose"]
8
  ]
9
  }
 
1
  {
2
  "examples": [
3
  ["examples/pose1.jpg", "A female paladin.", "Pose"],
4
+ ["examples/bird.jpg", "A bird sitting on a branch", "Canny"],
5
+ ["examples/bottle.jpg", "A man holding glass", "HED"],
6
+ ["examples/room.jpg", "modern architecture, living room", "Depth"],
7
  ["examples/pose2.jpg", "A fit, athletic young woman. beach background", "Pose"]
8
  ]
9
  }
static/header.html CHANGED
@@ -8,6 +8,6 @@
8
  <br>
9
  Supports multiple control conditions - including Canny, HED, Depth, Pose and MLSD.
10
  <br>
11
- If you like my spaces, please support me by visiting <a href="https://aisudo.com/" target="_blank">AiSudo</a> 😊
12
  </div>
13
  </div>
 
8
  <br>
9
  Supports multiple control conditions - including Canny, HED, Depth, Pose and MLSD.
10
  <br>
11
+ <!-- If you like my spaces, please support me by visiting <a href="https://aisudo.com/" target="_blank">AiSudo</a> 😊 -->
12
  </div>
13
  </div>