Skip to content

[Detector Support]: 'TensorRtDetector' object has no attribute 'outputs' | Setting up a custom yolov7 model. #14631

Closed Answered by IxcheI
IxcheI asked this question in Detector Support
Discussion options

You must be logged in to vote

Ayyyy you're right, it works now! I will run it some time to test but so far the debug + test footage works well.

Solution:
Changed line to tensor_output = self.model.run(None, {model_input_name: tensor_input.astype(np.float32)/255})
And line to (_, x_min, y_min, x_max, y_max, class_id, confidence) = prediction

Replies: 1 comment 97 replies

Comment options

NickM-27
Oct 27, 2024
Collaborator Sponsor

You must be logged in to vote
97 replies
@IxcheI
Comment options

@NickM-27
Comment options

NickM-27 Nov 1, 2024
Collaborator Sponsor

@NickM-27
Comment options

NickM-27 Nov 1, 2024
Collaborator Sponsor

@IxcheI
Comment options

Answer selected by IxcheI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment