[Feature Request]: Version detection of LoRA networks should check SAI ModelSpec keys #13319
Open
1 task done
Labels
enhancement
New feature or request
Is there an existing issue for this?
What would your feature do ?
The version of LoRA networks is detected by
network.detect_version()
(inextensions-builtin/Lora/network.py
). This function only checks for the keysss_base_model_version
andss_v2
. It would be great if this function could also check formodelspec.architecture
key defined in https://github.com/Stability-AI/ModelSpec. Right now LoRAs that follow the SAI standard are not detected with the correct version.Proposed workflow
If the keys
ss_base_model_version
andss_v2
are not found, the function should check themodelspec.architecture
key defined in https://github.com/Stability-AI/ModelSpec.Additional information
No response
The text was updated successfully, but these errors were encountered: