weathon commited on
Commit
74090ff
·
1 Parent(s): 32006ad

space and range

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +5 -5
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ images
app.py CHANGED
@@ -43,7 +43,7 @@ import json
43
  from datetime import datetime
44
  from pathlib import Path
45
  from uuid import uuid4
46
- IMAGE_DATASET_DIR = "/data"
47
  IMAGE_DATASET_DIR.mkdir(parents=True, exist_ok=True)
48
  IMAGE_JSONL_PATH = IMAGE_DATASET_DIR / "metadata.jsonl"
49
 
@@ -170,9 +170,9 @@ with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
170
 
171
  # gr.Markdown("# Value Sign Flip Wan 2.1 Demo \n\n This demo is based on Wan 2.1 T2V model and uses Value Sign Flip technique to generate videos with different guidance scales and biases. More on [GitHub](https://github.com/weathon/VSF/blob/main/wan.md)\n\nPositive prompt should be at least 2 sentence long or the results will be weird.")
172
 
173
- with gr.Row(height=100):
174
- pos = gr.Textbox(label="Positive Prompt", value="A polished bicycle frame leans against a weathered brick wall under soft morning light.")
175
- neg = gr.Textbox(label="Negative Prompt", value="wheels")
176
 
177
  # rephase = gr.Button("Rephrase Prompt")
178
  with gr.Row():
@@ -195,7 +195,7 @@ with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
195
 
196
  with gr.Row():
197
  gr.Markdown("## NAG Generation Parameters")
198
- nag_guidance = gr.Slider(1, 10, step=0.1, label="Guidance Scale", value=5)
199
  nag_alpha = gr.Slider(0.1, 1.0, step=0.01, label="Alpha", value=0.25)
200
  nag_tau = gr.Slider(1, 10, step=0.01, label="Tau", value=3.0)
201
  nag_step = gr.Slider(4, 15, step=1, label="Step", value=8)
 
43
  from datetime import datetime
44
  from pathlib import Path
45
  from uuid import uuid4
46
+ IMAGE_DATASET_DIR = Path("/data")
47
  IMAGE_DATASET_DIR.mkdir(parents=True, exist_ok=True)
48
  IMAGE_JSONL_PATH = IMAGE_DATASET_DIR / "metadata.jsonl"
49
 
 
170
 
171
  # gr.Markdown("# Value Sign Flip Wan 2.1 Demo \n\n This demo is based on Wan 2.1 T2V model and uses Value Sign Flip technique to generate videos with different guidance scales and biases. More on [GitHub](https://github.com/weathon/VSF/blob/main/wan.md)\n\nPositive prompt should be at least 2 sentence long or the results will be weird.")
172
 
173
+ with gr.Row(min_height=200):
174
+ pos = gr.Textbox(label="Positive Prompt", value="A polished bicycle frame leans against a weathered brick wall under soft morning light.", lines=5)
175
+ neg = gr.Textbox(label="Negative Prompt", value="wheels", lines=5)
176
 
177
  # rephase = gr.Button("Rephrase Prompt")
178
  with gr.Row():
 
195
 
196
  with gr.Row():
197
  gr.Markdown("## NAG Generation Parameters")
198
+ nag_guidance = gr.Slider(1, 12, step=0.1, label="Guidance Scale", value=5)
199
  nag_alpha = gr.Slider(0.1, 1.0, step=0.01, label="Alpha", value=0.25)
200
  nag_tau = gr.Slider(1, 10, step=0.01, label="Tau", value=3.0)
201
  nag_step = gr.Slider(4, 15, step=1, label="Step", value=8)