Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classification training model error #12977

Closed
1 task done
monkeycc opened this issue Apr 30, 2024 · 2 comments
Closed
1 task done

Classification training model error #12977

monkeycc opened this issue Apr 30, 2024 · 2 comments
Labels
question Further information is requested

Comments

@monkeycc
Copy link

monkeycc commented Apr 30, 2024

Search before asking

Question

python python train.py --data hellodata --epochs 300 --weights yolov5s-cls.pt --cfg yolov5s.yaml --batch-size 512


Traceback (most recent call last):
  File "train.py", line 848, in <module>
    main(opt)
  File "train.py", line 591, in main
    check_file(opt.data),
  File "/home/mm/Yolov5/utils/general.py", line 503, in check_file
    assert len(files) == 1, f"Multiple files match '{file}', specify exact path: {files}"  # assert unique
AssertionError: Multiple files match '/media/hellodata', specify exact path: ['/media/hellodata', '/media/hello', '/media/hellodata']
hellodata
# -images
#   --train
#       |--dog
#       |----1.jpg
#       |----2.jpg
#       |--cat
#       |----1.jpg
#       |----2.jpg
#   --val
#       |--dog
#       |----1.jpg
#       |----2.jpg
#       |--cat
#       |----1.jpg
#       |----2.jpg
#   --test
#       |--dog
#       |----1.jpg
#       |----2.jpg
#       |--cat
#       |----1.jpg
#       |----2.jpg


### Additional

_No response_
@monkeycc monkeycc added the question Further information is requested label Apr 30, 2024
@monkeycc
Copy link
Author

cd classify

@glenn-jocher
Copy link
Member

Hello! It looks like you're interested in switching to the classification part of our project with cd classify. If you're encountering any issues or have specific queries regarding classification training or operations within the classify directory, could you please provide more details? This will help me assist you more effectively. Thanks for engaging with the Ultralytics community! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants