Skip to content

Bug in get_resnet_preds: resnet101 is called repeatedly and resnet50 is unused #13

Description

@LILY-ZIHAN-LI

Hi,

Thank you for your great work. I found a potential problem and a performance issue in the get_resnet_preds function inside applications/imagenetV2/generate_csv.py.

Inside the with torch.no_grad(): block, resnet101(images) is called for both ResNet-50 and ResNet-101 predictions. The loaded resnet50 model is never actually used for inference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions