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

No output of running multi label classification for image tagging #1663

Closed
marco-cheung opened this issue Jun 3, 2023 · 5 comments
Closed

Comments

@marco-cheung
Copy link
Contributor

marco-cheung commented Jun 3, 2023

Hi there, I am trying to run sample code of below using Jetson Orin Nano Developer Kit, but no outputs. Checked that my terminal is located in the aarch64/bin directory and I am able to run "./imagenet.py images/orange_0.jpg images/test/output_0.jpg" and see the output file as expected. Also checked that I've also got my input file ".images/object_1.jpg".

image

@dusty-nv
Copy link
Owner

dusty-nv commented Jun 4, 2023

@marco-cheung hmm this is what I get from running that same command on Orin Nano with JetPack 5.1.1:

[image]  loaded 'images/object_1.jpg'  (500x386, 3 channels)
imagenet:  99.61% class #11 (dog)

It makes a valid output image of it recognizing the dog. I did notice that your command has a trailing " (after images/test/tagging_1.jpg"), I wonder if that causes anything. Can you post your console log from when you run it?

Also, does it work on any of the "images/object_*.jpg" test images for you?

@marco-cheung
Copy link
Contributor Author

Thanks @dusty-nv! The special symbol " " is the root cause of the issue.

When I run the command imagenet.py --model=resnet18-tagging-voc --topK=0 --threshold=0.25 "images/object_*.jpg" images/test/tagging_%i.jpg in my terminal, it can execute imagenet.py successfully and then generate a series of image output in the defined folder.

In your sample code, there is indeed a trailing ". Not sure if it is a typo? If yes, maybe I should submit a pull request for this?

@dusty-nv
Copy link
Owner

dusty-nv commented Jun 5, 2023

In your sample code, there is indeed a trailing ". Not sure if it is a typo? If yes, maybe I should submit a pull request for this?

Sorry about that, you're right! Just fixed it in commit 2d53107

@marco-cheung
Copy link
Contributor Author

marco-cheung commented Jun 5, 2023

I just made my first time to create a pull request #1665 for this issue on Github.
Then come back and noticed your message. (what a shame)

@dusty-nv
Copy link
Owner

dusty-nv commented Jun 5, 2023 via email

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