Skip to content
Python
2.3 KB
Raw Blame
{
  "4": {
    "class_type": "LoadVideo",
    "inputs": {
      "file": "white_armored_warrior.mp4"
    },
    "_meta": {
      "title": "Load Video"
    }
  },
  "7": {
    "class_type": "SaveVideo",
    "inputs": {
      "video": [
        "16:5",
        0
      ],
      "filename_prefix": "freefield/smooth",
      "format": "auto",
      "format.codec": "auto"
    },
    "_meta": {
      "title": "Save Video"
    }
  },
  "16:1": {
    "class_type": "FrameInterpolationModelLoader",
    "inputs": {
      "model_name": "film_net_fp16.safetensors"
    },
    "_meta": {
      "title": "Load Frame Interpolation Model"
    }
  },
  "16:2": {
    "class_type": "FrameInterpolate",
    "inputs": {
      "interp_model": [
        "16:1",
        0
      ],
      "images": [
        "16:3",
        0
      ],
      "multiplier": [
        "16:9",
        0
      ]
    },
    "_meta": {
      "title": "Run Frame Interpolation Model"
    }
  },
  "16:3": {
    "class_type": "GetVideoComponents",
    "inputs": {
      "video": [
        "4",
        0
      ]
    },
    "_meta": {
      "title": "Get Video Components"
    }
  },
  "16:5": {
    "class_type": "CreateVideo",
    "inputs": {
      "images": [
        "16:2",
        0
      ],
      "audio": [
        "16:3",
        1
      ],
      "fps": [
        "16:10",
        0
      ]
    },
    "_meta": {
      "title": "Create Video"
    }
  },
  "16:9": {
    "class_type": "PrimitiveInt",
    "inputs": {
      "value": 2
    },
    "_meta": {
      "title": "Int (Multiplier)"
    }
  },
  "16:10": {
    "class_type": "ComfySwitchNode",
    "inputs": {
      "on_false": [
        "16:3",
        2
      ],
      "on_true": [
        "16:11",
        0
      ],
      "switch": [
        "16:13",
        0
      ]
    },
    "_meta": {
      "title": "If/Else Switch"
    }
  },
  "16:11": {
    "class_type": "ComfyMathExpression",
    "inputs": {
      "values.a": [
        "16:3",
        2
      ],
      "values.b": [
        "16:9",
        0
      ],
      "expression": "min(abs(b), 16) * a"
    },
    "_meta": {
      "title": "Math Expression"
    }
  },
  "16:13": {
    "class_type": "PrimitiveBoolean",
    "inputs": {
      "value": true
    },
    "_meta": {
      "title": "Boolean (Apply multiplier to FPS?)"
    }
  }
}