fix(api): silence controlnet registration warnings
This commit is contained in:
parent
2546084208
commit
ccff9a3136
|
@ -44,6 +44,10 @@ warnings.filterwarnings(
|
|||
"ignore",
|
||||
".*Converting a tensor to a Python boolean might cause the trace to be incorrect.*",
|
||||
)
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
".*Overwriting tiny_vit_.*",
|
||||
)
|
||||
|
||||
logger = getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# https://github.com/ForserX/StableDiffusionUI/blob/main/data/repo/diffusion_scripts/controlnet_pipe.py
|
||||
|
||||
import warnings
|
||||
|
||||
warnings.filterwarnings(
|
||||
"ignore",
|
||||
".*Overwriting tiny_vit_.*",
|
||||
)
|
||||
|
||||
# from https://stackoverflow.com/a/65418681
|
||||
if True: # noqa: E402
|
||||
from logging import getLogger
|
||||
from os import path
|
||||
|
||||
|
|
Loading…
Reference in New Issue