New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mAP scores are all zeros, but model is improving as the loss is small/decreasing #11060
Comments
update. when I use this code after I save the latest checkpoint and I reload it to visualize prediction boxes I'm getting the images with nothing on it. `input_image_size = (640, 640) for i, serialized_example in enumerate(test_ds): plt.show() This is what result looks like, and the detection_boxes are all zeros.. What am I missing? |
Hi @ironllamagirl , Sorry for the delay in response. There must be some mistake in the configuration, can you tell us what are the |
I am suffering from similar issues....News @ironllamagirl ? |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
Hi @laxmareddyp, I am facing similar issue when exporting a model from TF Vision model (Resnet50-FPN Retinanet for object detection), the output is exactly as the What I did was that I download checkpoint from here, and exp_config was loaded by
Then, when I have the saved_model, I loaded it up, exactly as @ironllamagirl did. Since the config and checkpoint are straight from source, where should I look at next? |
Hi @nguyenthekhoig7 , Apologies for the inconvenience. Could you please submit a new ticket with additional details such as notebooks or reproducible code, along with the checkpoint path you used? I attempted to access the path mentioned for the checkpoint, but it seems to redirect to the issue pages.Thanks |
Hi @laxmareddyp sorry for my mistake, I added the incorrect link, here is the link to the check point: https://github.com/tensorflow/models/blob/master/official/vision/MODEL_GARDEN.md#retinanet-imagenet-pretrained I used the model with 72 epochs pretrained (the bottom one in the table) In case this is still not reproducible, I will open a new ticker tomorrow morning because its' night here. |
Hi, this morning I am able to solve the problem, the solution is adding only 2 lines of code:
which adds For those who also meet this problem in the future, here is a working code in Colab: https://colab.research.google.com/drive/1nJiTI9aikiSmcrEFkpDQf8NNs8IFXvO9?usp=sharing Again, thank you @laxmareddyp for your timely support yesterday |
I am finetuning a retinanet using tensorflow orbit, inspired by this tutorial
to perform object detection on a custom dataset.
Training seems to be going well. Loss value is decreasing however all mAP scores have the value 0
Anyone know why I'm getting all zeros when the loss is not too bad and improving?
The text was updated successfully, but these errors were encountered: