Skip to content

Calculate Training Accuracy on resnet152 #2578

@FrostByteGER

Description

@FrostByteGER

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions