Yet-Another-EfficientDet-Pytorch icon indicating copy to clipboard operation
Yet-Another-EfficientDet-Pytorch copied to clipboard

The speed and memory problem on Jetson Xavier NX

Open MuhammadAsadJaved opened this issue 4 years ago • 9 comments

Hi, We are running EfficinetDet network on Jetson Xavier NX ( https://developer.nvidia.com/embedded/jetson-xavier-nx)

While running demo we are facing two problems

1- The FPS is very low 4 ~ 5. 2- The memory usage of NX is fluctuating too much. sometimes 0% , sometimes 99%. Please see the attached image.

What is the possible reason?

We are using CUDA 10.3 PyTorch 1.6.0 and other requirements are same as mentioned in the repo.

effinet

MuhammadAsadJaved avatar Jul 07 '20 06:07 MuhammadAsadJaved

I think pytorch is not meant for embedded devices. You should try to convert effdet to a static model and try again.

zylo117 avatar Jul 07 '20 12:07 zylo117

@zylo117 Thank you for suggestions. Is there any sources or project how we can convert and implement static models in NX? Any specific recommendations?

MuhammadAsadJaved avatar Jul 08 '20 03:07 MuhammadAsadJaved

try onnx to make it static and tensor RT to make it faster.

zylo117 avatar Jul 08 '20 06:07 zylo117

@zylo117

OK. Thank you so much sir.

MuhammadAsadJaved avatar Jul 09 '20 02:07 MuhammadAsadJaved

@zylo117 Sir we have converted EfficientDet model to ONNX and TensorRT.

But now the problem is they have examples/samples to run only state of the art methods like SSD and YOLO etc. Your method is new so there is no example or settings to run EfficientDet model in TensorRT. Do you have any idea or suggestions for that?

MuhammadAsadJaved avatar Jul 09 '20 07:07 MuhammadAsadJaved

Sorry, I don't quite get what you said. Do you mean you managed to convert the model to tensorRT but it is not as fast as you expected because tensorRT is not optimized for effdet? In that case, I think that's the best Jetson can do for now.

zylo117 avatar Jul 09 '20 13:07 zylo117

@MuhammadAsadJaved Hi, could you please give me more information about how you export the EfficientDet to TensorRT. I'm a hard time exporting this model. Any hint is appreciated, thanks.

anti-destiny avatar Aug 11 '20 04:08 anti-destiny

@MuhammadAsadJaved Hi, could you please give me more information about how you export the EfficientDet to TensorRT. I'm a hard time exporting this model. Any hint is appreciated, thanks.

sorry,even if the model convert to ONNX ,but now when run the model also have some problem

fee0819 avatar Aug 11 '20 05:08 fee0819

I've successfully convert it to TensorRT version for inference. Kindly check it here: https://github.com/kongyanye/EfficientDet-TensorRT

kongyanye avatar Jun 16 '22 08:06 kongyanye