weathon commited on
Commit
54421e6
·
1 Parent(s): 6639f79
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -170,6 +170,7 @@ from PIL import Image
170
  with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
171
  gr.Markdown("# Value Sign Flip SD3.5 Demo \n\n This demo is based on SD3.5-L-Turbo 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 1 sentence long or the results will be weird. ")
172
  gr.Markdown("To help with further research, all generations will be logged anonymously. If you do not wish to participate, please do not use the demo. Please keep prompts safe for work and non-offensive. ")
 
173
 
174
  # 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.")
175
 
@@ -185,6 +186,8 @@ with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
185
  anti_aesthetic_sample.click(fn=load_anti_aesthetics_sample, inputs=[], outputs=[pos, neg])
186
  abstract_sample = gr.Button("Load An Abstract Prompt")
187
  abstract_sample.click(fn=load_abstract_prompt, inputs=[], outputs=[pos, neg])
 
 
188
  with gr.Row():
189
  gr.Markdown("## VSF Generation Parameters")
190
  guidance = gr.Slider(0, 5, step=0.1, label="Guidance Scale", value=3.0)
@@ -216,4 +219,6 @@ with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
216
  btn = gr.Button("Generate")
217
  btn.click(fn=generate_video, inputs=[pos, neg, guidance, bias, step, seed, nag_guidance, nag_alpha, nag_tau, nag_step], outputs=[vsf_out, nag_out])
218
 
 
 
219
  demo.launch(share=True)
 
170
  with gr.Blocks(title="Value Sign Flip SD3.5 Demo") as demo:
171
  gr.Markdown("# Value Sign Flip SD3.5 Demo \n\n This demo is based on SD3.5-L-Turbo 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 1 sentence long or the results will be weird. ")
172
  gr.Markdown("To help with further research, all generations will be logged anonymously. If you do not wish to participate, please do not use the demo. Please keep prompts safe for work and non-offensive. ")
173
+ gr.Markdown("This project is supported by [Lambda Cloud](https://lambda.ai/), [Weathon Software](https://weasoft.com), and [Canada Foundation for Innovation](https://www.innovation.ca/). ")
174
 
175
  # 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.")
176
 
 
186
  anti_aesthetic_sample.click(fn=load_anti_aesthetics_sample, inputs=[], outputs=[pos, neg])
187
  abstract_sample = gr.Button("Load An Abstract Prompt")
188
  abstract_sample.click(fn=load_abstract_prompt, inputs=[], outputs=[pos, neg])
189
+
190
+
191
  with gr.Row():
192
  gr.Markdown("## VSF Generation Parameters")
193
  guidance = gr.Slider(0, 5, step=0.1, label="Guidance Scale", value=3.0)
 
219
  btn = gr.Button("Generate")
220
  btn.click(fn=generate_video, inputs=[pos, neg, guidance, bias, step, seed, nag_guidance, nag_alpha, nag_tau, nag_step], outputs=[vsf_out, nag_out])
221
 
222
+
223
+
224
  demo.launch(share=True)