CoolFace
Modelpublic

codecandy/realism

sourceHugging Faceotherupdated 1y agoView on Hugging Face
0likes29downloads
Model Card

Lora Photorealism for Flux <img src="https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/light/join-our-discord-rev1.png?raw=true">

This repository provides a checkpoint with trained LoRA photorealism for FLUX.1-dev model by Black Forest Labs

Example Picture 1

ComfyUI

See our github for comfy ui workflows. Example Picture 1

Training details

XLabs AI team is happy to publish fine-tuning Flux scripts, including:

  • โ€”LoRA ๐Ÿ”ฅ
  • โ€”ControlNet ๐Ÿ”ฅ

See our github 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"

Example Picture 1

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