Merge interface
Browse files- app_v2v.py +10 -10
app_v2v.py
CHANGED
|
@@ -940,19 +940,20 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 940 |
randomize_seed = gr.Checkbox(label='Randomize seed', value=True, info='If checked, the seed is always different')
|
| 941 |
seed = gr.Slider(label="Seed", minimum=0, maximum=np.iinfo(np.int32).max, step=1, randomize=True)
|
| 942 |
|
| 943 |
-
|
|
|
|
|
|
|
| 944 |
|
| 945 |
-
resolution = gr.Number(label="Resolution (max width or height)", value=640, precision=0,
|
| 946 |
|
| 947 |
# 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
|
| 948 |
-
cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01,
|
| 949 |
-
gs = gr.Slider(label="Distilled CFG Scale", minimum=1.0, maximum=32.0, value=3.0, step=0.01, info='Prompt adherence at the cost of less details from the input video, but to a lesser extent than Context Frames
|
| 950 |
-
rs = gr.Slider(label="CFG Re-Scale", minimum=0.0, maximum=1.0, value=0.0, step=0.01
|
| 951 |
|
| 952 |
-
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=25, step=1, info='Increase for more quality, especially if using high non-distilled CFG.')
|
| 953 |
|
| 954 |
# 20250506 pftq: Renamed slider to Number of Context Frames and updated description
|
| 955 |
-
num_clean_frames = gr.Slider(label="Number of Context Frames", minimum=2, maximum=10, value=5, step=1, info="Retain more video details but increase memory use. Reduce to 2 if memory issues.")
|
| 956 |
|
| 957 |
default_vae = 32
|
| 958 |
if high_vram:
|
|
@@ -960,9 +961,8 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 960 |
elif free_mem_gb>=20:
|
| 961 |
default_vae = 64
|
| 962 |
|
| 963 |
-
vae_batch = gr.Slider(label="VAE Batch Size for Input Video", minimum=4, maximum=256, value=default_vae, step=4, info="Reduce if running out of memory. Increase for better quality frames during fast motion.")
|
| 964 |
|
| 965 |
-
latent_window_size = gr.Slider(label="Latent Window Size", minimum=9, maximum=33, value=9, step=1, visible=True, info='Generate more frames at a time (larger chunks). Less degradation and better blending but higher VRAM cost.')
|
| 966 |
|
| 967 |
gpu_memory_preservation = gr.Slider(label="GPU Inference Preserved Memory (GB) (larger means slower)", minimum=6, maximum=128, value=6, step=0.1, info="Set this number to a larger value if you encounter OOM. Larger value causes slower speed.")
|
| 968 |
|
|
@@ -986,7 +986,7 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 986 |
[
|
| 987 |
"./img_examples/Example1.mp4", # input_video
|
| 988 |
"View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 989 |
-
"", # n_prompt
|
| 990 |
True, # randomize_seed
|
| 991 |
42, # seed
|
| 992 |
1, # batch
|
|
|
|
| 940 |
randomize_seed = gr.Checkbox(label='Randomize seed', value=True, info='If checked, the seed is always different')
|
| 941 |
seed = gr.Slider(label="Seed", minimum=0, maximum=np.iinfo(np.int32).max, step=1, randomize=True)
|
| 942 |
|
| 943 |
+
latent_window_size = gr.Slider(label="Latent Window Size", minimum=1, maximum=33, value=9, step=1, info='Generate more frames at a time (larger chunks). Less degradation and better blending but higher VRAM cost. Should not change.')
|
| 944 |
+
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=25, step=1, info='Increase for more quality, especially if using high non-distilled CFG. Changing this value is not recommended.')
|
| 945 |
+
batch = gr.Slider(label="Batch Size (Number of Videos)", minimum=1, maximum=1000, value=1, step=1, info='Generate multiple videos each with a different seed (only for video extension).')
|
| 946 |
|
| 947 |
+
resolution = gr.Number(label="Resolution (max width or height)", value=640, precision=0, info='Only for video extension')
|
| 948 |
|
| 949 |
# 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
|
| 950 |
+
cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time. Should not change.')
|
| 951 |
+
gs = gr.Slider(label="Distilled CFG Scale", minimum=1.0, maximum=32.0, value=3.0, step=0.01, info='Prompt adherence at the cost of less details from the input video, but to a lesser extent than Context Frames; 3=blurred motions& & unsharped, 10=focus motion; changing this value is not recommended')
|
| 952 |
+
rs = gr.Slider(label="CFG Re-Scale", minimum=0.0, maximum=1.0, value=0.0, step=0.01) # Should not change
|
| 953 |
|
|
|
|
| 954 |
|
| 955 |
# 20250506 pftq: Renamed slider to Number of Context Frames and updated description
|
| 956 |
+
num_clean_frames = gr.Slider(label="Number of Context Frames", minimum=2, maximum=10, value=5, step=1, info="Retain more video details but increase memory use. Reduce to 2 if memory issues (only for video extension).")
|
| 957 |
|
| 958 |
default_vae = 32
|
| 959 |
if high_vram:
|
|
|
|
| 961 |
elif free_mem_gb>=20:
|
| 962 |
default_vae = 64
|
| 963 |
|
| 964 |
+
vae_batch = gr.Slider(label="VAE Batch Size for Input Video", minimum=4, maximum=256, value=default_vae, step=4, info="Reduce if running out of memory. Increase for better quality frames during fast motion (only for video extension).")
|
| 965 |
|
|
|
|
| 966 |
|
| 967 |
gpu_memory_preservation = gr.Slider(label="GPU Inference Preserved Memory (GB) (larger means slower)", minimum=6, maximum=128, value=6, step=0.1, info="Set this number to a larger value if you encounter OOM. Larger value causes slower speed.")
|
| 968 |
|
|
|
|
| 986 |
[
|
| 987 |
"./img_examples/Example1.mp4", # input_video
|
| 988 |
"View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 989 |
+
"Missing arm, unrealistic position, blurred, blurry", # n_prompt
|
| 990 |
True, # randomize_seed
|
| 991 |
42, # seed
|
| 992 |
1, # batch
|