wiki-documents icon indicating copy to clipboard operation
wiki-documents copied to clipboard

[Page Add][Enhanced Function]Deploy Frigate on a reComputer(NVIDIA Jetson) device

Open MatthewJeffson opened this issue 1 year ago • 18 comments

Overview

We need your help to enable users to be able to run Frigate smoothly on our reComputer(NVIDIA Jetson devices) and enjoy high-performance real-time object detection. In addition, a complete set of deployment and optimization guidelines should be available to help more users achieve efficient deployment on similar devices.

  • Frigate deployment: Successfully deploy Frigate on our reComputer device(NVIDIA Jetson), ensuring that its basic functionality is up and running.
  • Performance optimization: Frigate was optimized for Jetson's GPU architecture to improve processing speed and efficiency.
  • Stability test: Continuous running test to ensure stability and reliability over a long period of time.
  • Wiki guidance: Write detailed documentation of the deployment and optimization process, including possible problems and solutions.

Additions:

We are looking for community contributions to enrich our library of AI models reComputer(Jetson) devices. We want to receive model examples that can be deployed and used in an easy way, ideally "one-click deployment." This will make it easier for developers and researchers to test and use various AI models on Jetson devices, accelerating the R&D and innovation process.

How do we work together?

  • Leave a comment with your GitHub name below as you accept this assignment and will complete the contents about what we are trying to present.
  • The maintainer will assign and record you as our only contact for this assignment.
  • You can first Deploy this Wiki Platform Locally (The entire source code .zip file is only 30 M)
  • You will be invited as our "Contributor" once you "Pull Request".
  • The maintainer will review the PR and then merge.

What do we offer?

We want to express our gratitude to our contributors by offering a range of rewards. Depending on the difficulties(Tier 0/1/2/3), the time we expect(Days 1/3/7/15), the actual submission time and the actual submission contents, we will offer different levels of rewards.

  1. We will provide our products or cash bonus to our contributors as a token of appreciation.
  2. For those contributors who join our "Ranger Program"(announced soon), we offer even more exciting rewards, including access to our prototype products.
  3. In addition, all contributors and their contributions will be acknowledged and showcased on our wiki platform.

FAQ

  • For any question, the contributor can directly commend here.

I think I can complete the assignment, but I need more time?

  • The timeframe here is based on our old experience, from people who has done it or something like that.
  • However, many projects will take much more time under actual circumstances (including the main language of the contributors receiving the task and the actual creative difficulty)
  • You can leave the time you need and a brief reason, we will evaluate the situation accordingly.

MatthewJeffson avatar May 29 '24 03:05 MatthewJeffson

👋 @MatthewJeffson

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.

github-actions[bot] avatar May 29 '24 03:05 github-actions[bot]

Hi @MatthewJeffson I think I can complete the assignment, but I need more time. I have purchased a Jetson and there may be a delay in its delivery to me. I have experience with developing detection algorithms on Jetson.

kouroshkarimi avatar Jul 02 '24 15:07 kouroshkarimi

Wow! Thank you @kouroshkarimi so much for considering this! I really appreciate it! We can get started it once your Jetson arrivied:) Please let me know if you need any help from our side. Best Regards, Matthew

MatthewJeffson avatar Jul 03 '24 10:07 MatthewJeffson

@MatthewJeffson, I'm thrilled about that! I believe my Jetson will arrive in a few days. I can't wait to start working on it. I have a lot of experience working with Jetson (Orin, Xavier, AGX, Nano), and I bought my own Jetson for this project. I'm very familiar with how to use it. Could you provide me with some links related to this issue to help me speed up my work? Also, I'm interested in learning more about Seeed Studio's coding principles.

kouroshkarimi avatar Jul 03 '24 10:07 kouroshkarimi

@kouroshkarimi Nice! And that is awesome you are quite familiar with Jetson!

We are actually brewing and publishing a number of topics based on Jetson, which as example you can see here:

Regarding this assignment, I think you can refer to here There are still some issues running Frigate on Jetson, like it only uses CPU to do the AI acceleration and not the GPU.

It would be really amazed you can fix or develop something that allows Frigate running smoothly on the Jetson devices, writing to other people a wiki (template) about the installation. We will present on our wiki platform.:)

Thank you so much!

Best Regards, Matthew

MatthewJeffson avatar Jul 04 '24 06:07 MatthewJeffson

Hi @MatthewJeffson, Frigate's documentation states that it supports Jetsons and utilizes GPU, contradicting your statement that it only uses CPU! Here is the text :

Image

kouroshkarimi avatar Jul 08 '24 07:07 kouroshkarimi

Hello! @kouroshkarimi I am sorry for the misunderstanding. Frigate does utilize GPU but we used to test a little bit that we were not able to apply it - thus, if you can help us that would be really great! Best Regards, Matthew

MatthewJeffson avatar Jul 09 '24 01:07 MatthewJeffson

@MatthewJeffson That's okay. I will attempt to run it on the Jetson.

kouroshkarimi avatar Jul 09 '24 04:07 kouroshkarimi

Great! Thank you so much!

MatthewJeffson avatar Jul 09 '24 05:07 MatthewJeffson

@MatthewJeffson I started coding on Jetson Xavier NX with JP5. I ran the Frigate Docker with TensorRT and obtained the following outputs. It ran with GPU TensorRT for its detector.

Image Image

kouroshkarimi avatar Jul 09 '24 13:07 kouroshkarimi

Hi @MatthewJeffson I deployed Frigate on the Nvidia Jetson. How can I receive a response about it? Is it OK or need more optimization?

kouroshkarimi avatar Jul 13 '24 11:07 kouroshkarimi

Wow! That is quickly amazing! @kouroshkarimi Thank you so much! You can deploy it near to you then detect some common objects and then do some triggering action:

Like detecting the person running, walking, etc - You can use some common existed ML models.

Or you can train one for it - And if you do that, would you mind as well writing a tutorial about the trainning?

Thanks!

Best Regards, Matthew

MatthewJeffson avatar Jul 15 '24 03:07 MatthewJeffson

@MatthewJeffson Sure, I will go for that. Thank you for your reply.

kouroshkarimi avatar Jul 17 '24 14:07 kouroshkarimi

Hi @MatthewJeffson I have a question about "Detecting the person running, walking, etc." Do you mean running will be a class and walking is another class, or just detecting the person in general?

kouroshkarimi avatar Jul 22 '24 15:07 kouroshkarimi

@MatthewJeffson I deploy it and post its result on LinkedIn. If detecting a person is enough I can write its wiki now.

kouroshkarimi avatar Jul 22 '24 15:07 kouroshkarimi

Hi @kouroshkarimi , I'm an application engineer of SeeedStuido. Thank you very much for this work. I think it's time to write a wiki to share this project. It would be better if the article included a short video to demonstrate the project's features. @MatthewJeffson has already shared the wiki template with you. If you need more reference material, please refer to here.

yuyoujiang avatar Aug 02 '24 06:08 yuyoujiang

Hi @yuyoujiang Thank you for responding. I will proceed with that.

kouroshkarimi avatar Aug 04 '24 13:08 kouroshkarimi

Hello! @kouroshkarimi I just got back to the office. Thanks for the proceeding:) Best Regards, Matthew

MatthewJeffson avatar Aug 09 '24 02:08 MatthewJeffson

Hi @MatthewJeffson I wrote a wiki for it and requested for merge. if it needs to change please tell me to correct it.

kouroshkarimi avatar Aug 28 '24 04:08 kouroshkarimi

Thank you! @kouroshkarimi We will check it very soon! By the way, once it merged, would you mind I adding this project in our Contributor Page? image

And we sincerely want to offer cash bonus or products as compensation, may we communicate through email? [email protected]

Best Regards, Matthew

MatthewJeffson avatar Aug 29 '24 07:08 MatthewJeffson

Nice work @kouroshkarimi !!! I noticed that your PR does not include a demonstration video. It would be helpful if you could record a video showing how to start Frigate, add cameras, and integrate models, among other tasks. And your demonstration video might be featured on Seeed's official social media channels.

yuyoujiang avatar Aug 29 '24 08:08 yuyoujiang

Hi @MatthewJeffson Sure. I'll be happy if you add it. thank you for your compensation. Yes, it is ok to communicate through email. I will wait for your email.

kouroshkarimi avatar Aug 29 '24 11:08 kouroshkarimi

Hi @yuyoujiang Sure, I will record it in the coming days. Where should I upload the video, and can you provide me with a sample video? I just want to understand the video timing and type of recording.

kouroshkarimi avatar Aug 29 '24 11:08 kouroshkarimi

Hi @kouroshkarimi , here have some sample videos. Just show the end result. https://www.youtube.com/watch?v=niS0TLzyn-s https://youtu.be/MLPE9V3GKK0?si=wIEuACqYqT_jalwv https://www.youtube.com/@SeeedStudioSZ

Don't be limited by these reference videos, the only requirement for this video is to show the final result, you can also design the video as you want.

yuyoujiang avatar Aug 30 '24 02:08 yuyoujiang

✅ @MatthewJeffson

This issue is closed, If you have any questions, you can comment and reply.

github-actions[bot] avatar Aug 30 '24 03:08 github-actions[bot]