-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ticket: CVS-147626 Notebooks: 1. animate-anyone/animate-anyone.ipynb 2. bark-text-to-audio/bark-text-to-audio.ipynb 3. blip-visual-language-processing/blip-visual-language-processing.ipynb 4. controlnet-stable-diffusion/controlnet-stable-diffusion.ipynb 5. ddcolor-image-colorization/ddcolor-image-colorization.ipynb 6. depth-anything/depth-anything-v2.ipynb 7. depth-anything/depth-anything.ipynb 8. dolly-2-instruction-following/dolly-2-instruction-following.ipynb 9. dynamicrafter-animating-images/dynamicrafter-animating-images.ipynb
- Loading branch information
Showing
17 changed files
with
658 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from typing import Callable | ||
import gradio as gr | ||
import numpy as np | ||
|
||
examples = [ | ||
[ | ||
"Moore-AnimateAnyone/configs/inference/ref_images/anyone-2.png", | ||
"Moore-AnimateAnyone/configs/inference/pose_videos/anyone-video-2_kps.mp4", | ||
], | ||
[ | ||
"Moore-AnimateAnyone/configs/inference/ref_images/anyone-10.png", | ||
"Moore-AnimateAnyone/configs/inference/pose_videos/anyone-video-1_kps.mp4", | ||
], | ||
[ | ||
"Moore-AnimateAnyone/configs/inference/ref_images/anyone-11.png", | ||
"Moore-AnimateAnyone/configs/inference/pose_videos/anyone-video-1_kps.mp4", | ||
], | ||
[ | ||
"Moore-AnimateAnyone/configs/inference/ref_images/anyone-3.png", | ||
"Moore-AnimateAnyone/configs/inference/pose_videos/anyone-video-2_kps.mp4", | ||
], | ||
[ | ||
"Moore-AnimateAnyone/configs/inference/ref_images/anyone-5.png", | ||
"Moore-AnimateAnyone/configs/inference/pose_videos/anyone-video-2_kps.mp4", | ||
], | ||
] | ||
|
||
|
||
def make_demo(fn: Callable): | ||
demo = gr.Interface( | ||
fn=fn, | ||
inputs=[ | ||
gr.Image(label="Reference Image", type="pil"), | ||
gr.Video(label="Pose video"), | ||
gr.Slider( | ||
label="Seed", | ||
value=42, | ||
minimum=np.iinfo(np.int32).min, | ||
maximum=np.iinfo(np.int32).max, | ||
), | ||
gr.Slider(label="Guidance scale", value=3.5, minimum=1.1, maximum=10), | ||
gr.Slider(label="Number of inference steps", value=30, minimum=15, maximum=100), | ||
], | ||
outputs="video", | ||
examples=examples, | ||
allow_flagging="never", | ||
) | ||
return demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.