Skip to content

Inference error #10

@peterhsu2018

Description

@peterhsu2018

Hi, i trained my own datasets using Efficient_B4, and
instruction as blow:
python inference.py data/custom/test/ --model efficientnet_b4 --img-size 300 -b 32 -j 4 --num-classes 2 --checkpoint output/model_best_b4.pth.tar
The error was

Traceback (most recent call last):
  File "inference.py", line 122, in <module>
    main()
  File "inference.py", line 114, in main
    filenames = loader.dataset.filenames()
AttributeError: 'PrefetchLoader' object has no attribute 'dataset'

How to fix it? Thanks a lot!

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