Browse Source
add3
Signed-off-by: xujinling <jinling.xu@zilliz.com>
main
xujinling
3 years ago
2 changed files with
0 additions and
5 deletions
-
frozen_in_time.py
-
BIN
frozen_in_time_base_16_224.pth
|
@ -50,8 +50,6 @@ class FrozenInTime(NNOperator): |
|
|
super().__init__() |
|
|
super().__init__() |
|
|
self.model_name = model_name |
|
|
self.model_name = model_name |
|
|
self.modality = modality |
|
|
self.modality = modality |
|
|
# if weight_path is None: |
|
|
|
|
|
# weight_path = str(Path(__file__).parent / 'frozen_in_time_base_16_224.pth') |
|
|
|
|
|
if device is None: |
|
|
if device is None: |
|
|
self.device = "cuda" if torch.cuda.is_available() else "cpu" |
|
|
self.device = "cuda" if torch.cuda.is_available() else "cpu" |
|
|
else: |
|
|
else: |
|
|