Refactor code and improve error handling across multiple scripts#17427
Open
PACKATTACK93 wants to merge 7 commits into
Open
Refactor code and improve error handling across multiple scripts#17427PACKATTACK93 wants to merge 7 commits into
PACKATTACK93 wants to merge 7 commits into
Conversation
- Updated type hints in `codeformer_model.py` for clarity. - Enhanced face restoration method in `codeformer_model.py`. - Simplified expression creation in `custom_code.py`. - Added optional import handling for `k_diffusion` in `img2imgalt.py`. - Improved seed handling in `loopback.py` and `poor_mans_outpainting.py`. - Fixed potential issues with prompt matrix generation in `prompt_matrix.py`. - Ensured prompt inputs are converted to strings in `prompts_from_file.py`. - Added threading lock for API in `webui.py`.
…, whitespace, and outpainting closure
…ion-and-usage-guide
…) and add ldm.util module - Removed unused gradio.events.Dependency import from modules/ui_components.pyi - Created ldm/util.py with default() helper function needed by sd_hijack_optimizations.py Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
codeformer_model.pyfor clarity.codeformer_model.py.custom_code.py.k_diffusioninimg2imgalt.py.loopback.pyandpoor_mans_outpainting.py.prompt_matrix.py.prompts_from_file.py.webui.py.Description
Screenshots/videos:
Checklist: