update
Browse files- dataset_lib/models.py +1 -0
dataset_lib/models.py
CHANGED
@@ -26,6 +26,7 @@ def open_clip_get_transform_and_encoding_fn(model_name, device):
|
|
26 |
model, _, preprocess = open_clip.create_model_and_transforms(
|
27 |
SUPPORTED_MODELS[model_name], device=device
|
28 |
)
|
|
|
29 |
|
30 |
@torch.no_grad()
|
31 |
@torch.cuda.amp.autocast()
|
|
|
26 |
model, _, preprocess = open_clip.create_model_and_transforms(
|
27 |
SUPPORTED_MODELS[model_name], device=device
|
28 |
)
|
29 |
+
model.eval()
|
30 |
|
31 |
@torch.no_grad()
|
32 |
@torch.cuda.amp.autocast()
|