Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add fallback value for default_max_lora_number when default_loras is empty #2430

Conversation

mashb1t
Copy link
Collaborator

@mashb1t mashb1t commented Mar 3, 2024

Closes #2427

When default_loras is empty default_max_lora_number also has been set to 0, leading to not being able to see any loras.

With an additional check if default_loras is empty the default value for default_max_lora_number now has a fallback to 5.

@mashb1t mashb1t added the Size S small change, basically no testing needed label Mar 3, 2024
@mashb1t mashb1t added this to the 2.2.1 milestone Mar 3, 2024
@mashb1t mashb1t requested a review from lllyasviel as a code owner March 3, 2024 17:29
@mashb1t mashb1t changed the base branch from main to develop March 3, 2024 17:45
@mashb1t mashb1t merged commit fb94394 into lllyasviel:develop Mar 3, 2024
@mashb1t mashb1t deleted the fix/default-value-fallback-for-max-lora-number branch March 4, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size S small change, basically no testing needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Setting "default_loras": [] in config.txt disables loras functionality in UI
1 participant