We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9756650 commit 19fef3dCopy full SHA for 19fef3d
references/video_classification/train.py
@@ -164,7 +164,7 @@ def main(args):
164
165
if args.cache_dataset and os.path.exists(cache_path):
166
print(f"Loading dataset_train from {cache_path}")
167
- dataset, _ = torch.load(cache_path, weights_only=True)
+ dataset, _ = torch.load(cache_path, weights_only=False)
168
dataset.transform = transform_train
169
else:
170
if args.distributed:
@@ -201,7 +201,7 @@ def main(args):
201
202
203
print(f"Loading dataset_test from {cache_path}")
204
- dataset_test, _ = torch.load(cache_path, weights_only=True)
+ dataset_test, _ = torch.load(cache_path, weights_only=False)
205
dataset_test.transform = transform_test
206
207
0 commit comments