Closed turian closed 10 months ago
For which combination of parameters passed to the _getmodel function does this happen?
Currently, if a pre-trained model is loaded via its name, e.g. _pretrained_name="mn10_asfc" then the correct parameters have to be specified manually (e.g. _head_type="fullyconvolutional"). I will attach the correct config to the model names soon (after an upcoming deadline). This could be related to your problem.
I'm not sure why this was needed, but I had to add this hack to get num_classes=1 to work:
I won't push a fix because I don't understand the impact of this on other users. Perhaps it should only be used when num_classes is 1?