mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-06-13 21:01:06 +08:00
remove unused
This commit is contained in:
parent
b4ca5d7420
commit
fd283ce2de
@ -132,13 +132,13 @@ class CheckpointInfo:
|
||||
return self.shorthash
|
||||
|
||||
|
||||
try:
|
||||
# this silences the annoying "Some weights of the model checkpoint were not used when initializing..." message at start.
|
||||
from transformers import logging, CLIPModel # noqa: F401
|
||||
|
||||
logging.set_verbosity_error()
|
||||
except Exception:
|
||||
pass
|
||||
# try:
|
||||
# # this silences the annoying "Some weights of the model checkpoint were not used when initializing..." message at start.
|
||||
# from transformers import logging, CLIPModel # noqa: F401
|
||||
#
|
||||
# logging.set_verbosity_error()
|
||||
# except Exception:
|
||||
# pass
|
||||
|
||||
|
||||
def setup_model():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user