-
Notifications
You must be signed in to change notification settings - Fork 2.5k
How to test each saved weight? #819
Comments
Yes the code only evaluate the final check out point, the codes is in /engine/inference.py |
Actually, I checked what is the context inside the last checkpoint file and I found that it was just the path of the saved model weights, which means we only need to modified the last checkpoint file context by using the path of the model weights you want to test. |
I haven't tested it, but you can probably just modify the |
In |
Now you can test with any checkpoint you saved. |
Thanks! It is very useful! |
❓ Questions and Help
After I saved several weights from training, I would like to evaluate each saved weights just in case overfitting.
When I tried to run python -m torch.distributed.launch --nproc_per_node=$NGPUS /path_to_maskrcnn_benchmark/tools/test_net.py --config-file "configs/e2e_mask_rcnn_R_50_FPN_1x.yaml" TEST.IMS_PER_BATCH 16
it only evaluated the last saved weights.
So, is it possible to evaluate each saved weights ?
By the way, it costed around 20 mins to evaluate 8000 images on GPU V100,
is it normal or not?
The text was updated successfully, but these errors were encountered: