This is a pytorch implementation of SMENet
pytorch == 1.1.0
cuda 8.0
python == 3.7
./SMENet/VOCNWPU/
4.Data format
├── VOCNWPU
│ ├── VOC2012
│ ├── Annotations
│ ├── JPEGImages
│ ├── ImageSets
│ ├── train.txt
│ ├── test.txt
| ├── val.txt
| ├── trainval.txt
1.Please download weights file SMENet.pth
, and put it to:
./SMENet/weights/
visual_SMENet.py
:
cd ./SMENet/demo/visual_SMENet.py
modify parser.add_argument('--trained_model', default='../weights/SMENet.pth', type=str, help='Trained state_dict file path to open')
python visual_SMENet.py
if you want to train your own dataset:
./SMENet/dataset-file-name/
HOME
and num_classes
in ./SMENet/data/config.py
:
HOME= absolute path of the SMENet folderVOC_CLASSES
in ./SMENet/data/voc0712.py
python train_SMENet.py
*.pth
to weights, like ./SMENet/weights/*.pth
## Eval
if you want to eval trained model: