I'm trying to calculate training accuracy on resnet152, however
loss_dict = model(images, targets)
only contains loss values.
Usually the model accepts only the images and the outputs are then passed to a loss function as well as used to calculate the accuracy. Calling it without the targets parameter results in:
ValueError: In training mode, targets should be passed
Sorry if this is the wrong place, I'm still quite a beginner.