okaris / omni-zero

Omni-Zero: A diffusion pipeline for zero-shot stylized portrait creation.

  • Public
  • 220.5K runs
  • L40S
  • GitHub
  • License
Iterate in playground

Input

integer

Random seed for the model

Default: 42

string

Model to use for the prediction

Default: "omni-zero"

string
Shift + Return to add a new line

Prompt for the model

Default: "A person"

string
Shift + Return to add a new line

Negative prompt for the model

Default: "blurry, out of focus"

number
(minimum: 0, maximum: 14)

Guidance scale for the model

Default: 3

integer
(minimum: 1, maximum: 4)

Number of images to generate

Default: 1

integer
(minimum: 1, maximum: 50)

Number of steps for the model

Default: 10

file

Base image for the model

number
(minimum: 0, maximum: 1)

Base image strength for the model

Default: 0.15

file

Composition image for the model

number
(minimum: 0, maximum: 1)

Composition image strength for the model

Default: 1

*file

Style image for the model

number
(minimum: 0, maximum: 1)

Style image strength for the model

Default: 1

*file

Identity image for the model

number
(minimum: 0, maximum: 1)

Identity image strength for the model

Default: 1

file

Depth image for the model

number
(minimum: 0, maximum: 1)

Depth image strength for the model, if not supplied the composition image will be used for depth

Default: 0.5

Output

output
Generated in

This output was created using a different version of the model, okaris/omni-zero:63ae60eb.

Run time and cost

This model costs approximately $0.021 to run on Replicate, or 47 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 22 seconds. The predict time for this model varies significantly based on the inputs.

Readme

Announcement: Omni-Zero Couples is now live

https://github.com/okaris/omni-zero-couples

Buy me a coffee

Use Omni-Zero in HuggingFace Spaces ZeroGPU https://huggingface.co/spaces/okaris/omni-zero

Omni-Zero

Use Omni-Zero in fal.ai Workflows https://fal.ai/dashboard/workflows/okaris/omni-zero

Omni-Zero

Try our free demo on StyleOf https://styleof.com/s/remix-yourself

Omni-Zero

Single Identity and Style

Omni-Zero

Multiple Identities and Styles (WIP)

Frame 7-3

How to run

git clone --recursive https://github.com/okaris/omni-zero.git
cd omni-zero
pip install -r requirements.txt
python demo.py

Credits

  • Special thanks to fal.ai for providing compute for the research and hosting
  • This project wouldn’t be possible without the great work of the InstantX Team
  • Thanks to @fofrAI for inspiring me with his face-to-many workflow
  • Thanks to Matteo (@cubiq) for creating the ComfyUI nodes for IP-Adapter