tf-faster-rcnn icon indicating copy to clipboard operation
tf-faster-rcnn copied to clipboard

Restoring from checkpoint failed

Open CQSamBoom opened this issue 5 years ago • 4 comments

I have trained a new Faster RCNN using my own training set. It' ok during training and testing. but I using my trained mode to run demo.py for my picture, there are:

Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [2048,84] rhs shape= [2048,24]

who can help me ,please.

CQSamBoom avatar Oct 30 '19 09:10 CQSamBoom

check on the number of anchors you have used during train and test. Both should match.

rnsandeep avatar Oct 30 '19 09:10 rnsandeep

check on the number of anchors you have used during train and test. Both should match.

I find the code about anchors and find out the question , I forget correct n-class , think you all the same

CQSamBoom avatar Oct 30 '19 12:10 CQSamBoom

Yes by default pascal-voc has 21 classes. so 21x4. you could have changed it to 6 so 6x4.

rnsandeep avatar Oct 30 '19 12:10 rnsandeep

check on the number of anchors you have used during train and test. Both should match.

I find the code about anchors and find out the question , I forget correct n-class , think you all the same

I have the same question. Could you tell me where you find the code about anchors? I can't find it.

DK223 avatar Apr 04 '20 12:04 DK223