{
  "last_node_id": 15,
  "last_link_id": 18,
  "nodes": [
    {
      "id": 1,
      "type": "OllamaGenerate",
      "pos": [100, 300],
      "size": [400, 200],
      "properties": {},
      "widgets_values": [
        "http://localhost:11434",
        "llama3.2",
        "You are a visual prompt engineer for AI video generation. Given a short scene description, expand it into a detailed, cinematic prompt optimized for Wan 2.2 video generation. Include: camera angle, lighting, character appearance details, environment, motion, and art style. Keep it under 200 words. Always describe motion and action. Output ONLY the enhanced prompt, nothing else.",
        "",
        0.5,
        4096
      ],
      "title": "Ollama - Enrichissement de Prompt"
    },
    {
      "id": 2,
      "type": "CLIPLoader",
      "pos": [100, 600],
      "size": [315, 100],
      "properties": {},
      "widgets_values": [
        "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
        "wan"
      ],
      "title": "Load CLIP (UMT5-XXL)"
    },
    {
      "id": 3,
      "type": "CLIPTextEncode",
      "pos": [600, 400],
      "size": [400, 150],
      "properties": {},
      "widgets_values": [""],
      "title": "CLIP Text Encode (Prompt enrichi)"
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [600, 600],
      "size": [400, 150],
      "properties": {},
      "widgets_values": [
        "blurry, low quality, distorted, deformed, ugly, watermark, text, logo, static, no motion, flickering, artifacts, noise, grainy"
      ],
      "title": "CLIP Text Encode (Negative)"
    },
    {
      "id": 5,
      "type": "UNETLoader",
      "pos": [100, 800],
      "size": [315, 100],
      "properties": {},
      "widgets_values": [
        "wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors",
        "fp8_e4m3fn"
      ],
      "title": "Load Diffusion Model (High Noise)"
    },
    {
      "id": 6,
      "type": "UNETLoader",
      "pos": [100, 1000],
      "size": [315, 100],
      "properties": {},
      "widgets_values": [
        "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors",
        "fp8_e4m3fn"
      ],
      "title": "Load Diffusion Model (Low Noise)"
    },
    {
      "id": 7,
      "type": "VAELoader",
      "pos": [100, 1200],
      "size": [315, 100],
      "properties": {},
      "widgets_values": [
        "wan_2.1_vae.safetensors"
      ],
      "title": "Load VAE (Wan 2.1)"
    },
    {
      "id": 8,
      "type": "EmptyWanVideoLatentVideo",
      "pos": [600, 900],
      "size": [315, 150],
      "properties": {},
      "widgets_values": [
        832,
        480,
        81,
        1
      ],
      "title": "Empty Latent Video (480p, ~5s)"
    },
    {
      "id": 9,
      "type": "WanVideoMoESampler",
      "pos": [1100, 500],
      "size": [400, 350],
      "properties": {},
      "widgets_values": [
        42,
        "fixed",
        30,
        6.0,
        0.4,
        "beta",
        1.0,
        true
      ],
      "title": "Wan Video MoE Sampler"
    },
    {
      "id": 10,
      "type": "VAEDecode",
      "pos": [1600, 500],
      "size": [200, 100],
      "properties": {},
      "title": "VAE Decode"
    },
    {
      "id": 11,
      "type": "VHS_VideoCombine",
      "pos": [1900, 500],
      "size": [315, 250],
      "properties": {},
      "widgets_values": [
        24,
        0,
        "video/h264-mp4",
        false,
        true,
        "wan22_output",
        "output",
        {}
      ],
      "title": "Save Video (MP4)"
    },
    {
      "id": 12,
      "type": "Note",
      "pos": [100, 100],
      "size": [600, 150],
      "properties": {},
      "widgets_values": [
        "=== PIPELINE VIDÉO AI — Francis B. Morissette ===\n\nWorkflow Wan 2.2 T2V 14B MoE + Ollama\n\n1. Entrez votre description de scène dans le nœud texte (id:13)\n2. Ollama enrichit le prompt automatiquement\n3. Le prompt enrichi passe dans CLIP puis le sampler MoE\n4. Résolution: 832x480 (480p) | 81 frames (~5s à 24fps)\n5. Ajustez le seed pour des variations\n\nPour les codes du bâtiment: décrivez la scène technique souhaitée."
      ],
      "title": "Instructions",
      "color": "#233"
    },
    {
      "id": 13,
      "type": "PrimitiveNode",
      "pos": [100, 150],
      "size": [400, 150],
      "properties": {},
      "widgets_values": [
        "Un inspecteur en casque de construction examine une poutre en acier dans un bâtiment commercial, éclairage fluorescent, environnement de chantier"
      ],
      "title": "Description de la scène (entrée)"
    }
  ],
  "links": [
    [1, 1, 0, 3, 1, "STRING"],
    [2, 2, 0, 3, 0, "CLIP"],
    [3, 2, 0, 4, 0, "CLIP"],
    [4, 5, 0, 9, 0, "MODEL"],
    [5, 6, 0, 9, 1, "MODEL"],
    [6, 3, 0, 9, 2, "CONDITIONING"],
    [7, 4, 0, 9, 3, "CONDITIONING"],
    [8, 8, 0, 9, 4, "LATENT"],
    [9, 9, 0, 10, 0, "LATENT"],
    [10, 7, 0, 10, 1, "VAE"],
    [11, 10, 0, 11, 0, "IMAGE"],
    [12, 13, 0, 1, 0, "STRING"]
  ],
  "groups": [
    {
      "title": "Scénarisation (Ollama)",
      "bounding": [80, 80, 450, 450],
      "color": "#3f789e"
    },
    {
      "title": "Encodage texte",
      "bounding": [580, 350, 450, 450],
      "color": "#2a363b"
    },
    {
      "title": "Modèles Wan 2.2",
      "bounding": [80, 750, 450, 500],
      "color": "#3b8686"
    },
    {
      "title": "Génération vidéo",
      "bounding": [1080, 450, 450, 450],
      "color": "#79bd9a"
    },
    {
      "title": "Export",
      "bounding": [1580, 450, 450, 350],
      "color": "#a59a80"
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7,
      "offset": [0, 0]
    }
  },
  "version": 0.4
}
