Skip to content

coco training and evaluation on custom ds #79

Answered by avber
avber asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you!

I've found the culprit. When converting from coco I put category_id into indices_2_labels={1: "foo"}. category_ids start from 1. Setting indices_2_labels={0: "foo"} fixed the training and validation issues. Checking for such situation (when index doesn't start from 0) might help others.

3 small issues with the training script.

There might be an option to speed up validation slightly. I got multiple messages from pycocotools like

creating index...
index created!

COCO AP eval start_epoch: 21, frequency: 1
It's actually 21 + 1

When using on premises jupyter notebook, epoch losses output is messed up. It's not happening in your colab notebook.
tensorflow 2.10.0
jupyter 1.0.0

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@leondgarse
Comment options

Answer selected by avber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants