Closed weiliu620 closed 8 years ago
Sry, a one-of error in cases where num_classes
does not divide 1000 evenly. Commit 83608ed fixes the issue. Also added some Description. _summary_reshape
is used to reduce the 1000 output classes of VGG to num_classes
many for segmentation.
If you do fine-tuning also consider to set random_init_fc8=True
. This will avoid the reshape. Hope this helps.
Can you briefly explain why you need this function and how it works? I got an error from this function when I tried to train the model with a function that I wrote myself. I used PASCAL VOC so I define num_class = 21, including background. Here is the error stack
And the error message is:
IndexError: index 21 is out of bounds for axis 3 with size 21
Thanks for help!