Skip to content
Python
6.4 KB
Raw Blame
{
  "9": {
    "class_type": "SaveImage",
    "inputs": {
      "images": [
        "18:8",
        0
      ],
      "filename_prefix": "freefield/moss-image"
    },
    "_meta": {
      "title": "Save Image"
    }
  },
  "18:1": {
    "class_type": "UNETLoader",
    "inputs": {
      "unet_name": "moss_image_sft_int8_convrot.safetensors",
      "weight_dtype": "default"
    },
    "_meta": {
      "title": "Load Diffusion Model"
    }
  },
  "18:2": {
    "class_type": "CLIPLoader",
    "inputs": {
      "clip_name": "qwen3.5_9b_w4a8_gptq.safetensors",
      "type": "moss_image",
      "device": "default"
    },
    "_meta": {
      "title": "Load CLIP"
    }
  },
  "18:3": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "flux2-vae_small.safetensors"
    },
    "_meta": {
      "title": "Load VAE"
    }
  },
  "18:4": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": [
        "18:2",
        0
      ],
      "text": [
        "18:13",
        0
      ]
    },
    "_meta": {
      "title": "Positive Prompt"
    }
  },
  "18:5": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": [
        "18:2",
        0
      ],
      "text": ""
    },
    "_meta": {
      "title": "Negative Prompt (empty = reference default)"
    }
  },
  "18:6": {
    "class_type": "EmptyFlux2LatentImage",
    "inputs": {
      "batch_size": 1,
      "width": 1024,
      "height": 1024
    },
    "_meta": {
      "title": "Empty Flux 2 Latent"
    }
  },
  "18:7": {
    "class_type": "KSampler",
    "inputs": {
      "model": [
        "18:24",
        0
      ],
      "positive": [
        "18:4",
        0
      ],
      "negative": [
        "18:5",
        0
      ],
      "latent_image": [
        "18:6",
        0
      ],
      "seed": 0,
      "steps": 25,
      "cfg": 2.5,
      "sampler_name": "er_sde",
      "scheduler": "simple",
      "denoise": 1
    },
    "_meta": {
      "title": "KSampler"
    }
  },
  "18:8": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": [
        "18:7",
        0
      ],
      "vae": [
        "18:3",
        0
      ]
    },
    "_meta": {
      "title": "VAE Decode"
    }
  },
  "18:11": {
    "class_type": "TextGenerate",
    "inputs": {
      "clip": [
        "18:2",
        0
      ],
      "system_prompt": [
        "18:14",
        0
      ],
      "prompt": [
        "18:17",
        0
      ],
      "max_length": 4096,
      "sampling_mode": "on",
      "sampling_mode.temperature": 0.7,
      "sampling_mode.top_k": 64,
      "sampling_mode.top_p": 0.95,
      "sampling_mode.min_p": 0.05,
      "sampling_mode.repetition_penalty": 1,
      "sampling_mode.seed": 0,
      "sampling_mode.presence_penalty": 0,
      "thinking": false,
      "use_default_template": true,
      "mtp": "auto"
    },
    "_meta": {
      "title": "Generate Text"
    }
  },
  "18:13": {
    "class_type": "PreviewAny",
    "inputs": {
      "source": [
        "18:16",
        0
      ]
    },
    "_meta": {
      "title": "Preview as Text (final prompt)"
    }
  },
  "18:14": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": "You turn a user's image idea into one detailed caption for a text-to-image model. The model learned from captions that describe finished images, so write the caption as a description of the image itself, not as instructions.\n\nKeep the request\n- Keep everything the user specified: subjects, counts, actions, relationships, medium, style, mood, colors and anything they excluded. Never contradict or drop it.\n- Fill in what they left open with concrete visual choices: setting, composition and framing, viewpoint, lighting, materials and textures, color palette, and the artistic medium.\n- Describe only what can be seen. Leave out sounds, smells, backstory and intentions.\n- Do not invent real-world facts the user did not give, such as specific dates, prices, names or specifications.\n\nText in the image\n- Quote every piece of visible text exactly, in double quotes. Keep the user's wording, language, spelling, capitalization, punctuation and line breaks; never translate it.\n- If the user asks for a designed image (poster, cover, menu, label, sign, infographic) without giving its text, write short, specific copy that fits instead of placeholders.\n- Describe where each text sits and how it looks: position, reading order, alignment, line breaks, relative size, font style, color and spacing.\n- Do not mention watermarks or artist signatures.\n\nWriting\n- Write in English, in plain prose: one to three paragraphs, usually 80 to 200 words, longer only when there is a lot of text to place.\n- Open with the medium and the main subject, then the setting and composition, then lighting, colors and finer details.\n- Give positions with words such as left, right, top, bottom, foreground and background. No coordinates, lists, headings, JSON or Markdown.\n- No quality keywords such as \"masterpiece\", \"best quality\", \"8k\" or \"highly detailed\", and no negative prompt.\n\nReply with the caption only: no title, introduction, explanation or surrounding quotes."
    },
    "_meta": {
      "title": "Text (System prompt)"
    }
  },
  "18:15": {
    "class_type": "SkipLayerGuidanceDiTSimple",
    "inputs": {
      "model": [
        "18:1",
        0
      ],
      "double_layers": "",
      "single_layers": "22",
      "start_percent": 0,
      "end_percent": 0.5
    },
    "_meta": {
      "title": "SkipLayerGuidanceDiTSimple"
    }
  },
  "18:16": {
    "class_type": "ComfySwitchNode",
    "inputs": {
      "on_false": [
        "18:17",
        0
      ],
      "on_true": [
        "18:11",
        0
      ],
      "switch": true
    },
    "_meta": {
      "title": "If/Else Switch"
    }
  },
  "18:17": {
    "class_type": "PrimitiveStringMultiline",
    "inputs": {
      "value": "Cinematic night street photograph: a model in an exaggerated balloon-sleeve white wool coat walking toward camera under a huge illuminated theatre marquee, the marquee bulbs spelling \"MOSS\" in tall capital letters, wet asphalt with long reflections, warm tungsten glow against cold blue night, anamorphic flare, 35mm film grain, low angle"
    },
    "_meta": {
      "title": "Text (User Prompt)"
    }
  },
  "18:24": {
    "class_type": "ComfySwitchNode",
    "inputs": {
      "on_false": [
        "18:1",
        0
      ],
      "on_true": [
        "18:15",
        0
      ],
      "switch": false
    },
    "_meta": {
      "title": "If/Else Switch"
    }
  }
}