You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to replicate the results of Compcos using Mit-States dataset & i am getting the following error:
File "train.py", line 228, in
main()
File "train.py", line 108, in main
test(epoch, image_extractor, model, testloader, evaluator_val, writer, args, logpath)
File "train.py", line 193, in test
stats = evaluator.evaluate_predictions(results, all_attr_gt, all_obj_gt, all_pair_gt, all_pred_dict, topk=args.topk)
File "/nfs4/krissna/OWCZL/czsl-main/czsl-main/models/common.py", line 489, in evaluate_predictions
results = self.score_fast_model(scores, obj_truth, bias = bias, topk = topk)
File "/nfs4/krissna/OWCZL/czsl-main/czsl-main/models/common.py", line 363, in score_fast_model
scores[~mask] += bias # Add bias to test pairs
RuntimeError: CUDA out of memory. Tried to allocate 4.18 GiB (GPU 0; 10.92 GiB total capacity; 4.68 GiB already allocated; 2.44 GiB free; 7.85 GiB reserved in total by PyTorch)
(Currently using Cuda10.2 10Gis)
Please suggest some solution for the above error.
Thanks
The text was updated successfully, but these errors were encountered:
Yes, open-world evaluation is pretty costly. I have added a new flag: --cpu_eval that if you specify at the end of the training/test commands, makes the script use CPU memory during evaluation. Note that this makes the evaluation even slower though.
We will try to speed it up in the future, but for now, please let me know if this simple fix works for you.
I am trying to replicate the results of Compcos using Mit-States dataset & i am getting the following error:
File "train.py", line 228, in
main()
File "train.py", line 108, in main
test(epoch, image_extractor, model, testloader, evaluator_val, writer, args, logpath)
File "train.py", line 193, in test
stats = evaluator.evaluate_predictions(results, all_attr_gt, all_obj_gt, all_pair_gt, all_pred_dict, topk=args.topk)
File "/nfs4/krissna/OWCZL/czsl-main/czsl-main/models/common.py", line 489, in evaluate_predictions
results = self.score_fast_model(scores, obj_truth, bias = bias, topk = topk)
File "/nfs4/krissna/OWCZL/czsl-main/czsl-main/models/common.py", line 363, in score_fast_model
scores[~mask] += bias # Add bias to test pairs
RuntimeError: CUDA out of memory. Tried to allocate 4.18 GiB (GPU 0; 10.92 GiB total capacity; 4.68 GiB already allocated; 2.44 GiB free; 7.85 GiB reserved in total by PyTorch)
(Currently using Cuda10.2 10Gis)
Please suggest some solution for the above error.
Thanks
The text was updated successfully, but these errors were encountered: