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

feat: optimize performance lora filtering in metadata #3048

Conversation

mashb1t
Copy link
Collaborator

@mashb1t mashb1t commented May 29, 2024

Closes #3010
Adds various optimizations for metadata and LoRA handling for performance LoRAs (goal: not apply them twice when loading metadata again)

@mashb1t mashb1t added this to the v2.4.2 milestone May 30, 2024
@mashb1t mashb1t changed the base branch from main to develop May 30, 2024 14:13
@mashb1t mashb1t merged commit 4e658bb into lllyasviel:develop May 30, 2024
csokun pushed a commit to csokun/Fooocus that referenced this pull request Jun 16, 2024
* feat: add remove_performance_lora method

* feat: use class PerformanceLoRA instead of strings in config

* refactor: cleanup flags, use __member__ to check if enums contains key

* feat: only filter lora of selected performance instead of all performance LoRAs

* fix: disable intermediate results for all restricted performances

too fast for Gradio, which becomes a bottleneck

* refactor: rename parse_json to to_json, rename parse_string to to_string

* feat: use speed steps as default instead of hardcoded 30

* feat: add method to_steps to Performance

* refactor: remove method ordinal_suffix, not needed anymore

* feat: only filter lora of selected performance instead of all performance LoRAs

both metadata and history log

* feat: do not filter LoRAs in metadata parser but rather in metadata load action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: LoRA inconsistency when applying from metadata and history log
1 participant