The value of lora_name and ckpt_name is a dict containing the location of both the model and preview image, e.g:
{"content": "path/to/model", "image": "path/to/image"}
so the default validation is checking that not only the model exists, but the image exists as well. A change in the path of the image (e.g. going from jpg->png or having it deleted) should not affect the validation, but currently does.
Tested this fix by:
Selecting a model in the loader
Renaming the image file
Confirming running the prompt no longer raises a validation error
Fixes #259.
The value of
lora_name
andckpt_name
is a dict containing the location of both the model and preview image, e.g:{"content": "path/to/model", "image": "path/to/image"}
so the default validation is checking that not only the model exists, but the image exists as well. A change in the path of the image (e.g. going fromjpg
->png
or having it deleted) should not affect the validation, but currently does.Tested this fix by: