logo
Browse Source

Update

Signed-off-by: shiyu22 <shiyu.chen@zilliz.com>
main
shiyu22 3 years ago
parent
commit
43e89b67b6
  1. 1
      vit_image_embedding.py

1
vit_image_embedding.py

@ -39,6 +39,7 @@ class VitImageEmbedding(Operator):
super().__init__() super().__init__()
sys.path.append(str(Path(__file__).parent)) sys.path.append(str(Path(__file__).parent))
if framework == 'pytorch': if framework == 'pytorch':
import pytorch
from pytorch.model import Model from pytorch.model import Model
self.model = Model(model_name, weights_path) self.model = Model(model_name, weights_path)
config = pytorch.resolve_data_config({}, model=self.model._model) config = pytorch.resolve_data_config({}, model=self.model._model)

Loading…
Cancel
Save