thedeoxen commited on
Commit
a955f96
·
verified ·
1 Parent(s): 788eb37

Call out that this is a ControlNet-like LoRA

Browse files
Files changed (1) hide show
  1. README.md +105 -105
README.md CHANGED
@@ -1,105 +1,105 @@
1
- ---
2
- license: apache-2.0
3
- base_model: OpenMOSS-Team/MOSS-Image-SFT
4
- base_model_relation: adapter
5
- language:
6
- - en
7
- pipeline_tag: image-to-image
8
- tags:
9
- - moss-image
10
- - controlnet
11
- - lora
12
- - comfyui
13
- - depth
14
- library_name: diffusers
15
- ---
16
-
17
- # MOSS-Image-SFT — Depth Control LoRA
18
-
19
- ## Short description
20
-
21
- A depth Control LoRA for **MOSS-Image-SFT**. Feed a grayscale depth map, near is white. The model follows distance and layout, and the prompt sets the subject and style.
22
-
23
- This is a ControlNet-style **edit LoRA**, not the official MOSS color/depth concat adapter. Load it with a LoRA loader and pass one control image through **Text Encode MOSS-Image Edit**.
24
-
25
- Selected checkpoint: training step **5000**.
26
-
27
- ## Files
28
-
29
- - **Weights:** [moss_image_sft_depth_control_lora.safetensors](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet/blob/main/moss_image_sft_depth_control_lora.safetensors)
30
- - **ComfyUI workflow:** [moss_image_depth_control.json](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet/blob/main/moss_image_depth_control.json)
31
- - **Repo:** [thedeoxen/MOSS-Image-depth-controlnet](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet)
32
-
33
- ## Examples
34
-
35
- Each preview is one combined image, left to right: **control**, then three prompts.
36
-
37
- | Control → Results |
38
- | --- |
39
- | ![](images/figure.jpg) |
40
- | ![](images/stag.jpg) |
41
- | ![](images/espresso.jpg) |
42
- | ![](images/ramen.jpg) |
43
- | ![](images/subway.jpg) |
44
-
45
-
46
- ## Extended description
47
-
48
- Follows near-to-far layout from a grayscale depth map. Appearance, materials, clothing and the world come from the text prompt.
49
-
50
- The LoRA is rank 64 on linear layers and rank 16 on convolutions. It was trained as an edit adapter: the control image is the reference, and the prompt describes the picture to generate.
51
-
52
- ## How to use
53
-
54
- 1. Load **MOSS-Image-SFT**: UNet `moss_image_sft_int8_convrot.safetensors`, text encoder `qwen3.5_9b_w4a8_gptq.safetensors` with type `moss_image`, VAE `flux2-vae_small.safetensors`.
55
- 2. Load this LoRA on the UNet at strength **1.0**.
56
- 3. Build the control map and pass it as the single reference image in **Text Encode MOSS-Image Edit**.
57
- 4. Set **edit format** to `ai-toolkit` on both the positive and the negative encode. This LoRA was trained with kv cache on.
58
- 5. Sample with **30 steps**, **CFG 4**, `euler` + `simple`.
59
-
60
- No trigger word. The control image sets the structure. The prompt sets identity, materials, clothing and the world.
61
-
62
- ## ComfyUI
63
-
64
- The workflow in this repo loads a photo, builds the control map, encodes it with the prompt, and samples.
65
-
66
- The included workflow builds the map with **Depth Anything V2** (`depth_anything_v2_vitl`). Near surfaces are white, the background falls to black, as in the training controls.
67
-
68
- Also uses the built-in **Text Encode MOSS-Image Edit** node. Set the edit format to `ai-toolkit`.
69
-
70
- ### Base model
71
-
72
- Trained on and recommended with **[OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT)**.
73
-
74
- Typical settings from the included workflow: **30 steps**, **CFG 4**, `euler` + `simple`, LoRA strength **1.0**.
75
-
76
- Negative prompt used in training samples:
77
-
78
- ```
79
- nsfw, worst quality, bad anatomy, watermark, jpeg artifact
80
- ```
81
-
82
- ### Example prompt
83
-
84
- ```
85
- Dramatic low angle, face and torso huge. A chunky voxel person built from primary-color bricks, one brick hand reaching toward the camera, the other arm thrown out. White gallery, soft studio light, sharp detail.
86
- ```
87
-
88
- ## What it does
89
-
90
- - Follows near-to-far layout from a grayscale depth map.
91
- - Lets the prompt define identity, materials, clothing and style.
92
- - Works as a single-image control adapter for MOSS-Image-SFT.
93
-
94
- ## Tips
95
-
96
- - Keep near = white. An inverted map fights the LoRA.
97
- - Large flat depth regions leave the prompt more room for texture.
98
- - Use it when the camera depth matters more than every edge.
99
- - Lower the LoRA strength toward 0.7 if the control is too rigid. Strength 1.0 is the trained value.
100
-
101
- ## Use cases
102
-
103
- - Rebuilding a scene at the same camera depth in a new style.
104
- - Holding foreground and background apart while changing materials.
105
- - Product and interior layouts with a clear near subject.
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: OpenMOSS-Team/MOSS-Image-SFT
4
+ base_model_relation: adapter
5
+ language:
6
+ - en
7
+ pipeline_tag: image-to-image
8
+ tags:
9
+ - moss-image
10
+ - controlnet
11
+ - lora
12
+ - comfyui
13
+ - depth
14
+ library_name: diffusers
15
+ ---
16
+
17
+ # MOSS-Image-SFT — Depth Control LoRA
18
+
19
+ ## Short description
20
+
21
+ A depth Control LoRA for **MOSS-Image-SFT**. Feed a grayscale depth map, near is white. The model follows distance and layout, and the prompt sets the subject and style.
22
+
23
+ A ControlNet-like LoRA (controlnet) for MOSS-Image-SFT: a LoRA that follows a control image the way a ControlNet does, not a full ControlNet model and not the official MOSS color/depth concat adapter. Load it with a LoRA loader and pass one control image through **Text Encode MOSS-Image Edit**.
24
+
25
+ Selected checkpoint: training step **5000**.
26
+
27
+ ## Files
28
+
29
+ - **Weights:** [moss_image_sft_depth_control_lora.safetensors](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet/blob/main/moss_image_sft_depth_control_lora.safetensors)
30
+ - **ComfyUI workflow:** [moss_image_depth_control.json](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet/blob/main/moss_image_depth_control.json)
31
+ - **Repo:** [thedeoxen/MOSS-Image-depth-controlnet](https://huggingface.co/thedeoxen/MOSS-Image-depth-controlnet)
32
+
33
+ ## Examples
34
+
35
+ Each preview is one combined image, left to right: **control**, then three prompts.
36
+
37
+ | Control → Results |
38
+ | --- |
39
+ | ![](images/figure.jpg) |
40
+ | ![](images/stag.jpg) |
41
+ | ![](images/espresso.jpg) |
42
+ | ![](images/ramen.jpg) |
43
+ | ![](images/subway.jpg) |
44
+
45
+
46
+ ## Extended description
47
+
48
+ Follows near-to-far layout from a grayscale depth map. Appearance, materials, clothing and the world come from the text prompt.
49
+
50
+ The LoRA is rank 64 on linear layers and rank 16 on convolutions. It was trained as an edit adapter: the control image is the reference, and the prompt describes the picture to generate.
51
+
52
+ ## How to use
53
+
54
+ 1. Load **MOSS-Image-SFT**: UNet `moss_image_sft_int8_convrot.safetensors`, text encoder `qwen3.5_9b_w4a8_gptq.safetensors` with type `moss_image`, VAE `flux2-vae_small.safetensors`.
55
+ 2. Load this LoRA on the UNet at strength **1.0**.
56
+ 3. Build the control map and pass it as the single reference image in **Text Encode MOSS-Image Edit**.
57
+ 4. Set **edit format** to `ai-toolkit` on both the positive and the negative encode. This LoRA was trained with kv cache on.
58
+ 5. Sample with **30 steps**, **CFG 4**, `euler` + `simple`.
59
+
60
+ No trigger word. The control image sets the structure. The prompt sets identity, materials, clothing and the world.
61
+
62
+ ## ComfyUI
63
+
64
+ The workflow in this repo loads a photo, builds the control map, encodes it with the prompt, and samples.
65
+
66
+ The included workflow builds the map with **Depth Anything V2** (`depth_anything_v2_vitl`). Near surfaces are white, the background falls to black, as in the training controls.
67
+
68
+ Also uses the built-in **Text Encode MOSS-Image Edit** node. Set the edit format to `ai-toolkit`.
69
+
70
+ ### Base model
71
+
72
+ Trained on and recommended with **[OpenMOSS-Team/MOSS-Image-SFT](https://huggingface.co/OpenMOSS-Team/MOSS-Image-SFT)**.
73
+
74
+ Typical settings from the included workflow: **30 steps**, **CFG 4**, `euler` + `simple`, LoRA strength **1.0**.
75
+
76
+ Negative prompt used in training samples:
77
+
78
+ ```
79
+ nsfw, worst quality, bad anatomy, watermark, jpeg artifact
80
+ ```
81
+
82
+ ### Example prompt
83
+
84
+ ```
85
+ Dramatic low angle, face and torso huge. A chunky voxel person built from primary-color bricks, one brick hand reaching toward the camera, the other arm thrown out. White gallery, soft studio light, sharp detail.
86
+ ```
87
+
88
+ ## What it does
89
+
90
+ - Follows near-to-far layout from a grayscale depth map.
91
+ - Lets the prompt define identity, materials, clothing and style.
92
+ - Works as a single-image control adapter for MOSS-Image-SFT.
93
+
94
+ ## Tips
95
+
96
+ - Keep near = white. An inverted map fights the LoRA.
97
+ - Large flat depth regions leave the prompt more room for texture.
98
+ - Use it when the camera depth matters more than every edge.
99
+ - Lower the LoRA strength toward 0.7 if the control is too rigid. Strength 1.0 is the trained value.
100
+
101
+ ## Use cases
102
+
103
+ - Rebuilding a scene at the same camera depth in a new style.
104
+ - Holding foreground and background apart while changing materials.
105
+ - Product and interior layouts with a clear near subject.