--- 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)