mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-28 02:01:25 +00:00
Update interrogate.py
This commit is contained in:
@@ -117,6 +117,9 @@ class InterrogateModels:
|
|||||||
|
|
||||||
def load_clip_model(self):
|
def load_clip_model(self):
|
||||||
import clip
|
import clip
|
||||||
|
import clip.model
|
||||||
|
|
||||||
|
clip.model.LayerNorm = torch.nn.LayerNorm
|
||||||
|
|
||||||
model, preprocess = clip.load(clip_model_name, device="cpu", download_root=shared.cmd_opts.clip_models_path)
|
model, preprocess = clip.load(clip_model_name, device="cpu", download_root=shared.cmd_opts.clip_models_path)
|
||||||
model.eval()
|
model.eval()
|
||||||
|
|||||||
Reference in New Issue
Block a user