vinesmsuic
commited on
Commit
•
0bddf56
1
Parent(s):
dc014e0
update
Browse files- app.py +2 -2
- gradio_demo.py +2 -2
app.py
CHANGED
@@ -268,7 +268,7 @@ def btn_image_edit_fn(video_path, instruct_prompt, ie_force_512, ie_seed, ie_neg
|
|
268 |
ie_seed = int.from_bytes(os.urandom(2), "big")
|
269 |
print(f"Using seed: {ie_seed}")
|
270 |
|
271 |
-
edited_image_path =
|
272 |
prompt=instruct_prompt,
|
273 |
force_512=ie_force_512,
|
274 |
seed=ie_seed,
|
@@ -293,7 +293,7 @@ def btn_infer_fn(video_path,
|
|
293 |
seed = int.from_bytes(os.urandom(2), "big")
|
294 |
print(f"Using seed: {seed}")
|
295 |
|
296 |
-
result_video_path =
|
297 |
video_prompt=video_prompt,
|
298 |
video_negative_prompt=video_negative_prompt,
|
299 |
edited_first_frame_path=edited_first_frame_path,
|
|
|
268 |
ie_seed = int.from_bytes(os.urandom(2), "big")
|
269 |
print(f"Using seed: {ie_seed}")
|
270 |
|
271 |
+
edited_image_path = perform_edit(video_path=video_path,
|
272 |
prompt=instruct_prompt,
|
273 |
force_512=ie_force_512,
|
274 |
seed=ie_seed,
|
|
|
293 |
seed = int.from_bytes(os.urandom(2), "big")
|
294 |
print(f"Using seed: {seed}")
|
295 |
|
296 |
+
result_video_path = perform_anyv2v(video_path=video_path,
|
297 |
video_prompt=video_prompt,
|
298 |
video_negative_prompt=video_negative_prompt,
|
299 |
edited_first_frame_path=edited_first_frame_path,
|
gradio_demo.py
CHANGED
@@ -268,7 +268,7 @@ def btn_image_edit_fn(video_path, instruct_prompt, ie_force_512, ie_seed, ie_neg
|
|
268 |
ie_seed = int.from_bytes(os.urandom(2), "big")
|
269 |
print(f"Using seed: {ie_seed}")
|
270 |
|
271 |
-
edited_image_path =
|
272 |
prompt=instruct_prompt,
|
273 |
force_512=ie_force_512,
|
274 |
seed=ie_seed,
|
@@ -293,7 +293,7 @@ def btn_infer_fn(video_path,
|
|
293 |
seed = int.from_bytes(os.urandom(2), "big")
|
294 |
print(f"Using seed: {seed}")
|
295 |
|
296 |
-
result_video_path =
|
297 |
video_prompt=video_prompt,
|
298 |
video_negative_prompt=video_negative_prompt,
|
299 |
edited_first_frame_path=edited_first_frame_path,
|
|
|
268 |
ie_seed = int.from_bytes(os.urandom(2), "big")
|
269 |
print(f"Using seed: {ie_seed}")
|
270 |
|
271 |
+
edited_image_path = perform_edit(video_path=video_path,
|
272 |
prompt=instruct_prompt,
|
273 |
force_512=ie_force_512,
|
274 |
seed=ie_seed,
|
|
|
293 |
seed = int.from_bytes(os.urandom(2), "big")
|
294 |
print(f"Using seed: {seed}")
|
295 |
|
296 |
+
result_video_path = perform_anyv2v(video_path=video_path,
|
297 |
video_prompt=video_prompt,
|
298 |
video_negative_prompt=video_negative_prompt,
|
299 |
edited_first_frame_path=edited_first_frame_path,
|