Forge webui support (#517)

* Forge support

* Separate Forge implementation

* Remove debug print
This commit is contained in:
catboxanon
2024-02-27 07:19:36 -05:00
committed by GitHub
parent ac0bb9ab00
commit 1441b55d6f
6 changed files with 171 additions and 37 deletions

View File

@@ -1,7 +1,21 @@
from .controlnet_ext import ControlNetExt, controlnet_exists, get_cn_models
try:
from .controlnet_ext_forge import (
ControlNetExt,
controlnet_exists,
controlnet_forge,
get_cn_models,
)
except ImportError:
from .controlnet_ext import (
ControlNetExt,
controlnet_exists,
controlnet_forge,
get_cn_models,
)
__all__ = [
"ControlNetExt",
"controlnet_exists",
"controlnet_forge",
"get_cn_models",
]