Workflow Model Dependencies¶
ComfyGit tracks model dependencies at the workflow level. This is how a workflow can say, "I need this model file to run correctly."
Some dependencies are discovered automatically from loader nodes. Others must be declared by the user because a custom node loads a file in a way ComfyGit cannot infer safely.
Automatic Dependencies¶
ComfyGit can detect many built-in loader nodes and folder-backed model widgets. For example, checkpoint, LoRA, VAE, ControlNet, upscale, and newer ComfyUI model folders can be detected when ComfyGit has metadata from the active ComfyUI checkout.
Automatic resolution is conservative. If ComfyGit cannot classify a custom node or dynamic loader safely, it should ask for help or leave the model undiscovered rather than inventing a dependency.
Manual Dependencies¶
Use manual dependencies when:
- A custom node loads a model without a standard loader widget.
- A node expects a model in a newer or custom model folder.
- The workflow works locally, but ComfyGit does not show the model as required.
- A model must exist at a specific relative path for a custom loader.
List the models declared for a workflow:
Attach by relative path:
Attach by hash:
Remove a manually declared model:
Add a manual dependency only after the model exists locally and appears in the model index.
Manual dependencies do not create fake workflow node references. They are manifest-declared workflow requirements.
Importance Levels¶
Model importance tells ComfyGit how serious a missing model is.
| Importance | Meaning |
|---|---|
required |
The workflow is not reproducible without this model. |
flexible |
A similar model may work, but the dependency should stay visible. |
optional |
The model can be absent, but users should know behavior may differ. |
Change importance:
Required models without source proof can block handoff and readiness checks. Optional models should not block every flow, but they should still be visible.
Path Matters¶
For manual dependencies, a matching hash somewhere else is not always enough. Custom loaders often expect a file at a specific relative path under the models directory.
For example, a frame interpolation loader may look under:
If the same file exists under checkpoints/, the content hash may match, but the
workflow may still fail because the loader will not search there.
Add A Source Before Handoff¶
The local model index can remember source hints, but reproducibility depends on the manifest having usable source information for required models.
cg model add-source film_net_fp16.safetensors \
https://huggingface.co/org/repo/resolve/main/film_net_fp16.safetensors
Before pushing or exporting, check status and address required model source warnings.