Skip to content

Testing Images in Folder #15

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

Open
Annieliaquat opened this issue Jun 23, 2022 · 9 comments
Open

Testing Images in Folder #15

Annieliaquat opened this issue Jun 23, 2022 · 9 comments

Comments

@Annieliaquat
Copy link

Annieliaquat commented Jun 23, 2022

I am using Tensorflow object detection Api. I have completed training and have download the trained model through "Python export_v2.py " code.
Now I want to test my model on my test Images folder.
There are many codes that can read and detect single image. But I want to detect my all 50 images that are on my folder.
Kinldy please help me do that.. Thanks in advance

@TannerGilbert
Copy link
Owner

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

@Annieliaquat
Copy link
Author

Annieliaquat commented Jun 24, 2022

You mean I have to run the script like this
!python detect_from_image.py --image_path "images/test"
Like this??? please let me know

@Annieliaquat
Copy link
Author

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Where should I provide my model folder name and image path?

@Annieliaquat
Copy link
Author

Sorry the problem was closed unintentionally

@Annieliaquat
Copy link
Author

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Can you tell me how to use??

@TannerGilbert
Copy link
Owner

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Can you tell me how to use??

python detect_from_image.py --model <path-to-model> --labelmap <path-to-labelmap> --image_path <path to images>

@Annieliaquat
Copy link
Author

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Can you tell me how to use??

python detect_from_image.py --model <path-to-model> --labelmap <path-to-labelmap> --image_path <path to images>

I did use this code and its giving me this error
image

@TannerGilbert
Copy link
Owner

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Can you tell me how to use??

python detect_from_image.py --model <path-to-model> --labelmap <path-to-labelmap> --image_path <path to images>

I did use this code and its giving me this error image

I'll try it out myself once I find the time and will get back to you then.

@Annieliaquat
Copy link
Author

You can use my detect_from_image.py script for this and pass the path to the folder containing the 50 images via --image_path. The script will then loop over all the png and jpg files inside the directory.

Can you tell me how to use??

python detect_from_image.py --model <path-to-model> --labelmap <path-to-labelmap> --image_path <path to images>

I did use this code and its giving me this error image

I'll try it out myself once I find the time and will get back to you then.

okay thank you so much

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

No branches or pull requests

2 participants