Skip to content

Classes from model #1353

Answered by frankfliu
shdxw asked this question in Q&A
Discussion options

You must be logged in to vote

@shdxw
For a pre-trained, it will detect all the classes, the output Shape is fixed (e.g. 1000 classes), what you can do is filter the output and find the class that are are interested in. See this example: https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/inference/PoseEstimation.java#L95

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shdxw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants