Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did anyone calculate the number of calculations happen in YOLO model? #12753

Closed
1 task done
aravindchakravarti opened this issue Feb 22, 2024 · 6 comments
Closed
1 task done
Labels
question Further information is requested Stale

Comments

@aravindchakravarti
Copy link

Search before asking

Question

I know, how to calculate computation cost for a convolutional layer.

The computation cost is = DK · DK · M · N · DF · DF
Where,
M = Number of input channels
N = Number of output channels
DK · DK = Kernel size
DF · DF = Output feature map

I am wondering if anyone has done total computing cost YOLO V5 model.

Additional

No response

@aravindchakravarti aravindchakravarti added the question Further information is requested label Feb 22, 2024
@glenn-jocher
Copy link
Member

@aravindchakravarti hello! 👋

The total computational cost for a model like YOLOv5 can be measured in terms of FLOPs (Floating Point Operations), which is a common metric for understanding the complexity of neural networks. While we don't have a specific command that outputs the total FLOPs for YOLOv5 directly in the repository, you can use various profiling tools to calculate it.

For a detailed breakdown of the layers and operations, you might want to use a neural network profiling tool that can analyze the model and provide you with the total FLOPs. The YOLOv5 documentation provides guidance on how to use the model and its various features, but for FLOPs calculation, you would typically need to use an external tool or script.

If you're interested in contributing to the YOLOv5 project with a FLOPs calculation feature, we always welcome contributions from the community! 😊

@aravindchakravarti
Copy link
Author

Thanks @glenn-jocher !!
If I am able to do any progress in FLOPS calculations, definitely I would get back Ultralytics community. Thank you!!

@glenn-jocher
Copy link
Member

You're welcome, @aravindchakravarti! 😄

I'm glad to hear that you're considering contributing. If you make any progress or if you have further questions, the Ultralytics community and I are here to help. Good luck with your FLOPs calculations, and we look forward to any updates you might have in the future!

Happy coding! 🚀

Copy link
Contributor

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

@github-actions github-actions bot added the Stale label Mar 25, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
@zhou-huan-1
Copy link

Thanks @glenn-jocher !!
If I am able to do any progress in FLOPS calculations, definitely I would get back Ultralytics community. Thank you!!

@glenn-jocher
Copy link
Member

You're welcome, @zhou-huan-1! 😄

Great to hear that you're considering contributing! If you make any progress on the FLOPs calculations or need further assistance, feel free to reach out. The Ultralytics community and I are here to help. Looking forward to your updates, and happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

3 participants