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

Image prediction #12791

Open
1 task done
smallMantou opened this issue May 18, 2024 · 5 comments
Open
1 task done

Image prediction #12791

smallMantou opened this issue May 18, 2024 · 5 comments
Labels
question Further information is requested

Comments

@smallMantou
Copy link

Search before asking

Question

Hello, I would like to ask how to use the weight file trained from my own dataset to predict multiple images in a folder.

Additional

No response

@smallMantou smallMantou added the question Further information is requested label May 18, 2024
@Kayzwer
Copy link
Contributor

Kayzwer commented May 19, 2024

@smallMantou model.predict("path/to/imgs")

@smallMantou
Copy link
Author

Do I need to list each image for detecting multiple images?

@Kayzwer
Copy link
Contributor

Kayzwer commented May 20, 2024

Do I need to list each image for detecting multiple images?

no just give the path to the img directory

@smallMantou
Copy link
Author

Thank you for your answer.How do I know which model I am using when training my dataset, because I want to start training from scratch, but the yolo. yaml file contains n \ s \ m \ l.Grayscale_yolov5s.yaml is yolov8.yaml that I copied.
train

@glenn-jocher
Copy link
Member

Hello! To determine which model configuration you are using when training from scratch, you should look at the YAML file you are specifying in your training command. Each model variant (n, s, m, l) has its own YAML file that defines the model's architecture and settings. If you've copied and renamed a YAML file, make sure to check its contents to see which model it's configured for.

For example, if you're using Grayscale_yolov5s.yaml and you've renamed it from a YOLOv8 model configuration, you should open that YAML file and review the parameters to confirm which model size it corresponds to (n, s, m, l). The model size is typically indicated by the depth and width parameters in the YAML file.

Here's a quick way to start training from scratch using a specific model configuration:

yolo train data=your_dataset.yaml model=your_model.yaml

Replace your_dataset.yaml with your dataset configuration file and your_model.yaml with the model configuration file you intend to use. This will ensure you are training with the correct model setup. Happy training! 🚀

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

3 participants