mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-26 19:09:45 +00:00
Update interrogate.py
This commit is contained in:
@@ -117,6 +117,9 @@ class InterrogateModels:
|
||||
|
||||
def load_clip_model(self):
|
||||
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.eval()
|
||||
|
||||
Reference in New Issue
Block a user