Closed MysteryHS closed 1 year ago
Hello, your dataset is quite small (only 179 training images), so CosPlace is not the most suitable method for training on your dataset.
Anyway, if you really want to use CosPlace, I think your error happens because the number of classes is smaller than the batch size. Can you try running again the experiment with --batch_size=28
(as 28 is the number of classes within your dataset)?
Also, I would advise you to reduce the number of iterations per epoch, you can try some very low value like 10 --iterations_per_epoch=10
to see what happens
Why should the value of batch size be set to be the same as the number of classes? Why need to reduce the number of iterations per epoch?
The dataset has been implemented to have length equal to the number of classes, although when using SF-XL you could just set the length to any large number and it wouldn't matter. However when the number of classes is small (smaller than the batch size), the dataloader is unable to prepare even one batch. The iterations per epoch should be reduced because training for 10k iterations on 179 images would clearly lead to overfitting
Think you for your help
Hello, We are trying to use your project with our own dataset, but we get an error when launching the training phase. You can see a sample of our data below:
And the error message is the following:
We have tried to use the small dataset and the training is starting fine. Do you know where the error could be coming from?