Hello,
I was following the demo.ipynb notebook. In my case I replaced the backbone with a resnet and instead of MNIST and F-MNIST I am trying to use the stanford Cars (201 classes) and Oxford Birds dataset (196 classes) .
I first train the model on the Cars dataset as following:
ewc_model = ElasticWeightConsolidation(resnet34(car_classes), criterion)
# training loop
ewc_model.register_ewc_params(car_train_dataset, 4, 10)
The I replaced the final linear layer of the ewc_model, with the appropriate number of classes for the Birds dataset:
Hello, I was following the
demo.ipynb
notebook. In my case I replaced the backbone with a resnet and instead of MNIST and F-MNIST I am trying to use the stanford Cars (201 classes) and Oxford Birds dataset (196 classes) .I first train the model on the Cars dataset as following:
The I replaced the final linear layer of the
ewc_model
, with the appropriate number of classes for the Birds dataset:However when I tried to start the training loop for Birds, I am getting the following error:
Any ideas how I might be able to fix this?