Giter Site home page Giter Site logo

animateanyone's Introduction

Animate Anyone

Novita AI

Overview

This repository currently provides the unofficial pre-trained weights and inference code of Animate Anyone. It is inspired by the implementation of the MooreThreads/Moore-AnimateAnyone repository and we made some adjustments to the training process and datasets.

Samples

demo1.mp4
demo4.mp4
demo2.mp4
demo3.mp4

Quickstart

Build Environtment

We Recommend a python version >=3.10 and cuda version =11.7. Then build environment as follows:

# [Optional] Create a virtual env
python -m venv .venv
source .venv/bin/activate
# Install with pip:
pip install -r requirements.txt

Download weights

Automatically downloading: You can run the following command to download weights automatically:

python tools/download_weights.py

Weights will be placed under the ./pretrained_weights direcotry. The whole downloading process may take a long time.

Inference

Here is the cli command for running inference scripts:

python -m scripts.pose2vid --config ./configs/prompts/animation.yaml -W 512 -H 784 -L 64

You can refer the format of animation.yaml to add your own reference images or pose videos. To convert the raw video into a pose video (keypoint sequence), you can run with the following command:

python tools/vid2pose.py --video_path /path/to/your/video.mp4

Or try it on Novita AI

We've deployed this model on Novita AI, and you can try it out with Playground ➡️ https://novita.ai/playground#animate-anyone .

Acknowledgements

This project is based on MooreThreads/Moore-AnimateAnyone which is licensed under the Apache License 2.0. We thank to the authors of Animate Anyone and MooreThreads/Moore-AnimateAnyone, for their open research and exploration.

animateanyone's People

Contributors

k-l-lambda avatar viktor2077 avatar

Stargazers

Benji Silver avatar  avatar 技术宅改变阶级社会 avatar Moved to BenjiThatFoxGuy avatar  avatar mysterious hhhh avatar  avatar xiaolong avatar  avatar sekkit avatar  avatar Michael Sta. Helena avatar Lonner avatar Loen avatar Kai Zhao avatar  avatar JoJo avatar LeroyK avatar  avatar Tokyo Momo avatar  avatar  avatar EKI INDRADI avatar Q.Lu avatar  avatar liushinan avatar  avatar 吴庆甜 avatar  avatar  avatar jim.zhang avatar Jeff Xie avatar Kuqs avatar  avatar Bruce Fan avatar Andy Red avatar  avatar Syed avatar momo avatar  avatar v1zone avatar  avatar  avatar  avatar dlkj666 avatar chunyanixaoyatou080214 avatar tigerwang avatar  avatar  avatar  avatar rouwan96 avatar  avatar  avatar Ramazan Gur avatar  avatar Wei Deng avatar  avatar larkin avatar  avatar  avatar chZzZzZz avatar 画中游仙 avatar allen.hu avatar  avatar linxiangtan avatar  avatar hazukiaoi avatar  avatar  avatar Jaya avatar miniPro avatar  avatar  avatar Minghao Liu avatar chuua(fukaya) avatar  avatar Zhou Shifeng avatar  avatar Darwin avatar  avatar husky avatar  avatar Sam Einstein avatar Witness avatar idleMan avatar FellowTraveler avatar shine_zh avatar  avatar 世界尽头 avatar  avatar Gyeongbo Sim avatar  avatar  avatar  avatar huangxinxinxxin avatar darkrat avatar leileibuku avatar ZoranLee avatar Ringzer avatar  avatar

Watchers

Kenn avatar  avatar Chuck Lien avatar  avatar  avatar Simon avatar  avatar  avatar  avatar  avatar  avatar  avatar

animateanyone's Issues

ModuleNotFoundError: No module named 'src.dataset'

In pipeline_pose2vid_long.py, trying to load a module called src.dataset.utils but the source code doesn't exist.
Did you forget to upload it?

The following is the full text of the executed command and the error output.

python -m scripts.pose2vid --config ./configs/prompts/animation.yaml -W 512 -H 784 -L 64
/home/ryosuke/.pyenv/versions/animate-anyone/lib/python3.10/site-packages/diffusers/models/dual_transformer_2d.py:20: FutureWarning: `DualTransformer2DModel` is deprecated and will be removed in version 0.29. Importing `DualTransformer2DModel` from `diffusers.models.dual_transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.transformers.dual_transformer_2d import DualTransformer2DModel`, instead.
  deprecate("DualTransformer2DModel", "0.29", deprecation_message)
Traceback (most recent call last):
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/scripts/pose2vid.py", line 23, in <module>
    from src.pipelines.pipeline_pose2vid_long import Pose2VideoPipeline
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/src/pipelines/pipeline_pose2vid_long.py", line 28, in <module>
    from ..dataset.utils import SquarePad
ModuleNotFoundError: No module named 'src.dataset'

环境问题

所提供的requirements.txt里,torch=2.1.1和xformers=0.0.22是冲突的。

而且,diffusers的import也报了以下错误:

ImportError: cannot import name 'GLIGENTextBoundingboxProjection' from 'diffusers.models.embeddings'

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.