markury commited on
Commit
d3f7898
·
1 Parent(s): bbd155d

chore: markup

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -95,7 +95,6 @@ def generate_video(
95
 
96
  # Create the Gradio interface
97
  with gr.Blocks() as demo:
98
- gr.Markdown("# Wan 2.1 T2V 1.3B with LoRA")
99
  gr.HTML("""
100
  <p align="center">
101
  <svg version="1.1" viewBox="0 0 1200 295" xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" width="400">
@@ -105,6 +104,7 @@ with gr.Blocks() as demo:
105
  💻 <a href="https://www.markury.dev/"><b>Website</b></a> &nbsp&nbsp | &nbsp&nbsp 🤗 <a href="https://huggingface.co/markury"><b>Hugging Face</b></a> &nbsp&nbsp | &nbsp&nbsp 💿 <a href="https://thebulge.xyz"><b>Discord</b></a>
106
  </p>
107
  """)
 
108
 
109
  with gr.Row():
110
  with gr.Column(scale=1):
@@ -122,7 +122,7 @@ with gr.Blocks() as demo:
122
 
123
  negative_prompt = gr.Textbox(
124
  label="Negative Prompt",
125
- value="色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
126
  lines=3
127
  )
128
 
@@ -141,7 +141,7 @@ with gr.Blocks() as demo:
141
  lora_scale = gr.Slider(
142
  label="LoRA Scale",
143
  minimum=0.0,
144
- maximum=1.0,
145
  value=1.00,
146
  step=0.05
147
  )
@@ -179,7 +179,7 @@ with gr.Blocks() as demo:
179
 
180
  with gr.Row():
181
  num_frames = gr.Slider(
182
- label="Number of Frames (4k+1 is recommended, e.g. 81)",
183
  minimum=17,
184
  maximum=129,
185
  value=33,
@@ -198,14 +198,14 @@ with gr.Blocks() as demo:
198
  label="Guidance Scale (CFG)",
199
  minimum=1.0,
200
  maximum=15.0,
201
- value=5.0,
202
  step=0.5
203
  )
204
  num_inference_steps = gr.Slider(
205
  label="Inference Steps",
206
  minimum=10,
207
  maximum=100,
208
- value=32,
209
  step=1
210
  )
211
 
@@ -239,8 +239,8 @@ with gr.Blocks() as demo:
239
  ## Tips for best results:
240
  - For smaller resolution videos, try lower values of flow shift (2.0-5.0)
241
  - For larger resolution videos, try higher values of flow shift (7.0-12.0)
242
- - Number of frames should be of the form 4k+1 (e.g., 49, 81, 65)
243
- - The model is memory intensive, so adjust resolution according to available VRAM
244
 
245
  ## Using LoRAs with multiple safetensors files:
246
  If you encounter an error stating "more than one weights file", you need to specify the exact weight file name in the "LoRA Weight Name" field.
 
95
 
96
  # Create the Gradio interface
97
  with gr.Blocks() as demo:
 
98
  gr.HTML("""
99
  <p align="center">
100
  <svg version="1.1" viewBox="0 0 1200 295" xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" width="400">
 
104
  💻 <a href="https://www.markury.dev/"><b>Website</b></a> &nbsp&nbsp | &nbsp&nbsp 🤗 <a href="https://huggingface.co/markury"><b>Hugging Face</b></a> &nbsp&nbsp | &nbsp&nbsp 💿 <a href="https://thebulge.xyz"><b>Discord</b></a>
105
  </p>
106
  """)
107
+ gr.Markdown("# Wan 2.1 T2V 1.3B with LoRA")
108
 
109
  with gr.Row():
110
  with gr.Column(scale=1):
 
122
 
123
  negative_prompt = gr.Textbox(
124
  label="Negative Prompt",
125
+ value="色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿",
126
  lines=3
127
  )
128
 
 
141
  lora_scale = gr.Slider(
142
  label="LoRA Scale",
143
  minimum=0.0,
144
+ maximum=2.0,
145
  value=1.00,
146
  step=0.05
147
  )
 
179
 
180
  with gr.Row():
181
  num_frames = gr.Slider(
182
+ label="Number of Frames (4k+1 is recommended, e.g. 33)",
183
  minimum=17,
184
  maximum=129,
185
  value=33,
 
198
  label="Guidance Scale (CFG)",
199
  minimum=1.0,
200
  maximum=15.0,
201
+ value=4.0,
202
  step=0.5
203
  )
204
  num_inference_steps = gr.Slider(
205
  label="Inference Steps",
206
  minimum=10,
207
  maximum=100,
208
+ value=20,
209
  step=1
210
  )
211
 
 
239
  ## Tips for best results:
240
  - For smaller resolution videos, try lower values of flow shift (2.0-5.0)
241
  - For larger resolution videos, try higher values of flow shift (7.0-12.0)
242
+ - Number of frames should be of the form 4k+1 (e.g., 33, 81)
243
+ - Stick to lower frame counts. Even at 480p, an 81 frame sequence at 30 steps will nearly time out the request in this space.
244
 
245
  ## Using LoRAs with multiple safetensors files:
246
  If you encounter an error stating "more than one weights file", you need to specify the exact weight file name in the "LoRA Weight Name" field.