Skip to content

Refactor code and improve error handling across multiple scripts#17427

Open
PACKATTACK93 wants to merge 7 commits into
AUTOMATIC1111:masterfrom
PACKATTACK93:agents/model-execution-and-usage-guide
Open

Refactor code and improve error handling across multiple scripts#17427
PACKATTACK93 wants to merge 7 commits into
AUTOMATIC1111:masterfrom
PACKATTACK93:agents/model-execution-and-usage-guide

Conversation

@PACKATTACK93

@PACKATTACK93 PACKATTACK93 commented Jun 16, 2026

Copy link
Copy Markdown
  • 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.

Description

  • a simple description of what you're trying to accomplish
  • a summary of changes in code
  • which issues it fixes, if any

Screenshots/videos:

Checklist:

- 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`.
PACKATTACK93 and others added 4 commits June 16, 2026 13:25
…) 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>
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.

1 participant