TannerGilbert / Tensorflow-Object-Detection-with-Tensorflow-2.0

Use the Tensorflow Object Detection API with Tensorflow 2
https://gilberttanner.com/blog/object-detection-with-tensorflow-2
MIT License
131 stars 78 forks source link

Testing Images in Folder #15

Open Annieliaquat opened 2 years ago

Annieliaquat commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Sorry the problem was closed unintentionally

Annieliaquat commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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