wonwizard commited on
Commit
2875ea6
Β·
verified Β·
1 Parent(s): 95843b4

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: flux-1-dev-non-commercial-license
4
+ license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.
5
+ language:
6
+ - en
7
+ pipeline_tag: text-to-image
8
+ tags:
9
+ - lora
10
+ - Stable Diffusion
11
+ - image-generation
12
+ - Flux
13
+ - diffusers
14
+ base_model: black-forest-labs/FLUX.1-dev
15
+ ---
16
+ ![Lora Photorealism for Flux](https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/light/lora-photorealism-header-rev1.png?raw=true)
17
+
18
+ This repository provides a checkpoint with trained LoRA photorealism for
19
+ [FLUX.1-dev model](https://huggingface.co/black-forest-labs/FLUX.1-dev) by Black Forest Labs
20
+
21
+ ![Example Picture 1](https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/picture-6-rev1.png?raw=true)
22
+
23
+ # Training details
24
+ [XLabs AI](https://github.com/XLabs-AI) team is happy to publish fune-tuning Flux scripts, including:
25
+
26
+ - **LoRA** πŸ”₯
27
+ - **ControlNet** πŸ”₯
28
+
29
+ [See our github](https://github.com/XLabs-AI/x-flux) for train script and train configs.
30
+
31
+ # Training Dataset
32
+ Dataset has the following format for the training process:
33
+
34
+ ```
35
+ β”œβ”€β”€ images/
36
+ β”‚ β”œβ”€β”€ 1.png
37
+ β”‚ β”œβ”€β”€ 1.json
38
+ β”‚ β”œβ”€β”€ 2.png
39
+ β”‚ β”œβ”€β”€ 2.json
40
+ β”‚ β”œβ”€β”€ ...
41
+ ```
42
+ A .json file contains "caption" field with a text prompt.
43
+
44
+ # Inference
45
+ ```bash
46
+ python3 demo_lora_inference.py \
47
+ --checkpoint lora.safetensors \
48
+ --prompt " handsome girl in a suit covered with bold tattoos and holding a pistol. Animatrix illustration style, fantasy style, natural photo cinematic"
49
+ ```
50
+
51
+ ![Example Picture 1](https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/picture-0-rev1.png?raw=true)
52
+
53
+
54
+ # License
55
+
56
+ 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/>