mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-23 06:40:23 -07:00
M01: add ldm.util stub (default) for sd_hijack_optimizations
Made-with: Cursor
This commit is contained in:
parent
b80ec79540
commit
623a66538f
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ def main() -> None:
|
|||
"class LatentDepth2ImageDiffusion(LatentDiffusion):\n pass\n"
|
||||
)
|
||||
touch(os.path.join(REPOS, sd, "ldm", "models", "diffusion", "ddpm.py"), ddpm_content)
|
||||
# ldm.util: default, instantiate_from_config, ismap, etc. (sd_hijack_optimizations, etc.)
|
||||
touch(os.path.join(REPOS, sd, "ldm", "util.py"), "def default(a, b): return b if a is None else a\n")
|
||||
touch(os.path.join(REPOS, sd, "ldm", "__init__.py"))
|
||||
touch(os.path.join(REPOS, sd, "ldm", "modules", "__init__.py"))
|
||||
touch(os.path.join(REPOS, sd, "ldm", "modules", "encoders", "__init__.py"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue