Ph_m_H_i:

me why accuracy of my model decreases when I save and load it to predict. My accuracy after training is about 88%
I use resnet model of pytorch
model_ft = models.resnet34(pretrained=True)
num_ftrs = model_ft.fc.in_features

# replace the last fc layer with an untrained one (requires grad by default)
model_ft.fc = nn.Linear(num_ftrs, 216)
model_ft = model_ft.to(device)

# uncomment this block for half precision model
# """
model_ft = model_ft.half()


for layer in model_ft.modules



My guess is here model accuracy was depend on the batches that go through the testing phase so instead of performing once test for 5 time and average it then save the model and then redo it