besarismaili commited on
Commit
d174226
·
1 Parent(s): d8f6d3d
Files changed (1) hide show
  1. app.py +75 -1
app.py CHANGED
@@ -125,10 +125,84 @@ with gr.Blocks() as demo:
125
  f_promt = gr.Textbox(label="First Prompt", value="a photo of a cute cat")
126
  s_promt = gr.Textbox(label="Second Prompt", value="a photo of a cute dog")
127
  stability_key = gr.Textbox(label="Stability Key", value="")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  outimg = gr.File(label="Generated Files")
130
  btn = gr.Button('Anim')
131
 
132
- btn.click(fn=anim, inputs=[f_promt, s_promt, stability_key], outputs=[outimg],api_name="AnimAPI")
133
 
134
  demo.launch()
 
125
  f_promt = gr.Textbox(label="First Prompt", value="a photo of a cute cat")
126
  s_promt = gr.Textbox(label="Second Prompt", value="a photo of a cute dog")
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')
205
 
206
+ btn.click(fn=anim, inputs=[f_promt, s_promt, stability_key, cadence_interp, width ,height ,sampler ,model ,custom_model ,seed ,cfg_scale ,clip_guidance ,init_image ,init_sizing ,mask_path ,mask_invert ,preset ,animation_mode ,max_frames ,border ,noise_add_curve ,noise_scale_curve ,strength_curve ,steps_curve ,steps_strength_adj ,interpolate_prompts ,locked_seed ,angle ,zoom ,translation_x ,translation_y ,translation_z ,rotation_x ,rotation_y ,rotation_z ,diffusion_cadence_curve ,cadence_spans ,color_coherence ,brightness_curve ,contrast_curve ,hue_curve ,saturation_curve ,lightness_curve ,color_match_animate ,depth_model_weight,near_plane ,far_plane ,fov_curve ,depth_blur_curve ,depth_warp_curve ,save_depth_maps ,camera_type ,render_mode ,mask_power ,use_inpainting_model ,inpaint_border ,mask_min_value ,mask_binarization_thr ,save_inpaint_masks ,video_init_path ,extract_nth_frame ,video_mix_in_curve ,video_flow_warp ,fps ,reverse], outputs=[outimg],api_name="AnimAPI")
207
 
208
  demo.launch()