• Hardware Platform (Jetson / GPU) Jetson • DeepStream Version 6.1 • JetPack Version (valid for Jetson only) 5.0.2 • TensorRT Version 8.4.1
I have trained a pytorch classification model. I have converted it into onnx. I’ve verified the onnx model, it is working fine. But in deepstream I’m getting incorrect results. Am I doing something wrong in preprocessing?
I want to use this model as the primary model.
I am attaching the model and the config file for reference.
@Fiona.Chen Dude read the question first. I already told you I trained the model and I’ve done the conversion. I want to know if I’m doing something wrong in the configuration part.
Is there any example code you can provide me for running classification model as the primary model. I’m using a pytorch classification model which use image resize and standard pytorch normalization and no other preprocessing.
@Fiona.Chen If you want some additional information just let me know I’ll give you.
Please don’t say you don’t know something before asking about that.
What do you mean by the “the necessary things”? The preprocessing including scaling, format conversion and normalization, do you mean you want to do all these things in model? As far as I know, at least the input layer size is fixed( the “w” and “h”) while the input images can be any resolutions. How can the model accept the images of different resolutions and formats?
@Fiona.Chen By necessary things I meant input format conversion and normalization. Resizing/scaling I can set the required input size in nvstreammux only.