Spaces:
Runtime error
Runtime error
besarismaili
commited on
Commit
·
377f02b
1
Parent(s):
1be8100
app.py
CHANGED
@@ -127,78 +127,78 @@ with gr.Blocks() as demo:
|
|
127 |
stability_key = gr.Textbox(label="Stability Key", value="")
|
128 |
|
129 |
with gr.Accordion():
|
130 |
-
width = gr.Slider(minimum=100, maximum=1000,
|
131 |
-
height = gr.Slider(minimum=100, maximum=1000,
|
132 |
-
sampler = gr.Dropdown(choices=['K_dpmpp_2m'],
|
133 |
-
model = gr.Dropdown(choices=["stable-diffusion-xl-1024-v1-0"],
|
134 |
-
|
135 |
-
custom_model = gr.Textbox(
|
136 |
-
seed = gr.Slider(minimum=-1, maximum=100,
|
137 |
-
cfg_scale = gr.Slider(minimum=1, maximum=10,
|
138 |
-
clip_guidance = gr.Textbox(
|
139 |
-
init_image = gr.Textbox(
|
140 |
-
init_sizing = gr.Dropdown(choices=['stretch'],
|
141 |
-
mask_path = gr.Textbox(
|
142 |
-
mask_invert = gr.Checkbox(
|
143 |
-
preset = gr.Textbox(
|
144 |
-
|
145 |
-
animation_mode = gr.Dropdown(choices=['3D warp'],
|
146 |
-
max_frames = gr.Slider(minimum=1, maximum=100,
|
147 |
-
border = gr.Dropdown(choices=['replicate'],
|
148 |
-
noise_add_curve = gr.Textbox(
|
149 |
-
noise_scale_curve = gr.Textbox(
|
150 |
-
strength_curve = gr.Textbox(
|
151 |
-
steps_curve = gr.Textbox(
|
152 |
-
steps_strength_adj = gr.Checkbox(
|
153 |
-
interpolate_prompts = gr.Checkbox(
|
154 |
-
locked_seed = gr.Checkbox(
|
155 |
-
|
156 |
-
angle = gr.Textbox(
|
157 |
-
zoom = gr.Textbox(
|
158 |
-
translation_x = gr.Textbox(
|
159 |
-
translation_y = gr.Textbox(
|
160 |
-
translation_z = gr.Textbox(
|
161 |
-
rotation_x = gr.Textbox(
|
162 |
-
rotation_y = gr.Textbox(
|
163 |
-
rotation_z = gr.Textbox(
|
164 |
-
|
165 |
-
diffusion_cadence_curve = gr.Textbox(
|
166 |
-
cadence_interp = gr.Dropdown(choices=['mix'],
|
167 |
-
cadence_spans = gr.Checkbox(
|
168 |
-
|
169 |
-
color_coherence = gr.Dropdown(choices=['LAB'],
|
170 |
-
brightness_curve = gr.Textbox(
|
171 |
-
contrast_curve = gr.Textbox(
|
172 |
-
hue_curve = gr.Textbox(
|
173 |
-
saturation_curve = gr.Textbox(
|
174 |
-
lightness_curve = gr.Textbox(
|
175 |
-
color_match_animate = gr.Checkbox(
|
176 |
-
|
177 |
-
depth_model_weight = gr.Slider(minimum=0, maximum=1,
|
178 |
-
near_plane = gr.Slider(minimum=1, maximum=1000,
|
179 |
-
far_plane = gr.Slider(minimum=1, maximum=10000,
|
180 |
-
fov_curve = gr.Textbox(
|
181 |
-
depth_blur_curve = gr.Textbox(
|
182 |
-
depth_warp_curve = gr.Textbox(
|
183 |
-
save_depth_maps = gr.Checkbox(
|
184 |
-
|
185 |
-
camera_type = gr.Dropdown(choices=['perspective'],
|
186 |
-
render_mode = gr.Dropdown(choices=['mesh'],
|
187 |
-
mask_power = gr.Slider(minimum=0, maximum=1,
|
188 |
-
|
189 |
-
use_inpainting_model = gr.Checkbox(
|
190 |
-
inpaint_border = gr.Checkbox(
|
191 |
-
mask_min_value = gr.Textbox(
|
192 |
-
mask_binarization_thr = gr.Slider(minimum=0, maximum=1,
|
193 |
-
save_inpaint_masks = gr.Checkbox(
|
194 |
-
|
195 |
-
video_init_path = gr.Textbox(
|
196 |
-
extract_nth_frame = gr.Slider(minimum=1, maximum=10,
|
197 |
-
video_mix_in_curve = gr.Textbox(
|
198 |
-
video_flow_warp = gr.Checkbox(
|
199 |
-
|
200 |
-
fps = gr.Slider(minimum=1, maximum=60,
|
201 |
-
reverse = gr.Checkbox(
|
202 |
|
203 |
outimg = gr.File(label="Generated Files")
|
204 |
btn = gr.Button('Anim')
|
|
|
127 |
stability_key = gr.Textbox(label="Stability Key", value="")
|
128 |
|
129 |
with gr.Accordion():
|
130 |
+
width = gr.Slider(minimum=100, maximum=1000, value=512, label="Width")
|
131 |
+
height = gr.Slider(minimum=100, maximum=1000, value=512, label="Height")
|
132 |
+
sampler = gr.Dropdown(choices=['K_dpmpp_2m'], value='K_dpmpp_2m', label="Sampler")
|
133 |
+
model = gr.Dropdown(choices=["stable-diffusion-xl-1024-v1-0"], value="stable-diffusion-xl-1024-v1-0", label="Model")
|
134 |
+
|
135 |
+
custom_model = gr.Textbox(value="", label="Custom Model")
|
136 |
+
seed = gr.Slider(minimum=-1, maximum=100, value=-1, label="Seed")
|
137 |
+
cfg_scale = gr.Slider(minimum=1, maximum=10, value=7, label="Cfg Scale")
|
138 |
+
clip_guidance = gr.Textbox(value=None, label="Clip Guidance")
|
139 |
+
init_image = gr.Textbox(value='', label="Init Image")
|
140 |
+
init_sizing = gr.Dropdown(choices=['stretch'], value='stretch', label="Init Sizing")
|
141 |
+
mask_path = gr.Textbox(value="", label="Mask Path")
|
142 |
+
mask_invert = gr.Checkbox(value=False, label="Mask Invert")
|
143 |
+
preset = gr.Textbox(value=None, label="Preset")
|
144 |
+
|
145 |
+
animation_mode = gr.Dropdown(choices=['3D warp'], value='3D warp', label="Animation Mode")
|
146 |
+
max_frames = gr.Slider(minimum=1, maximum=100, value=72, label="Max Frames")
|
147 |
+
border = gr.Dropdown(choices=['replicate'], value='replicate', label="Border")
|
148 |
+
noise_add_curve = gr.Textbox(value="0:(0.02)", label="Noise Add Curve")
|
149 |
+
noise_scale_curve = gr.Textbox(value="0:(0.99)", label="Noise Scale Curve")
|
150 |
+
strength_curve = gr.Textbox(value="0:(0.65)", label="Strength Curve")
|
151 |
+
steps_curve = gr.Textbox(value="0:(30)", label="Steps Curve")
|
152 |
+
steps_strength_adj = gr.Checkbox(value=False, label="Steps Strength Adj")
|
153 |
+
interpolate_prompts = gr.Checkbox(value=False, label="Interpolate Prompts")
|
154 |
+
locked_seed = gr.Checkbox(value=False, label="Locked Seed")
|
155 |
+
|
156 |
+
angle = gr.Textbox(value="0:(0)", label="Angle")
|
157 |
+
zoom = gr.Textbox(value="0:(1)", label="Zoom")
|
158 |
+
translation_x = gr.Textbox(value="0:(0)", label="Translation X")
|
159 |
+
translation_y = gr.Textbox(value="0:(0)", label="Translation Y")
|
160 |
+
translation_z = gr.Textbox(value="0:(0)", label="Translation Z")
|
161 |
+
rotation_x = gr.Textbox(value="0:(0)", label="Rotation X")
|
162 |
+
rotation_y = gr.Textbox(value="0:(0)", label="Rotation Y")
|
163 |
+
rotation_z = gr.Textbox(value="0:(0)", label="Rotation Z")
|
164 |
+
|
165 |
+
diffusion_cadence_curve = gr.Textbox(value="0:(1)", label="Diffusion Cadence Curve")
|
166 |
+
cadence_interp = gr.Dropdown(choices=['mix'], value='mix', label="Cadence Interp")
|
167 |
+
cadence_spans = gr.Checkbox(value=False, label="Cadence Spans")
|
168 |
+
|
169 |
+
color_coherence = gr.Dropdown(choices=['LAB'], value='LAB', label="Color Coherence")
|
170 |
+
brightness_curve = gr.Textbox(value="0:(1.0)", label="Brightness Curve")
|
171 |
+
contrast_curve = gr.Textbox(value="0:(1.0)", label="Contrast Curve")
|
172 |
+
hue_curve = gr.Textbox(value="0:(0.0)", label="Hue Curve")
|
173 |
+
saturation_curve = gr.Textbox(value="0:(1.0)", label="Saturation Curve")
|
174 |
+
lightness_curve = gr.Textbox(value="0:(0.0)", label="Lightness Curve")
|
175 |
+
color_match_animate = gr.Checkbox(value=True, label="Color Match Animate")
|
176 |
+
|
177 |
+
depth_model_weight = gr.Slider(minimum=0, maximum=1, value=0.3, step=0.1, label="Depth Model Weight")
|
178 |
+
near_plane = gr.Slider(minimum=1, maximum=1000, value=200, label="Near Plane")
|
179 |
+
far_plane = gr.Slider(minimum=1, maximum=10000, value=10000, label="Far Plane")
|
180 |
+
fov_curve = gr.Textbox(value="0:(25)", label="Fov Curve")
|
181 |
+
depth_blur_curve = gr.Textbox(value="0:(0.0)", label="Depth Blur Curve")
|
182 |
+
depth_warp_curve = gr.Textbox(value="0:(1.0)", label="Depth Warp Curve")
|
183 |
+
save_depth_maps = gr.Checkbox(value=False, label="Save Depth Maps")
|
184 |
+
|
185 |
+
camera_type = gr.Dropdown(choices=['perspective'], value='perspective', label="Camera Type")
|
186 |
+
render_mode = gr.Dropdown(choices=['mesh'], value='mesh', label="Render Mode")
|
187 |
+
mask_power = gr.Slider(minimum=0, maximum=1, value=0.3, step=0.1, label="Mask Power")
|
188 |
+
|
189 |
+
use_inpainting_model = gr.Checkbox(value=False, label="Use Inpainting Model")
|
190 |
+
inpaint_border = gr.Checkbox(value=False, label="Inpaint Border")
|
191 |
+
mask_min_value = gr.Textbox(value="0:(0.25)", label="Mask Min Value")
|
192 |
+
mask_binarization_thr = gr.Slider(minimum=0, maximum=1, value=0.5, step=0.1, label="Mask Binarization Threshold")
|
193 |
+
save_inpaint_masks = gr.Checkbox(value=False, label="Save Inpaint Masks")
|
194 |
+
|
195 |
+
video_init_path = gr.Textbox(value="", label="Video Init Path")
|
196 |
+
extract_nth_frame = gr.Slider(minimum=1, maximum=10, value=1, label="Extract Nth Frame")
|
197 |
+
video_mix_in_curve = gr.Textbox(value="0:(0.02)", label="Video Mix In Curve")
|
198 |
+
video_flow_warp = gr.Checkbox(value=True, label="Video Flow Warp")
|
199 |
+
|
200 |
+
fps = gr.Slider(minimum=1, maximum=60, value=12, label="FPS")
|
201 |
+
reverse = gr.Checkbox(value=False, label="Reverse")
|
202 |
|
203 |
outimg = gr.File(label="Generated Files")
|
204 |
btn = gr.Button('Anim')
|