Instructions to use YishaoAI/flux-dev-controlnet-canny-kid-clothes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YishaoAI/flux-dev-controlnet-canny-kid-clothes with Diffusers:
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] - Notebooks
- Google Colab
- Kaggle
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
- Downloads last month
- 8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
