Code Monkey home page Code Monkey logo

imaterialist2020's Introduction

iMaterialist-2020

This is a segmentation framework modified from MaskRCNN.

requirements

  • Python (>= 3.6)
  • PyTorch pip3 install -r requirements.txt

Demo

we provide a clothing parsing system using our trained model as segmentation model. image

Train

This code support two types of model: without attribute and with attribute

./train.sh (lr schedule) (lr) # train without attr
#./train_attr.sh (attribute-wise weight) (attribute-loss weight) (lr) # train with attr

Val

predict on validation data (output mIOU and mF1)

./val.sh (experiment_name) (checkpoint_idx)

Test

test without attribute

# ./test.sh experiment_name mask_thresh checkpoint_idx
./test.sh torch_MaskRCNN_40e_lr0.1 0.5 21

test with attribute

# ./test_attr.sh experiment_name mask_thresh checkpoint_idx attr_score_thresh
./test_attr.sh torch_MaskRCNN_20e_lr0.01_attr_1000weight_3aweight 0.5 0 0.7

code log

train.py # train with train/val.csv, not support for online validation (validate while training)。[something wrong in code, seems to be the cuda device incorrespondence] train_attr.py # train with attribute data,using binary cross entropy with specified pos weight and loss weight.

imaterialist2020's People

Contributors

wassryan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

imaterialist2020's Issues

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.