Hi @DrSleep. I am trying to add a new classification layer in addition to segmentation layer already present in the repo. Right now, I am adding an average pooling layer after 'res5c_relu', followed by a classification layer (fc layer). Something like this:
I can train the model fine. But at inference time, .fc layer in kaffe gives me following error:
TypeError: unsupported operand type(s) for *=: 'int' and 'NoneType'
What is the correct way of using the 'fc' layer in such a scenario. During training, I am making sure that I don't restore the classification layer weights (since they won't be there in the init.ckpt file) and initialize them appropriately. I am also making sure that during snapshot creation I am storing all the global_variables.
Hi @DrSleep. I am trying to add a new classification layer in addition to segmentation layer already present in the repo. Right now, I am adding an average pooling layer after 'res5c_relu', followed by a classification layer (fc layer). Something like this:
I can train the model fine. But at inference time, .fc layer in kaffe gives me following error:
What is the correct way of using the 'fc' layer in such a scenario. During training, I am making sure that I don't restore the classification layer weights (since they won't be there in the init.ckpt file) and initialize them appropriately. I am also making sure that during snapshot creation I am storing all the global_variables.