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