mmdeploy icon indicating copy to clipboard operation
mmdeploy copied to clipboard

forward_test output wrong

Open manhtd98 opened this issue 2 years ago • 4 comments

heree is my inference code. image shape is 6*3*800*1088 output only [(1,28,28), (1, 100), (1,4)] why i pass batch input with 6 samples but output only have 1 sample output model tenssort + gpu

manhtd98 avatar Jul 01 '22 06:07 manhtd98

I check the tensorrt wrapper and output of this function always have 1 sample output. Plz check the forward method of it

manhtd98 avatar Jul 01 '22 12:07 manhtd98

Hi, @manhtd98. Sorry for replying so late. Would you mind sharing your test code?

lvhan028 avatar Jul 11 '22 01:07 lvhan028

input_img shape is 6*3*800*1088

input_img = data["img"][0].contiguous()
 img_metas = data["img_metas"]
 outputs = self.model.forward_test(
 input_img, img_metas, return_loss=False, rescale=True)

But the output is only 1 images process

manhtd98 avatar Jul 13 '22 20:07 manhtd98

What's your command to convert the model? How do you prepare the input tensor?

lvhan028 avatar Jul 20 '22 12:07 lvhan028

This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.

github-actions[bot] avatar Dec 17 '22 01:12 github-actions[bot]

This issue is closed because it has been stale for 5 days. Please open a new issue if you have similar issues or you have any new updates now.

github-actions[bot] avatar Dec 24 '22 01:12 github-actions[bot]