logo
Browse Source

Fix device

Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
junjie.jiang 8 months ago
parent
commit
9fc86c820b
  1. 2
      clip.py

2
clip.py

@ -107,7 +107,7 @@ class Clip(NNOperator):
if model_name in config: if model_name in config:
real_name = config[model_name] real_name = config[model_name]
self.model = Model(real_name, modality, checkpoint_path, device)
self.model = Model(real_name, modality, checkpoint_path, self.device)
self.tokenizer = CLIPTokenizer.from_pretrained(real_name) self.tokenizer = CLIPTokenizer.from_pretrained(real_name)
self.processor = CLIPProcessor.from_pretrained(real_name) self.processor = CLIPProcessor.from_pretrained(real_name)

Loading…
Cancel
Save