File size: 830 Bytes
954985a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
---
license: other
license_name: license-flux1-dev
license_link: >-
https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev
---
# Introduction
Hello, please refer to [github repo](https://github.com/yishaoai/tutorials-of-100-wonderful-ai-models/tree/main/2.flux-controlnet) for more detail.
## train
**prepare code and environment**
```shell
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 ../..
```
```shell
bash train.sh
```
## inference
```shell
python infer.py
```
## demo of results
![demo](https://raw.githubusercontent.com/yishaoai/tutorials-of-100-wonderful-ai-models/main/2.flux-controlnet/assets/flux-controlnet.png)
|