Imagnet pretrained model: training accuracy to zero #13334
-
Using the exact code from the imagenet template, I add the following to the end of the script: if __name__ == "__main__":
import pytorch_lightning
model = ImageNetLightningModel(
data_path="path/to/imagenet/data",
pretrained=True,
workers=8
)
trainer = pytorch_lightning.Trainer(
gpus=4
)
trainer.test(model)
trainer.fit(model) If I run Are the weights getting reinitialized when training is started? If so, how do I prevent that from happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
they are not, can you check the loss and training logic inside the training step. Or maybe there is an issue on how you are calculating the accuracy. |
Beta Was this translation helpful? Give feedback.
they are not, can you check the loss and training logic inside the training step. Or maybe there is an issue on how you are calculating the accuracy.