Comments (4)
You need to rewrite the demo code like this:
demo/gradio_animate.py
def read_video(video):
size = (768, 768) #int(size)
reader = imageio.get_reader(video)
fps = reader.get_meta_data()['fps']
assert fps == 25.0, f'Expected video fps: 25, but {fps} fps found'
return video
def read_image(image, size=512):
return np.array(Image.fromarray(image).resize((768,768)))
demo/animate.py
if motion_sequence.endswith('.mp4'):
control = VideoReader(motion_sequence).read()
# if control[0].shape[0] != size:
control = [np.array(Image.fromarray(c).resize((768,768))) for c in control]
control = np.array(control)
#if source_image.shape[0] != size:
source_image = np.array(Image.fromarray(source_image).resize((768,768)))
H, W, C = source_image.shape
from magic-animate.
@alfredplpl I see it calls animate.py so i have to rewrite it too
let me test
from magic-animate.
I made 768 pixel but quality is even lower haha
2023-12-06T15-02-20.mp4
from magic-animate.
That's what I expected, as I mentioned in #18, the quality will decrease because our appearance encoder was trained on 512.
from magic-animate.
Related Issues (20)
- Issues with IUV diagrams
- what does $z_t$ refer to in formulas (1) and (3) HOT 1
- the code of computing PSNR in the Disco repository is wrong HOT 2
- It's just not working on windows HOT 3
- which paper is spatial self-attention layers' implementation in unet blocks based on
- how to get densepose videos without shutering andd blurry flicker HOT 1
- About LAION-Human dataset download?
- ai
- CUDA out of memory HOT 3
- why need do_classifier_free_guidance for hidden_states doing self.attn1 ?
- Failed to tested this on Apple M1 with 16G Memory HOT 1
- Details about computing FVD HOT 4
- Image-video joint training HOT 3
- Training batch size and number of frames (N) of a motion sequence HOT 1
- (IMPORT FAILED): D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MagicAnimate HOT 1
- How to generate high quality video HOT 1
- attn_weight 在这里的作用是什么呀? HOT 1
- 对于其他模型的支持 HOT 1
- You Made the Demo Worthless HOT 1
- Can anyone share TED-talks dataset?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magic-animate.