Giter Site home page Giter Site logo

ke-rcnn's Introduction

KE-RCNN

Official implementation of KE-RCNN for part-level attribute parsing. It based on mmdetection.

Installation

Dataset

You need to download the datasets and annotations follwing this repo's formate

Make sure to put the files as the following structure:

  ├─data
  │  ├─fashionpedia
  │  │  ├─train
  │  │  ├─test
  │  │  │─instances_attribute_train2020.json
  │  │  │─instances_attribute_val2020.json
  |  |  |─train_norm_attr_knowledge_matrix.npy
  |
  ├─work_dirs
  |  ├─ke_rcnn_r50_fpn_fashion_1x
  |  |  ├─epoch32.pth

Results and Models

FashionPedia

Backbone LR AP_iou+f1 AP_mask_iou+f1 DOWNLOAD
R-50 1x 39.6 36.4 model
R-101 1x 39.9 36.6 model
HRNet-w18 1x 38.0 35.3 model
Swin-tiny 1x 43.7 40.5 model
  • This is a reimplementation. Thus, the numbers are slightly different from our original paper.

Evaluation

# inference
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 ./tools/dist_test.sh configs/ke_rcnn/ke_rcnn_r50_fpn_fashion_1x.py work_dirs/ke_rcnn_r50_fpn_fashion_1x/epoch32.pth 8 --format-only --eval-options "jsonfile_prefix=work_dirs/ke_rcnn_r50_fpn_fashion_1x/ke_rcnn_r50_fpn_fashion_1x_val_result"

# eval, noted that should change the json path produce by previous step.
python eval/fashion_eval.py

Training

# training
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 ./tools/dist_train.sh configs/ke_rcnn/ke_rcnn_r50_fpn_fashion_1x.py 8

Citation

@article{wang2022ke,
  title={KE-RCNN: Unifying Knowledge-Based Reasoning Into Part-Level Attribute Parsing},
  author={Wang, Xuanhan and Song, Jingkuan and Chen, Xiaojia and Cheng, Lechao and Gao, Lianli and Shen, Heng Tao},
  journal={IEEE Transactions on Cybernetics},
  year={2022},
  publisher={IEEE}
}

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.