-
Notifications
You must be signed in to change notification settings - Fork 27
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
Move yolox to object_detection module #167
Conversation
Codecov Report
@@ Coverage Diff @@
## master #167 +/- ##
======================================
Coverage 84.9% 85.0%
======================================
Files 28 30 +2
Lines 1839 1843 +4
======================================
+ Hits 1563 1567 +4
Misses 276 276
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change looks great to me pending tests passing 🎉 !
Still curious if there's a simpler way. Seems like only importing VideoLoaderConfig in |
I kind of like separating out object detection from the classification models, but I don't feel too strongly |
Agree this is a nice organization. We might end up further organizing our models directory then into classification vs. denspose vs. object detection. But this is sufficient for now |
@ejm714 I did try that, which does fix the |
Closes #139
The cycle we're up against:
In summary, the frame loader needs YoloX, which is in
zamba.models
so calls thatzamba.models.__init__
, which instantiates all models for the registry. For example, efficientnet loads the base classZambaVideoClassificationLightningModule
, which loads thezamba.data.video.VideoLoaderConfig
. And there's our cycle.The simplest way to resolve the circular import issue seemed to be to move YoloX code out of models and into its own
zamba.object_detection
module.I updated the docs to reflect that; I think I caught everything.