Instructions to use thedeoxen/MOSS-Image-scribble-controlnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use thedeoxen/MOSS-Image-scribble-controlnet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("thedeoxen/MOSS-Image-scribble-controlnet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "OpenMOSS-Team/MOSS-Image-SFT", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download moss_image_scribble_control.json from thedeoxen/MOSS-Image-scribble-controlnet: direct link, hf CLI and curl.
- Browser
- Download file 14.5 kB
-
https://huggingface.co/thedeoxen/MOSS-Image-scribble-controlnet/resolve/main/moss_image_scribble_control.json
- Command line
-
hf download hf://thedeoxen/MOSS-Image-scribble-controlnet/moss_image_scribble_control.json
-
curl -L -o moss_image_scribble_control.json https://huggingface.co/thedeoxen/MOSS-Image-scribble-controlnet/resolve/main/moss_image_scribble_control.json
14.5 kB
| { | |
| "id": "moss-image-scribble-control", | |
| "revision": 0, | |
| "last_node_id": 14, | |
| "last_link_id": 19, | |
| "nodes": [ | |
| { | |
| "id": 1, | |
| "type": "LoadImage", | |
| "pos": [ | |
| 40, | |
| 80 | |
| ], | |
| "size": [ | |
| 360, | |
| 420 | |
| ], | |
| "flags": {}, | |
| "order": 1, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 1 | |
| ] | |
| }, | |
| { | |
| "name": "MASK", | |
| "type": "MASK", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoadImage" | |
| }, | |
| "widgets_values": [ | |
| "example.png", | |
| "image" | |
| ], | |
| "widgets_values_named": { | |
| "image": "example.png", | |
| "upload": "image" | |
| } | |
| }, | |
| { | |
| "id": 2, | |
| "type": "HEDPreprocessor", | |
| "pos": [ | |
| 460, | |
| 80 | |
| ], | |
| "size": [ | |
| 320, | |
| 250 | |
| ], | |
| "flags": {}, | |
| "order": 2, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 2, | |
| 18, | |
| 19, | |
| 10 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "HEDPreprocessor" | |
| }, | |
| "widgets_values": [ | |
| "enable", | |
| 1024 | |
| ], | |
| "widgets_values_named": { | |
| "safe": "enable", | |
| "resolution": 1024 | |
| }, | |
| "title": "scribble control" | |
| }, | |
| { | |
| "id": 3, | |
| "type": "UNETLoader", | |
| "pos": [ | |
| 40, | |
| 560 | |
| ], | |
| "size": [ | |
| 420, | |
| 90 | |
| ], | |
| "flags": {}, | |
| "order": 3, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 3 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "UNETLoader" | |
| }, | |
| "widgets_values": [ | |
| "moss_image_sft_int8_convrot.safetensors", | |
| "default" | |
| ], | |
| "widgets_values_named": { | |
| "unet_name": "moss_image_sft_int8_convrot.safetensors", | |
| "weight_dtype": "default" | |
| } | |
| }, | |
| { | |
| "id": 4, | |
| "type": "LoraLoaderModelOnly", | |
| "pos": [ | |
| 500, | |
| 560 | |
| ], | |
| "size": [ | |
| 420, | |
| 110 | |
| ], | |
| "flags": {}, | |
| "order": 4, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 3 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "MODEL", | |
| "type": "MODEL", | |
| "links": [ | |
| 4 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "LoraLoaderModelOnly" | |
| }, | |
| "widgets_values": [ | |
| "moss_image_sft_scribble_control_lora.safetensors", | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "lora_name": "moss_image_sft_scribble_control_lora.safetensors", | |
| "strength_model": 1 | |
| }, | |
| "title": "scribble control LoRA" | |
| }, | |
| { | |
| "id": 5, | |
| "type": "CLIPLoader", | |
| "pos": [ | |
| 40, | |
| 700 | |
| ], | |
| "size": [ | |
| 420, | |
| 130 | |
| ], | |
| "flags": {}, | |
| "order": 5, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "CLIP", | |
| "type": "CLIP", | |
| "links": [ | |
| 5, | |
| 6 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "CLIPLoader" | |
| }, | |
| "widgets_values": [ | |
| "qwen3.5_9b_w4a8_gptq.safetensors", | |
| "moss_image", | |
| "default" | |
| ], | |
| "widgets_values_named": { | |
| "clip_name": "qwen3.5_9b_w4a8_gptq.safetensors", | |
| "type": "moss_image", | |
| "device": "default" | |
| } | |
| }, | |
| { | |
| "id": 6, | |
| "type": "VAELoader", | |
| "pos": [ | |
| 40, | |
| 880 | |
| ], | |
| "size": [ | |
| 420, | |
| 70 | |
| ], | |
| "flags": {}, | |
| "order": 6, | |
| "mode": 0, | |
| "inputs": [], | |
| "outputs": [ | |
| { | |
| "name": "VAE", | |
| "type": "VAE", | |
| "links": [ | |
| 7, | |
| 8, | |
| 9 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAELoader" | |
| }, | |
| "widgets_values": [ | |
| "flux2-vae_small.safetensors" | |
| ], | |
| "widgets_values_named": { | |
| "vae_name": "flux2-vae_small.safetensors" | |
| } | |
| }, | |
| { | |
| "id": 7, | |
| "type": "GetImageSize", | |
| "pos": [ | |
| 840, | |
| 80 | |
| ], | |
| "size": [ | |
| 220, | |
| 140 | |
| ], | |
| "flags": {}, | |
| "order": 7, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "image", | |
| "type": "IMAGE", | |
| "link": 2 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "width", | |
| "type": "INT", | |
| "links": [ | |
| 11 | |
| ] | |
| }, | |
| { | |
| "name": "height", | |
| "type": "INT", | |
| "links": [ | |
| 12 | |
| ] | |
| }, | |
| { | |
| "name": "batch_size", | |
| "type": "INT", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "GetImageSize" | |
| } | |
| }, | |
| { | |
| "id": 8, | |
| "type": "TextEncodeMOSSImageEdit", | |
| "pos": [ | |
| 1100, | |
| 40 | |
| ], | |
| "size": [ | |
| 480, | |
| 360 | |
| ], | |
| "flags": {}, | |
| "order": 8, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 5 | |
| }, | |
| { | |
| "name": "images.image_0", | |
| "type": "IMAGE", | |
| "link": 18 | |
| }, | |
| { | |
| "name": "images.image_1", | |
| "type": "IMAGE", | |
| "link": null, | |
| "shape": 7 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 7 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 13 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "TextEncodeMOSSImageEdit" | |
| }, | |
| "widgets_values": [ | |
| "A chrome pitcher tilts and pours a ribbon of dark chocolate over a tall cake in a pink neon diner. One sugar crystal hangs in mid-air beside the stream. Glossy chrome, wet highlights, cinematic photograph.", | |
| "ai-toolkit", | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "prompt": "A chrome pitcher tilts and pours a ribbon of dark chocolate over a tall cake in a pink neon diner. One sugar crystal hangs in mid-air beside the stream. Glossy chrome, wet highlights, cinematic photograph.", | |
| "edit_format": "ai-toolkit", | |
| "image_strength": 1 | |
| }, | |
| "title": "Text Encode MOSS-Image Edit (positive)" | |
| }, | |
| { | |
| "id": 9, | |
| "type": "TextEncodeMOSSImageEdit", | |
| "pos": [ | |
| 1100, | |
| 440 | |
| ], | |
| "size": [ | |
| 480, | |
| 300 | |
| ], | |
| "flags": {}, | |
| "order": 9, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "clip", | |
| "type": "CLIP", | |
| "link": 6 | |
| }, | |
| { | |
| "name": "images.image_0", | |
| "type": "IMAGE", | |
| "link": 19 | |
| }, | |
| { | |
| "name": "images.image_1", | |
| "type": "IMAGE", | |
| "link": null, | |
| "shape": 7 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 8 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "CONDITIONING", | |
| "type": "CONDITIONING", | |
| "links": [ | |
| 14 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "TextEncodeMOSSImageEdit" | |
| }, | |
| "widgets_values": [ | |
| "nsfw, worst quality, bad anatomy, watermark, jpeg artifact", | |
| "ai-toolkit", | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "prompt": "nsfw, worst quality, bad anatomy, watermark, jpeg artifact", | |
| "edit_format": "ai-toolkit", | |
| "image_strength": 1 | |
| }, | |
| "title": "Text Encode MOSS-Image Edit (negative)" | |
| }, | |
| { | |
| "id": 10, | |
| "type": "EmptyLatentImage", | |
| "pos": [ | |
| 840, | |
| 280 | |
| ], | |
| "size": [ | |
| 240, | |
| 160 | |
| ], | |
| "flags": {}, | |
| "order": 10, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "width", | |
| "type": "INT", | |
| "link": 11 | |
| }, | |
| { | |
| "name": "height", | |
| "type": "INT", | |
| "link": 12 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 15 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "EmptyLatentImage" | |
| }, | |
| "widgets_values": [ | |
| 1024, | |
| 1024, | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "width": 1024, | |
| "height": 1024, | |
| "batch_size": 1 | |
| } | |
| }, | |
| { | |
| "id": 11, | |
| "type": "KSampler", | |
| "pos": [ | |
| 1640, | |
| 80 | |
| ], | |
| "size": [ | |
| 320, | |
| 470 | |
| ], | |
| "flags": {}, | |
| "order": 11, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "model", | |
| "type": "MODEL", | |
| "link": 4 | |
| }, | |
| { | |
| "name": "positive", | |
| "type": "CONDITIONING", | |
| "link": 13 | |
| }, | |
| { | |
| "name": "negative", | |
| "type": "CONDITIONING", | |
| "link": 14 | |
| }, | |
| { | |
| "name": "latent_image", | |
| "type": "LATENT", | |
| "link": 15 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "LATENT", | |
| "type": "LATENT", | |
| "links": [ | |
| 16 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "KSampler" | |
| }, | |
| "widgets_values": [ | |
| 42, | |
| "fixed", | |
| 30, | |
| 4, | |
| "euler", | |
| "simple", | |
| 1 | |
| ], | |
| "widgets_values_named": { | |
| "seed": 42, | |
| "control_after_generate": "fixed", | |
| "steps": 30, | |
| "cfg": 4, | |
| "sampler_name": "euler", | |
| "scheduler": "simple", | |
| "denoise": 1 | |
| } | |
| }, | |
| { | |
| "id": 12, | |
| "type": "VAEDecode", | |
| "pos": [ | |
| 2000, | |
| 80 | |
| ], | |
| "size": [ | |
| 240, | |
| 70 | |
| ], | |
| "flags": {}, | |
| "order": 12, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "samples", | |
| "type": "LATENT", | |
| "link": 16 | |
| }, | |
| { | |
| "name": "vae", | |
| "type": "VAE", | |
| "link": 9 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "IMAGE", | |
| "type": "IMAGE", | |
| "links": [ | |
| 17 | |
| ] | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "VAEDecode" | |
| }, | |
| "widgets_values": [] | |
| }, | |
| { | |
| "id": 13, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 840, | |
| 480 | |
| ], | |
| "size": [ | |
| 280, | |
| 280 | |
| ], | |
| "flags": {}, | |
| "order": 13, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 10 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PreviewImage" | |
| }, | |
| "widgets_values": [], | |
| "title": "Control" | |
| }, | |
| { | |
| "id": 14, | |
| "type": "PreviewImage", | |
| "pos": [ | |
| 2000, | |
| 200 | |
| ], | |
| "size": [ | |
| 420, | |
| 420 | |
| ], | |
| "flags": {}, | |
| "order": 14, | |
| "mode": 0, | |
| "inputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "link": 17 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "images", | |
| "type": "IMAGE", | |
| "links": null | |
| } | |
| ], | |
| "properties": { | |
| "Node name for S&R": "PreviewImage" | |
| }, | |
| "widgets_values": [], | |
| "title": "Result" | |
| } | |
| ], | |
| "links": [ | |
| [ | |
| 1, | |
| 1, | |
| 0, | |
| 2, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 2, | |
| 2, | |
| 0, | |
| 7, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 18, | |
| 2, | |
| 0, | |
| 8, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 19, | |
| 2, | |
| 0, | |
| 9, | |
| 1, | |
| "IMAGE" | |
| ], | |
| [ | |
| 10, | |
| 2, | |
| 0, | |
| 13, | |
| 0, | |
| "IMAGE" | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 0, | |
| 4, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 4, | |
| 4, | |
| 0, | |
| 11, | |
| 0, | |
| "MODEL" | |
| ], | |
| [ | |
| 5, | |
| 5, | |
| 0, | |
| 8, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 6, | |
| 5, | |
| 0, | |
| 9, | |
| 0, | |
| "CLIP" | |
| ], | |
| [ | |
| 7, | |
| 6, | |
| 0, | |
| 8, | |
| 3, | |
| "VAE" | |
| ], | |
| [ | |
| 8, | |
| 6, | |
| 0, | |
| 9, | |
| 3, | |
| "VAE" | |
| ], | |
| [ | |
| 9, | |
| 6, | |
| 0, | |
| 12, | |
| 1, | |
| "VAE" | |
| ], | |
| [ | |
| 11, | |
| 7, | |
| 0, | |
| 10, | |
| 0, | |
| "INT" | |
| ], | |
| [ | |
| 12, | |
| 7, | |
| 1, | |
| 10, | |
| 1, | |
| "INT" | |
| ], | |
| [ | |
| 13, | |
| 8, | |
| 0, | |
| 11, | |
| 1, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 14, | |
| 9, | |
| 0, | |
| 11, | |
| 2, | |
| "CONDITIONING" | |
| ], | |
| [ | |
| 15, | |
| 10, | |
| 0, | |
| 11, | |
| 3, | |
| "LATENT" | |
| ], | |
| [ | |
| 16, | |
| 11, | |
| 0, | |
| 12, | |
| 0, | |
| "LATENT" | |
| ], | |
| [ | |
| 17, | |
| 12, | |
| 0, | |
| 14, | |
| 0, | |
| "IMAGE" | |
| ] | |
| ], | |
| "groups": [], | |
| "config": {}, | |
| "extra": { | |
| "frontendVersion": "1.58.5" | |
| }, | |
| "version": 0.4 | |
| } |