Giter Club home page Giter Club logo

ssdetection's Introduction

FasterRCNN

Pytorch Implementation of FasterRCNN.
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Environment

OS: Ubuntu 16.04
Python: python3.x with torch==1.2.0, torchvision==0.4.0

Performance

Backbone Train Test Style Epochs Learning Rate RoIs AP
ResNet-18 trainval35k minival5k Pytorch 12 2e-2/2e-3/2e-4 512 27.1
ResNet-34 trainval35k minival5k Pytorch 12 2e-2/2e-3/2e-4 512 33.5
ResNet-50 trainval35k minival5k Pytorch 12 2e-2/2e-3/2e-4 512 34.9
ResNet-101 trainval35k minival5k Pytorch 12 2e-2/2e-3/2e-4 512 38.6

Trained models

You could get the trained models reported above at 
https://drive.google.com/open?id=1JYs4r1M6doRlMgKCxSWmue2iKAcMkJxe

Usage

Setup

cd libs
sh make.sh

Train

usage: train.py [-h] --datasetname DATASETNAME --backbonename BACKBONENAME
                [--checkpointspath CHECKPOINTSPATH]
optional arguments:
  -h, --help            show this help message and exit
  --datasetname DATASETNAME
                        dataset for training.
  --backbonename BACKBONENAME
                        backbone network for training.
  --checkpointspath CHECKPOINTSPATH
                        checkpoints you want to use.
cmd example:
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --datasetname coco --backbonename resnet50

Test

usage: test.py [-h] --datasetname DATASETNAME [--annfilepath ANNFILEPATH]
               [--datasettype DATASETTYPE] --backbonename BACKBONENAME
               --checkpointspath CHECKPOINTSPATH [--nmsthresh NMSTHRESH]
optional arguments:
  -h, --help            show this help message and exit
  --datasetname DATASETNAME
                        dataset for testing.
  --annfilepath ANNFILEPATH
                        used to specify annfilepath.
  --datasettype DATASETTYPE
                        used to specify datasettype.
  --backbonename BACKBONENAME
                        backbone network for testing.
  --checkpointspath CHECKPOINTSPATH
                        checkpoints you want to use.
  --nmsthresh NMSTHRESH
                        thresh used in nms.
cmd example:
CUDA_VISIBLE_DEVICES=0 python test.py --checkpointspath faster_res50_trainbackup_coco/epoch_12.pth --datasetname coco --backbonename resnet50

Demo

usage: demo.py [-h] --imagepath IMAGEPATH --backbonename BACKBONENAME
               --datasetname DATASETNAME --checkpointspath CHECKPOINTSPATH
               [--nmsthresh NMSTHRESH] [--confthresh CONFTHRESH]
optional arguments:
  -h, --help            show this help message and exit
  --imagepath IMAGEPATH
                        image you want to detect.
  --backbonename BACKBONENAME
                        backbone network for demo.
  --datasetname DATASETNAME
                        dataset used to train.
  --checkpointspath CHECKPOINTSPATH
                        checkpoints you want to use.
  --nmsthresh NMSTHRESH
                        thresh used in nms.
  --confthresh CONFTHRESH
                        thresh used in showing bounding box.
cmd example:
CUDA_VISIBLE_DEVICES=0 python demo.py --checkpointspath faster_res50_trainbackup_coco/epoch_12.pth --datasetname coco --backbonename resnet50 --imagepath 000001.jpg

Reference

[1]. https://github.com/jwyang/faster-rcnn.pytorch
[2]. https://github.com/open-mmlab/mmdetection

ssdetection's People

Contributors

charlespikachu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ssdetection's Issues

import errors

Hi I'm using a windows 10 and I downloaded the repository
After doing bash make.sh I get the following errors

Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, Extension
ImportError: No module named setuptools
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 1
make.sh: 2: make.sh: nvcc: not found
make.sh: 7: make.sh: nvcc: not found
make.sh: 10: make.sh: nvcc: not found
Traceback (most recent call last):
File "build.py", line 2, in
import torch
ImportError: No module named torch
Traceback (most recent call last):
File "build_modulated.py", line 2, in
import torch
ImportError: No module named torch
Compiling stnm kernels by nvcc...
make.sh: 7: make.sh: nvcc: not found
Traceback (most recent call last):
File "build.py", line 3, in
import torch
ImportError: No module named torch
Compiling my_lib kernels by nvcc...
make.sh: 13: make.sh: nvcc: not found
Traceback (most recent call last):
File "build.py", line 3, in
import torch
ImportError: No module named torch
Compiling my_lib kernels by nvcc...
make.sh: 13: make.sh: nvcc: not found
Traceback (most recent call last):
File "build.py", line 3, in
import torch
ImportError: No module named torch
Compiling my_lib kernels by nvcc...
make.sh: 13: make.sh: nvcc: not found
Traceback (most recent call last):
File "build.py", line 3, in
import torch
ImportError: No module named torch

Im wondering if you can point me in the direction to patch this up.
Thanks

About training my own datasets

hi , i want to use this code training my own datasets ,so how can i change the cofig file to correspond to my own datasets. Now i am training my own datasets by using the default settings ,but loss looks unhealthy

pretrained module

Hello! Thanks for sharing your project for us. And can you release the pretrained module for demo or test. Thanks a lot!

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.