models icon indicating copy to clipboard operation
models copied to clipboard

mAP does not show up on tensorboard for Object detection API

Open Shameendra opened this issue 7 years ago • 11 comments

Hi i am using the Google Object Detection API to train on my own data. However, when i run the eval.py(from legacy folder) in order to see evaluation results and then run tensorboard, just images and graphs show up but no scalars like mAP. the command i am using is

python eval.py --logtostderr --checkpoint_dir=training/ --eval_dir=evaluation/ --pipeline_config_path=training/faster_rcnn_inception_v2_pedestrians.config

Can anyone please tell me how do i resolve this? Do i need to add some extra lines in eval.py or is there some other things that i should do?

Shameendra avatar Dec 08 '18 14:12 Shameendra

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. What is the top-level directory of the model you are using Have I written custom code OS Platform and Distribution TensorFlow installed from TensorFlow version Bazel version CUDA/cuDNN version GPU model and memory Exact command to reproduce

tensorflowbutler avatar Dec 09 '18 12:12 tensorflowbutler

Hello,I have the same question. Did you find the solution to deal with that? I can only find the loss in my tensorboard while in my final project I need to give the mAP.

Ekinkit avatar Mar 21 '19 01:03 Ekinkit

Hi yes the solution was to simply wait. Eval.py can take several minutes depending on your computer. For me it took about 30 min before the mAP showed up on TensorBoard. Remember i used eval.py from legacy and not model_main,py

Shameendra avatar Mar 22 '19 12:03 Shameendra

Hi yes the solution was to simply wait. Eval.py can take several minutes depending on your computer. For me it took about 30 min before the mAP showed up on TensorBoard. Remember i used eval.py from legacy and not model_main,py

hello~I have used eval.py to evaluate my model. But what appear in the tensorboard are only the images predicted. I don't see the mAP. Do I need to add some code to show the mAP?

Ekinkit avatar Mar 23 '19 03:03 Ekinkit

Hi yes the solution was to simply wait. Eval.py can take several minutes depending on your computer. For me it took about 30 min before the mAP showed up on TensorBoard. Remember i used eval.py from legacy and not model_main,py

hello~I have used eval.py to evaluate my model. But what appear in the tensorboard are only the images predicted. I don't see the mAP. Do I need to add some code to show the mAP?

Did you find a solution? Thank you*

snoopypi avatar Jan 05 '20 09:01 snoopypi

Hi, i know this is very latre but for me what worked was waiting for checkpoints to be saved. i did not add any code to see tensorboard on eval.py

Shameendra avatar Jan 07 '20 10:01 Shameendra

Hi ok thank you and what train file did you use? mAP showed suddenly up in tensorboard?

snoopypi avatar Jan 07 '20 10:01 snoopypi

I used the train.py in legacy folder. And yes mAP showed up after checkpoints were created

Shameendra avatar Jan 07 '20 10:01 Shameendra

I used the train.py in legacy folder. And yes mAP showed up after checkpoints were created

Ok thank you I will try it again!!

snoopypi avatar Jan 07 '20 12:01 snoopypi

I used the train.py in legacy folder. And yes mAP showed up after checkpoints were created

Hey sorry just one more question. For the eval.py. Did you use path to your .config file from training? What is written there in the eval_configs?

Thank you!

snoopypi avatar Jan 07 '20 13:01 snoopypi

@snoopypi Yes, the config file should be the same. I don't think the eval_config_path flag is necessary. The command might look like this:

!python "path/to/your/eval.py" --logtostderr  --pipeline_config_path="training/faster_rcnn_inception_v2_coco.config" --checkpoint_dir="training/log" --eval_dir="training/log/eval_py"

However, you might want to look into model_main.py which performs evaluations between training steps.

kaisubr avatar Jan 18 '20 21:01 kaisubr