LykosAI/StabilityMatrix · error · ValidationException
No Clip Vision Model Selected
Error message
No Clip Vision Model Selected
What it means
The Wan workflow (image-to-video path) also requires a CLIP Vision model for image conditioning. If SelectedClipVisionModel is null, its RelativePath projection is null and the builder throws 'No Clip Vision Model Selected' rather than creating a CLIPVisionLoader with an empty name. This keeps incomplete graphs from being submitted to ComfyUI.
Solutions
- Select a CLIP Vision model (e.g. clip_vision_h.safetensors) in the Wan model card before generating i2v workflows.
- Download/place the CLIP Vision file in the shared clip_vision folder and refresh the model list.
- Re-open the workflow, re-pick the clip vision model, and save so the path persists.
Example fix
// before
ClipName = SelectedClipVisionModel?.RelativePath
?? throw new ValidationException("No Clip Vision Model Selected"),
// after
if (SelectedClipVisionModel is null)
throw new ValidationException("No Clip Vision Model Selected");
// then: ClipName = SelectedClipVisionModel.RelativePath Defensive patterns
Strategy: validation
Validate before calling
if (card.SelectedClipVisionModel is null)
throw new ValidationException("No Clip Vision Model Selected"); Type guard
bool HasClipVision(WanModelCardViewModel c) => c.SelectedClipVisionModel != null && !string.IsNullOrEmpty(c.SelectedClipVisionModel.RelativePath);
Try / catch
try { card.ApplyStep(e); }
catch (ValidationException ex) when (ex.Message == "No Clip Vision Model Selected")
{ /* prompt user to choose a clip vision model */ } Prevention
- Show the clip-vision dropdown only for i2v workflows but enforce it there
- Ship guidance on which clip_vision file pairs with Wan models
- Verify the clip_vision folder is indexed before enabling generate
- Re-validate all saved selections on workflow open
When it happens
Trigger: Generating a Wan image-to-video workflow without selecting a CLIP Vision model in the card's clip-vision dropdown, hitting WanModelCardViewModel.cs:262.
Common situations: User selected the text encoder but missed the separate clip_vision dropdown; the clip_vision file (e.g. clip_vision_h) is missing from the shared clip_vision folder; a saved workflow's clip-vision path no longer resolves after file reorganization.
Understand the failure class
Background: "Must pass :limit option" / "Missing required option" — required option errors explained — this error's family across 41 libraries.
Related errors
- Model not selected
- No Clip Model Selected
- No VAE Selected
- BaseClipVision not set
- Length cannot be null when latentType is Hunyuan
AI-assisted analysis of LykosAI/StabilityMatrix@af93d6ef57 (2026-09-12).
Data as JSON: /api/errors/8f7527ba3781e309.
Report an issue: GitHub.
Appendix: source
Thrown at StabilityMatrix.Avalonia/ViewModels/Inference/WanModelCardViewModel.cs:262
);
e.Builder.Connections.Base.VAE = vaeLoader.Output;
e.Builder.Connections.PrimaryVAE = vaeLoader.Output;
if (ExtraNetworksStackCardViewModel.Cards.OfType<LoraModule>().Any(x => x.IsEnabled))
{
ExtraNetworksStackCardViewModel.ApplyStep(e);
}
if (!IsClipVisionEnabled)
return;
var clipVisionLoader = e.Nodes.AddTypedNode(
new ComfyNodeBuilder.CLIPVisionLoader
{
Name = e.Nodes.GetUniqueName(nameof(ComfyNodeBuilder.CLIPVisionLoader)),
ClipName =
SelectedClipVisionModel?.RelativePath
?? throw new ValidationException("No Clip Vision Model Selected"),
}
);
e.Builder.Connections.BaseClipVision = clipVisionLoader.Output;
e.Builder.Connections.Base.ClipVision = clipVisionLoader.Output;
}
public void LoadStateFromParameters(GenerationParameters parameters)
{
if (parameters.ModelName is not { } paramsModelName)
return;
var currentModels = ClientManager.UnetModels;
HybridModelFile? model;
// First try hash match
if (parameters.ModelHash is not null)View on GitHub (pinned to af93d6ef57)