-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
thop and pycocotools shouldn't be hard requirements to train a model #2014
Comments
@Ownmarc hey there. You raise a good point. We added pycocotools because often users would only return the repo mAP on COCO and be confused when the repo mAP did not match the README mAP, which is obtained from pycocotools, but you are right the requirement is not needed for all other datasets. thop is used to compute GFLOPS for model summaries, but is not strictly required for training either. In general we've tried to balance the requirements with the feature additions they provide. The requirements check we also instituted after too many users were reporting 'bugs' due to not meeting dependency version, i.e. training with pytorch 1.4 and then raising a bug report (without mentioning package versions) where the error message is hard to trace back to a version mismatch, like 'nn.SiLU() module not found' etc. |
On an unrelated note I see a github check problem in your screenshot as well... hmm I'll take a look at the CI windows results there. Yes, it appears in windows CI also. https://github.com/ultralytics/yolov5/runs/1745848780?check_suite_focus=true Ok I'll add a TODO for this: windows github check fix. |
The problem seems related to inlining the current branch name with the $ symbol: problem appears to be Possible solution in https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git |
so pycocotools should only be a requirement when test.py is calling check_requirements() and that the opt.save_json is True Could probably do that :
I'm sure you'll come up with prettier code ahah and in test.py : |
@Ownmarc thanks for the feedback, we will take this into consideration. In the meantime I've pushed a fix for the github check error, this should work well in Windows now. This check advises you of updates to master, which we've implemented to help increase awareness of code improvements and to encourage more people to update. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not having thop and pycocotools installed shouldn't prevent me from starting a training.
pycocotools is never required by train.py
thop is optional
The text was updated successfully, but these errors were encountered: