Skip to content

Testing Images in Folder #15

Open
Open
@Annieliaquat

Description

@Annieliaquat

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

Activity

TannerGilbert

TannerGilbert commented on Jun 24, 2022

@TannerGilbert
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

Annieliaquat commented on Jun 24, 2022

@Annieliaquat
Author

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

Annieliaquat commented on Jun 24, 2022

@Annieliaquat
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

Annieliaquat commented on Jun 24, 2022

@Annieliaquat
Author

Sorry the problem was closed unintentionally

Annieliaquat

Annieliaquat commented on Jun 26, 2022

@Annieliaquat
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

TannerGilbert commented on Jun 26, 2022

@TannerGilbert
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

Annieliaquat commented on Jun 28, 2022

@Annieliaquat
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

TannerGilbert commented on Jun 28, 2022

@TannerGilbert
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

Annieliaquat commented on Jun 28, 2022

@Annieliaquat
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @TannerGilbert@Annieliaquat

        Issue actions

          Testing Images in Folder · Issue #15 · TannerGilbert/Tensorflow-Object-Detection-with-Tensorflow-2.0