Giter Club home page Giter Club logo

Comments (4)

alfredplpl avatar alfredplpl commented on July 21, 2024

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.

FurkanGozukara avatar FurkanGozukara commented on July 21, 2024

@alfredplpl I see it calls animate.py so i have to rewrite it too

let me test

from magic-animate.

FurkanGozukara avatar FurkanGozukara commented on July 21, 2024

I made 768 pixel but quality is even lower haha

2023-12-06T15-02-20.mp4

from magic-animate.

zcxu-eric avatar zcxu-eric commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.