Git Product home page Git Product logo

temporalimage-v2's Introduction

Temporal-Image-AnimateDiff

Introducing an AnimateDiff retrain over the sd-inpainting model in order to take an input image

Examples

Input Prompt Output
stockman Man on a Beach A man on a beach
tay Taylor Swift Taylor Swift
beachw Woman on a Beach 1-a-woman

Setup & Configuration

  1. Download Motion Module

    • Motion module from HuggingFace
    • Place it in the motion_module folder.
  2. Configuration Keys:

    • base: Set this to "models/StableDiffusionInpainting". This should point to the diffuser's inpainting model available here.
    • vae: Use "models/StableDiffusion". This must link to the original 1.5 stable diffusion model due to a diffusers issue. Get the vae from here.
    • path: Specify something like "models/DreamBooth_LoRA/realisticVisionV20_v20.inpainting.safetensors". It must be your Dreambooth model and needs to be an inpainting model. Note: You can convert existing models to inpainting models by adding the difference from the inpainting model and the standard model to any custom model.
  3. Execution:

    python -m scripts.animate --config "configs/prompts/5-RealisticVision.yaml" --image_path "/images/image.png" --W 256 --H 256

Considerations & Recommendations

  • This model currently only works at roughly 256x256 resolutions. Retraining it to 512x512 didn't work for some reason, so you'd be best just upscaling with comfyui for now.

  • In terms of making it work well, consider the prompts are not you telling the model what you want with this, you're guiding the generation for what is in the input image, if the input image and the prompts do not align, it will not work.

  • You may have to try a few seeds per generation to get a nice image, it's a tiny bit unreliable.

Acknowledgements

Special thanks to the developers behind AniamteDiff. https://github.com/guoyww/AnimateDiff.

temporalimage-v2's People

Contributors

ciarastrawberry avatar

Stargazers

Tho avatar Frank (Haofan) Wang avatar Tyler Luan avatar Mrityunjay Bhardwaj avatar

Watchers

 avatar  avatar

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.