Changed code from line 178 to 181#163
Conversation
Added the snipped of code ``classifier[1].out_features``` to support Mobilenet classifiers in the code while training.
|
Hi @rahulmangalampalli! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
@rahulmangalampalli Hi,I am conducting related experiments. How does your MobileNet or v2 v3 perform on dino ? the parameters in the comments work well? |
Context:
!python -m torch.distributed.launch --nproc_per_node=1 main_dino.py --arch mobilenet_v2 --optimizer sgd --lr 0.03 --weight_decay 1e-4 --weight_decay_end 1e-4 --global_crops_scale 0.14 1 --local_crops_scale 0.05 0.14 --data_path /path/to/my/dataset --output_dir /path/to/my/output/folderSolution:
After a while, I understood the error was due to the fact that Mobilenets doesn't have fc attribute, so instead I used
embed_dim = student.classifier[1].out_featuresat line 178 ofmain_dino.py.So this is how I changed it ,