microsoft / FocalNet

[NeurIPS 2022] Official code for "Focal Modulation Networks"
MIT License
682 stars 61 forks source link

no such file or directory tools/train.py #11

Closed LeeJinSoo-BIN closed 1 year ago

LeeJinSoo-BIN commented 1 year ago

i can't find tools/train.py

jwyang commented 1 year ago

tools/train.py is for training object detection and segmentation, please put the focalnet code to mmdet (https://github.com/open-mmlab/mmdetection) first and then run with train.py or test.py

mattroos commented 1 year ago

@jwyang I'm confused by this as well. Can you clarify further? Should I clone the mmdetection repo, and then copy the FocalNet files into the mmdetection directory structure? Where should the root contents of FocalNet be placed within the mmdetection directory structure?

jwyang commented 1 year ago

Hi, @mattroos yes, you are right. You need to clone mmdetection repo and copy the files here (https://github.com/microsoft/FocalNet/tree/main/detection) to the corresponding locations. Please follow the same hierarchy when copying. For example, you need to copy the files in folder "mmdet/models/backbones" of this repo to the folder mmdet/models/backbones/ under mmdet. Same rule applies to configs.

jwyang commented 1 year ago

Also, I am going to put the files into the mmdetection to ease the reproducing of the experiments. Please stay tuned on this repo: https://github.com/FocalNet/FocalNet-MMDetection

aliman80 commented 1 year ago

For segmentation task, do i need to clone mmsegmentation and then put Focalnet there? Can you guide