Closed Kongsea closed 6 years ago
Hmm, did you create new tf records first? Maybe it’s still pointing at the old one?
I have deleted all the old tf records and created the new ones for my dataset. Finally, I found it's because I missed to change the class number in some place. Now it's OK after I change it. Thank you.
Awesome :)
@Kongsea Hi, Kongsea, I got the exact same problem like yours. WOuld you mind to let me know where else we need to change the class# beside .config file? Thank you
Search the original class number 2 and corresponding bbox coordinates number 8 [ 2*4 ] and replace the two numbers with numbers corresponding to your dataset.
Hi, thank you for the quick response. What are the specific variable names? I didn't find original_class_number or bbox_coordinates_number. Thank you.
I mean to search the number 2 and 8, and replace them respectively. I am sorry I cannot remeber the specific parameters, so you need to search them yourself. Be careful to replace the numbers related to the class number and the bbox coordinates number only.
TF creates a "checkpoint" file. There might be one provided with the frozen inference graph, try deleting that and it should fix the problem.
@gingerhead22 @Kongsea were you able to find the specific parameters that you had to update? If so, can you list them?
I only created the tfrecord files using my own dataset and changed
num_classes
in faster_rcnn_resnet101.config accordingly.Then when I run the code, it raised the following error:
It seems the model was restored failed. Besides, my own dataset has 146 classes, so it seems 584 = 146 4 is not equal the original 2 classes 4 = 8.