besarismaili commited on
Commit
1be8100
·
1 Parent(s): d174226
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 = 512
131
- height = 512
132
- sampler = 'K_dpmpp_2m'
133
- model = "stable-diffusion-xl-1024-v1-0"
134
-
135
- custom_model = ""
136
- seed = -1
137
- cfg_scale = 7
138
- clip_guidance = None
139
- init_image = ''
140
- init_sizing = 'stretch'
141
- mask_path = ""
142
- mask_invert = False
143
- preset = default= None
144
-
145
- animation_mode = '3D warp'
146
- max_frames = 72
147
- border = 'replicate'
148
- noise_add_curve = "0:(0.02)"
149
- noise_scale_curve = "0:(0.99)"
150
- strength_curve = "0:(0.65)",
151
- steps_curve = "0:(30)"
152
- steps_strength_adj = False,
153
- interpolate_prompts = False,
154
- locked_seed = False
155
-
156
- angle = "0:(0)"
157
- zoom = "0:(1)"
158
- translation_x = "0:(0)"
159
- translation_y = "0:(0)"
160
- translation_z = "0:(0)"
161
- rotation_x = "0:(0)"
162
- rotation_y = "0:(0)"
163
- rotation_z = "0:(0)"
164
-
165
- diffusion_cadence_curve = "0:(1)"
166
- cadence_interp = 'mix'
167
- cadence_spans = False
168
-
169
- color_coherence = 'LAB'
170
- brightness_curve = "0:(1.0)"
171
- contrast_curve = "0:(1.0)"
172
- hue_curve = "0:(0.0)"
173
- saturation_curve = "0:(1.0)"
174
- lightness_curve = "0:(0.0)"
175
- color_match_animate = True
176
-
177
- depth_model_weight = 0.3
178
- near_plane = 200
179
- far_plane = 10000
180
- fov_curve = "0:(25)"
181
- depth_blur_curve = "0:(0.0)"
182
- depth_warp_curve = "0:(1.0)"
183
- save_depth_maps = False
184
-
185
- camera_type = 'perspective'
186
- render_mode = 'mesh'
187
- mask_power = 0.3
188
-
189
- use_inpainting_model = False,
190
- inpaint_border = False,
191
- mask_min_value = "0:(0.25)",
192
- mask_binarization_thr = 0.5
193
- save_inpaint_masks = False
194
-
195
- video_init_path = ""
196
- extract_nth_frame = 1
197
- video_mix_in_curve = "0:(0.02)"
198
- video_flow_warp = True
199
-
200
- fps = 12
201
- reverse = False
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, 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')