Skip to content

TensorRT Initialization Failure #283

Closed as not planned
Closed as not planned
@sayyid-abolfazl

Description

@sayyid-abolfazl

Hello guys, thank you all for everything.

I am trying to use the s_face face_recognition model in tensorRT mode :

https://github.com/opencv/opencv_zoo/tree/main/models/face_recognition_sface

To start, I checked the model with the netron tool to get the model inputs and outputs :

sface_netron

Now, let's compare two photos for a test :

onnx_sface

This is my program at this address
https://github.com/sayyid-abolfazl/sface_trt

and its output is not correct
trt

The problem is that the feature vectors obtained in the onnx model are completely different from the Nvidia TRT version, and I don't know where the problem lies.

https://github.com/opencv/opencv_zoo/blob/main/models/face_recognition_sface/demo.cpp

sface_class

It should be noted that if you use the align and crop method, the results are slightly different from the case where you just send the cropped face image without alignment, but in the TRT the results are completely different.

I tried several different methods, such as changing the color channel or the order of the channels and how the network blob was created, but I didn't get the right output.

I am trying to use the model's own alignment and cropping mode and send the image with 15 facial coordinates to it, but currently the output in normal mode is completely wrong.

class_trt

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions