Closed Shiro-LK closed 6 years ago
the problem comes from the restoring weights code. It tried to restore the last layer which have different dimension compared to my model. So I changed a little the code so as to not load the last layer (regression and classif layer)
@Shiro-LK care to share your experience with this? I'm trying something similar with mammogram images, I basically have tumour rois for my images. How would I adjust the code to train something like this?
Hello,
First of all, thank you for sharing the code. It is very helpful. I am trying to launch a training on a custom dataset where there is only one class : raccoon. I convert the label in pascal voc format so I have two folders : one for the train and one for the validation step. For each folder, there are two folders : Annotations with .xml file inside and JPEGImages folder with .jpg images. I am a little stuck because I do not understand what I have to change in pascal_voc.py excepted the class_variable ? What are the different step if I want to train on my dataset ? I modified pascal_voc.py, factory.py and train_faster_rcnn.sh . The problem is I got an error loading the model and I do not know if it is linked to my modification. I think it is because my output as two class (background and raccoon) and the pretrained model 81 (coco dataset) but I do not find in the pascal_voc.py where the number of class can be fixed. Does anyone know how to solve this problem ?