Closed chjinche closed 4 years ago
Evaluating accuracy on the test set requires GPU, training does not. Evaluation can be switched of using detector.fit(epochs=1, skip_evaluation=skip_evaluation)
. See also this notebook:
https://github.com/microsoft/computervision-recipes/blob/master/scenarios/detection/01_training_introduction.ipynb
@PatrickBue Thanks for quick reply! However, skip_evaluation
will make it impossible to find best model and early stop training, which are based on model perf on validation dataset. Any suggestion about this problem?
Unfortunately the library pycocotools (which this repo and torchvision use) requires GPU. One way around that could be to find a library which works on CPU-only and then manually call that library to compute mAP numbers.
I see. Thanks again for your help @PatrickBue
Ok.
Ok.
Description
DetectionLearner
fit
failed on CPU, which is incompatible with the doc description "a GPU is techically not required". See highlighted part in attached pic.In which platform does it happen?
Linux. CPU
How do we replicate the issue?
Run following codes on CPU, no cuda.
Got such error:
Expected behavior (i.e. solution)
DetectionLearner
fit
on CPU should run successfully.Other Comments