GithubHelp home page GithubHelp logo

smenet's Introduction

SMENet

This is a pytorch implementation of SMENet

Requirements

  1. pytorch == 1.1.0

  2. cuda 8.0

  3. python == 3.7

  4. opencv(CV2)

Data Prepare

  1. Please download NWPU VHR-10
  2. Convert to PASCAL VOC data format
  3. Create dataset folder
./SMENet/VOCNWPU/

4.Data format

├── VOCNWPU
│   ├── VOC2012
│       ├── Annotations
│       ├── JPEGImages
│       ├── ImageSets
│         ├── train.txt
│         ├── test.txt
|         ├── val.txt
|         ├── trainval.txt

Demo

1.Please download weights file SMENet.pth, and put it to:

./SMENet/weights/
  1. Run 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

Train

if you want to train your own dataset:

1. Convert your dataset to PASCAL VOC and put it to `./SMENet/dataset-file-name/`
2. Modify parameters  `HOME` and  `num_classes` in `./SMENet/data/config.py` :
    HOME= absolute path of the SMENet folder
3. Modify parameters `VOC_CLASSES` in `./SMENet/data/voc0712.py`
4. `python train_SMENet.py`
5. save `*.pth` to weights, like `./SMENet/weights/*.pth`

Eval

if you want to eval trained model:

1. cd ./SMENet/eval.py
2. Modify parser.add_argument('--trained_model', default='weights/*.pth', type=str, help='Trained state_dict file path to open')
3. python eval.py

smenet's People

Contributors

momuli avatar

Stargazers

 avatar  avatar Joey avatar

Watchers

 avatar

smenet's Issues

Data spliting ?

please can you tell us when train and test percentage did you use ?

test

I hope to use the network model you designed to train the new dataset I created (3 categories). I did not modify the image size of the input network (using the initial 400Pixel in the code), but only modified the file used to create the dataset, voc2017.py. The final training loss was 0.899 (different learning rates were attempted multiple times), but the eval result was poor, with a mAP of only 0.0566. Excuse me, are there any areas where I haven't made the necessary modifications or omissions?
The visualization results of target detection are shown in the following figure. For the categories detected in the red box, they are correct, while others are error detection
PW3QXO`83{_{5WBK)4S({TY
I just rewrote the__ getitem__ ()
image

Issue about some module in your projects

The implementation of the OER module seems to be different from the one described in your paper,
In train_SMENet.py the OER module has been commented out,
In SMENet.py the OSE module has also been commented out,
why do you comment out these modules?Can this achieve better results?

Exception in other datasets during network training

I hope to use the network model you designed to train the new dataset I created (3 categories). I did not modify the image size of the input network (using the initial 400Pixel in the code), but only modified the file used to create the dataset, voc2017.py. The final training loss was 0.899 (different learning rates were attempted multiple times), but the eval result was poor, with a mAP of only 0.0566. Excuse me, are there any areas where I haven't made the necessary modifications or omissions?
The visualization results of target detection are shown in the following figure. For the categories detected in the red box, they are correct, while others are error detection
PW3QXO`83{_{5WBK)4S({TY
I just rewrote the__ getitem__ ()
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.