Skip to content

Implementation of layer diffuse inference using refiners

Notifications You must be signed in to change notification settings

chloedia/layerdiffuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layer Diffuse Refiners

Transparent Image Layer Diffusion using Latent Transparency for refiners.

layerdiffuse archi

Note: This repo only implements layer diffusion for foreground generation base on the Transparent Image Layer Diffusion using Latent Transparency paper. Click here for the official implementation.

Get Started:

Clone this repo

git clone https://github.com/chloedia/layerdiffuse.git
cd layerdiffuse

Set up the environment using rye

rye sync --all-features \
source .venv/bin/activate

And you are ready to go ! You can start by launching the generation of a cute panda wizard by simply running :

python3 src/layerdiffuse/inference.py --checkpoint_path "checkpoints/" --prompt "a futuristic magical panda with a purple glow, cyberpunk" --save_path "outputs/"

Note: It should take time the first time as it will download all the necessary weight files. If you want to use different SDXL checkpoints you can use the refiners library to convert those file.

Install your own sdxl weight files using the convertion script of refiners (see refiners docs).

Go check into the refiners docs and especially the part to add loras or Adapters on top of the layer diffuse, create the assets for any of your creations that matches a specific style.

Example of outputs

panda generation glass generation

What's Next ?

Add style aligned to the generated content, to align a batch to the same style with or without a ref image;

Add post processing for higher details quality (hands);

Don't hesitate to contribute! 🔆


Thanks to @limiteinductive for his help toward this implementation !

About

Implementation of layer diffuse inference using refiners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages