kulkas2pintu commited on
Commit ·
329fea3
1
Parent(s): 20d7733
Upgrade to WAMU_v3 + default 4 steps (faster)
Browse files233 unmodified lines234235236237238239240241242419 unmodified lines662663664665666667668233 unmodified linesORG_NAME = "TestOrganizationPleaseIgnore"# MODEL_ID = "Wan-AI/Wan2.2-I2V-A14B-Diffusers"MODEL_ID = os.getenv("REPO_ID") or random.choice(list(list_models(author=ORG_NAME, filter='diffusers:WanImageToVideoPipeline'))).modelIdCACHE_DIR = os.path.expanduser("~/.cache/huggingface/")LORA_MODELS = [419 unmodified linesquality_slider = gr.Slider(minimum=1, maximum=10, step=1, value=6, label="Video Quality", info="If set to 10, the generated video may be too large and won't play in the Gradio preview.")seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=6, label="Inference Steps")guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale - high noise stage", info="Values above 1 increase GPU usage and may take longer to process.")guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale 2 - low noise stage")scheduler_dropdown = gr.Dropdown(233 unmodified lines234235236237238239240419 unmodified lines660661662663664665666233 unmodified linesORG_NAME = "TestOrganizationPleaseIgnore"# MODEL_ID = "Wan-AI/Wan2.2-I2V-A14B-Diffusers"MODEL_ID = os.getenv("REPO_ID") or "TestOrganizationPleaseIgnore/WAMU_v3_WAN2.2_I2V_LIGHTNING"CACHE_DIR = os.path.expanduser("~/.cache/huggingface/")LORA_MODELS = [419 unmodified linesquality_slider = gr.Slider(minimum=1, maximum=10, step=1, value=6, label="Video Quality", info="If set to 10, the generated video may be too large and won't play in the Gradio preview.")seed_input = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=42, interactive=True)randomize_seed_checkbox = gr.Checkbox(label="Randomize seed", value=True, interactive=True)steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=4, label="Inference Steps", info="4 steps = fastest (Lightning default). Raise to 6-8 for slightly more detail.")guidance_scale_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale - high noise stage", info="Values above 1 increase GPU usage and may take longer to process.")guidance_scale_2_input = gr.Slider(minimum=0.0, maximum=10.0, step=0.5, value=1, label="Guidance Scale 2 - low noise stage")scheduler_dropdown = gr.Dropdown(
app.py+2-4