Skip to content

resnet50 IndexError: index 750 is out of range for dimension 0 #21

@ChauncyFr

Description

@ChauncyFr

First, I used resnet50 to train and got the training result dsfd.pth model, but when I used the model to infer in demo.py, I got the following error:

Traceback (most recent call last):
  File "demo1.py", line 134, in <module>
    detect(net, path, args.thresh, f)
  File "demo1.py", line 89, in detect
    while detections[0, i, j, 0] >= thresh:
IndexError: index 750 is out of range for dimension 0 (of size 750)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions