Tensorflow-Object-Detection-with-Tensorflow-2.0 icon indicating copy to clipboard operation
Tensorflow-Object-Detection-with-Tensorflow-2.0 copied to clipboard

Testing Images in Folder

Open Annieliaquat opened this issue 3 years ago • 9 comments

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

Annieliaquat avatar Jun 23 '22 19:06 Annieliaquat

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.

TannerGilbert avatar Jun 24 '22 07:06 TannerGilbert

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 avatar Jun 24 '22 16:06 Annieliaquat

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 avatar Jun 24 '22 16:06 Annieliaquat

Sorry the problem was closed unintentionally

Annieliaquat avatar Jun 24 '22 16:06 Annieliaquat

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??

Annieliaquat avatar Jun 26 '22 13:06 Annieliaquat

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>

TannerGilbert avatar Jun 26 '22 22:06 TannerGilbert

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

Annieliaquat avatar Jun 28 '22 08:06 Annieliaquat

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.

TannerGilbert avatar Jun 28 '22 08:06 TannerGilbert

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

Annieliaquat avatar Jun 28 '22 08:06 Annieliaquat