Haidra-Org / hordelib

A wrapper around ComfyUI to allow use by the AI Horde.
https://hordelib.org
GNU Affero General Public License v3.0
56 stars 17 forks source link

fix: don't abandon job on bad lora file #330

Closed tazlin closed 2 months ago

tazlin commented 2 months ago

Prior to this change, if a LoRa was bad (malformed) on disk it would case the entire job to crash. However, this is not intended; the job should limp forward as would be the case with other forms of LoRa related errors (such as a download failure or baseline mismatches). This change catches any comfyui internal loading related errors and falls back to the model passed to the node (without any changes made within the current call of the lora load).