Instructions to use codecandy/realism with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use codecandy/realism with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("codecandy/realism") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: other | |
| license_name: flux-1-dev-non-commercial-license | |
| license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE. | |
| language: | |
| - en | |
| pipeline_tag: text-to-image | |
| tags: | |
| - lora | |
| - Stable Diffusion | |
| - image-generation | |
| - Flux | |
| - diffusers | |
| base_model: black-forest-labs/FLUX.1-dev | |
|  | |
| [<img src="https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/light/join-our-discord-rev1.png?raw=true">](https://discord.gg/FHY2guThfy) | |
| This repository provides a checkpoint with trained LoRA photorealism for | |
| [FLUX.1-dev model](https://huggingface.co/black-forest-labs/FLUX.1-dev) by Black Forest Labs | |
|  | |
| # ComfyUI | |
| [See our github](https://github.com/XLabs-AI/x-flux-comfyui) for comfy ui workflows. | |
|  | |
| # Training details | |
| [XLabs AI](https://github.com/XLabs-AI) team is happy to publish fine-tuning Flux scripts, including: | |
| - **LoRA** π₯ | |
| - **ControlNet** π₯ | |
| [See our github](https://github.com/XLabs-AI/x-flux) for train script and train configs. | |
| # Training Dataset | |
| Dataset has the following format for the training process: | |
| ``` | |
| βββ images/ | |
| β βββ 1.png | |
| β βββ 1.json | |
| β βββ 2.png | |
| β βββ 2.json | |
| β βββ ... | |
| ``` | |
| A .json file contains "caption" field with a text prompt. | |
| # Inference | |
| ```bash | |
| python3 demo_lora_inference.py \ | |
| --checkpoint lora.safetensors \ | |
| --prompt " handsome girl in a suit covered with bold tattoos and holding a pistol. Animatrix illustration style, fantasy style, natural photo cinematic" | |
| ``` | |
|  | |
| # License | |
| lora.safetensors falls under the [FLUX.1 [dev]](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md) Non-Commercial License<br/> |