GithubHelp home page GithubHelp logo

rozana107 / thechosenone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zichengduan/thechosenone

0.0 0.0 0.0 6.89 MB

Unofficial implementation of the paper "The Chosen One: Consistent Characters in Text-to-Image Diffusion Models"

Home Page: https://arxiv.org/abs/2311.10093

Python 100.00%

thechosenone's Introduction

The Chosen One: Consistent Characters in Text-to-Image Diffusion Models (Unofficial implementation)

This repository contains the unofficial PyTorch implementation of the paper The Chosen One: Consistent Characters in Text-to-Image Diffusion Models, using the Diffuser framework.

Shout out to the authors for their great work, also please consider giving a star🌟 if you find this implementation helpful.😻😻😻

Main pipeline Result

(Note that I didn't carefully adjust the hyperparameters for generating the results above and they are still good enough.)

TODO List

  • Code release.
  • Training instructions.
  • Inference instructions.
  • ControlNet support.
  • Local image editing.
  • Some visualization results.

Getting Started

Installation and Prerequisites

Install diffuser 0.24.0.dev0:

git clone https://github.com/huggingface/diffusers
cd diffusers
pip install .

Clone the repository and install the required packages:

git clone [email protected]:ZichengDuan/TheChosenOne.git
cd TheChosenOne
pip install -r requirements.txt

You also need to modify your configuration file in config/theChosenOne.yaml to fit your local environment.

Data backup folder preparation

You need to create a backup data folder to store the initial images generated in the first loop for faster training start up next time if you want to train on the same character again. This is set up in the configuration file as follows:

backup_data_dir_root: Your absolute path to the data folder

Run the codes

Training

python main.py

Inference

Simply run:

python inference.py

The script will load the model you designated in the inference.py and your config file.

Citing the paper

Please always remember to respect the authors and cite their work properly. 🫑

@article{avrahami2023chosen,
  title={The Chosen One: Consistent Characters in Text-to-Image Diffusion Models},
  author={Avrahami, Omri and Hertz, Amir and Vinker, Yael and Arar, Moab and Fruchter, Shlomi and Fried, Ohad and Cohen-Or, Daniel and Lischinski, Dani},
  journal={arXiv preprint arXiv:2311.10093},
  year={2023}
}

thechosenone's People

Contributors

zichengduan avatar rozana107 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.