Open zhuxuanya opened 2 months ago
so do you know how to fix this bug? I am stuck in exactly the same situation
so do you know how to fix this bug? I am stuck in exactly the same situation
I think this can be ignored. No need to make effort to modify model.
i had the same problem and noticed that some segmentation maps had pixel values different than 0-7 which are the classes indexes. So i changed everyone of them to 0 (I know that it's not technically correct) and it worked fine
When I run
runner.train()
indemo/MMSegmentation_Tutorial.ipynb
, this will happen:It seems that the number of classes of the model doesn't match the loading checkpoint. I notice that the config has been modified in the code block by using:
This modification doesn't make the checkpoint's state dict match the config exactly. Then I use following code to check the name and parm in the checkpoint:
What can be seen:
I don't know whether my understanding is correct or not. If it does, then it may add some difficulties to the people who use this
MMSegmentation_Tutorial.ipynb
, even if it doesn't affect the training framework.