how to use classifier model that trained by ourself not tao to deepstream.
how to write sgie_config.txt and infer code.
yuweiw
February 27, 2024, 3:20am
3
You can refer to our deepstream_tao_apps . In this demo we showed the useage of a couple of classifier model.
if i used other classifier model ,how i get .so file that write on custom-lib-path.
When you use your own custom model, you need to write its custom post-processer.
When you run make
, a .so file is generated.
You give that path to custom-lib-path
.
In deepstream_tao_apps git repo, you can refer the post-processer code for reference and modify it for your own model.
Once you run make and .so file is generated, just add it to your config file.
You need to add two parameters in the config file,
parse-classifier-func-name
& custom-lib-path
Refer this.
################################################################################
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
This file has been truncated. show original
1 Like
thank you so much. i will study this.
The above example is for detection model but I am sure you can find some examples for classifier models too.
system
Closed
March 13, 2024, 1:31am
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.