mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 14:20:39 -07:00
ci(M01): explicitly import ldm.modules.distributions in __init__
Made-with: Cursor
This commit is contained in:
parent
e988b21755
commit
e02394673c
1 changed files with 4 additions and 1 deletions
|
|
@ -29,7 +29,10 @@ def main() -> None:
|
|||
# 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", "__init__.py"),
|
||||
"from . import distributions\n",
|
||||
)
|
||||
touch(os.path.join(REPOS, sd, "ldm", "modules", "encoders", "__init__.py"))
|
||||
# ldm.modules.encoders.modules: FrozenCLIPEmbedder, FrozenOpenCLIPEmbedder, CLIPTextModel
|
||||
ldm_modules = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue