Code Monkey home page Code Monkey logo

mask-rcnn-pytorch's Introduction

Pytorch--mask-rcnn

For modify the original mask rcnn model. Please connect the models in the model/modified_mask_rcnn.py

Make sure the environment is the same !!

env

python=3.7.7
pytorch=1.6.0=py3.7_cuda10.1.243_cudnn7.6.3_0
torchvision=0.7.0=py37_cu101
numpy=1.19.1=py37hbc911f0_0

conda env setting

conda env create -f environment.yml -n rcnn

start conda

conda activate rcnn

Run the pedestrian dataset to make sure your model works

./download_pedestrian.sh
python test_pedestrian.py

Mainly training on PASCAL

When you want to train on pascal voc. you don't need to run the .sh file because it is a built-in function in voc_utils.

python train_voc.py

Problem shooting

  1. cannot run .sh file
chmod 777 YOUR_SH_FILE_NAME.sh

For running test_coco.py in distribute system

run distribute

python -m torch.distributed.launch --nproc_per_node=4 --use_env train_coco.py
python -m torch.distributed.launch --nproc_per_node= --use_env train_coco\
    --dataset coco --model maskrcnn_resnet50_fpn --epochs 26\
    --lr-steps 16 22 --aspect-ratio-group-factor 3
python -m torch.distributed.launch --nproc_per_node=4 --use_env train_coco\
    --dataset coco --model maskrcnn_resnet50_fpn --epochs 26\
    --lr-steps 16 22 --aspect-ratio-group-factor 3

kill the nvidia zombie threads

kill $(ps aux | grep train_coco.py | grep -v grep | awk '{print $2}') 

mask-rcnn-pytorch's People

Contributors

derbychen avatar pkchen1129 avatar robintzeng avatar

Watchers

 avatar

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.