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

Focus #847

Closed
ycdhqzhiai opened this issue Aug 26, 2020 · 8 comments
Closed

Focus #847

ycdhqzhiai opened this issue Aug 26, 2020 · 8 comments
Labels
question Further information is requested

Comments

@ycdhqzhiai
Copy link

❔Question

I'd like to know how much effect the removal of Focus structure will have on map. Has anyone tried it

Additional context

@ycdhqzhiai ycdhqzhiai added the question Further information is requested label Aug 26, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Aug 26, 2020

Hello @ycdhqzhiai, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook Open In Colab, Docker Image, and Google Cloud Quickstart Guide for example environments.

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:

  • Cloud-based AI systems operating on hundreds of HD video streams in realtime.
  • Edge AI integrated into custom iOS and Android apps for realtime 30 FPS video inference.
  • Custom data training, hyperparameter evolution, and model exportation to any destination.

For more information please visit https://www.ultralytics.com.

@Aktcob
Copy link

Aktcob commented Aug 26, 2020

+1

@glenn-jocher
Copy link
Member

Focus() module is designed for FLOPS reduction and speed increase, not mAP increase.

@glenn-jocher
Copy link
Member

Also designed for layer count reduction. 1 Focus module replaces 3 yolov3/4 layers.

@captainst
Copy link

I have a question concerning the focus layer: while it reduces the computation cost, does the "stride" sampling mess the coordinates of the ground truth bounding box ?

@glenn-jocher
Copy link
Member

@captainst Focus (and it's new v6.0 replacement) stack spatial information into channel space, so it's possible 1 pixel's worth of regression information may be reduced, though for most use cases regression accuracies will never approach 1 pixel anyway.

@captainst
Copy link

@glenn-jocher Many thanks. Now I appreciate why the focus layer is appied only once on the raw input image in the very beginning of the pipeline.

@glenn-jocher
Copy link
Member

@captainst yes, for classification models it might be more usable later on in the backbone, but probably not for detection models without losing mAP@0.5:0.95 (mAP@0.5 would be less affected).

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

No branches or pull requests

4 participants