Update interrogate.py

This commit is contained in:
lllyasviel
2024-01-25 12:56:17 -08:00
parent 63811455ef
commit 497645b2f8

View File

@@ -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()