Diffusers
Safetensors
How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("YishaoAI/flux-dev-controlnet-canny-kid-clothes", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

Introduction

Hello, please refer to github repo for more detail.

train

prepare code and environment

git clone https://github.com/yishaoai/tutorials-of-100-wonderful-ai-models
cd tutorials-of-100-wonderful-ai-models/2.flux-controlnet/diffusers
git submodule update --init .
pip install -r requirements.txt
cd ../..
bash train.sh

inference


python infer.py

demo of results

demo

Downloads last month
22
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support