Giter Site home page Giter Site logo

hehongjie / bestie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clovaai/bestie

0.0 0.0 0.0 2.76 MB

[CVPR 2022] Beyond Semantic to Instance Segmentation: Weakly-Supervised Instance Segmentation via Semantic Knowledge Transfer and Self-Refinement

License: Other

Shell 0.83% Python 99.17%

bestie's Introduction

BESTIE - Official Pytorch Implementation (CVPR 2022)

Beyond Semantic to Instance Segmentation: Weakly-Supervised Instance Segmentation via Semantic Knowledge Transfer and Self-Refinement (CVPR 2022)
Beomyoung Kim1, YoungJoon Yoo1,2, Chaeeun Rhee3, Junmo Kim4

1 NAVER CLOVA
2 NAVER AI Lab
3 Inha University
4 KAIST

Paper

PWC PWC PWC

PWC PWC PWC

Abtract

Weakly-supervised instance segmentation (WSIS) has been considered as a more challenging task than weakly-supervised semantic segmentation (WSSS). Compared to WSSS, WSIS requires instance-wise localization, which is difficult to extract from image-level labels. To tackle the problem, most WSIS approaches use off-the-shelf proposal techniques that require pre-training with instance or object level labels, deviating the fundamental definition of the fully-image-level supervised setting. In this paper, we propose a novel approach including two innovative components. First, we propose a semantic knowledge transfer to obtain pseudo instance labels by transferring the knowledge of WSSS to WSIS while eliminating the need for the off-the-shelf proposals. Second, we propose a self-refinement method to refine the pseudo instance labels in a self-supervised scheme and to use the refined labels for training in an online manner. Here, we discover an erroneous phenomenon, semantic drift, that occurred by the missing instances in pseudo instance labels categorized as background class. This semantic drift occurs confusion between background and instance in training and consequently degrades the segmentation performance. We term this problem as semantic drift problem and show that our proposed self-refinement method eliminates the semantic drift problem. The extensive experiments on PASCAL VOC 2012 and MS COCO demonstrate the effectiveness of our approach, and we achieve a considerable performance without off-the-shelf proposal techniques. The code is available at https://github.com/clovaai/BESTIE.

Experimental Results (VOC 2012, COCO)

  • BESTIE (HRNet48, Image-label) : 42.6 mAP50 on VOC2012 [download]
  • BESTIE (HRNet48, point-label) : 46.7 mAP50 on VOC2012 [download]

Qualitative Results

News

  • official pytorch code release
  • release the code for the classifier with PAM module
  • update training code and dataset for COCO

How To Run

Requirements

  • torch>=1.10.1
  • torchvision>=0.11.2
  • chainercv>=0.13.1
  • numpy
  • pillow
  • scikit-learn
  • tqdm

Datasets

  • Download Pascal VOC2012 dataset from the official dataset homepage.
  • Download other data from [here].
    • Center_points/ (ground-trugh point labels)
    • Peak_points/ (point labels extracted by PAM module and image-level labels)
    • WSSS_maps/ (weakly-supervised semantic segmentation outputs)
data_root/
    --- VOC2012/
        --- Annotations/
        --- ImageSet/
        --- JPEGImages/
        --- SegmentationObject/
        --- Center_points/
        --- Peak_points/
        --- WSSS_maps/

Image-level Supervised Instance Segmentation on VOC2012

# change the data ROOT in the shell script
bash scrips/run_image_labels.sh

Point Supervised Instance Segmentation on VOC2012

# change the data ROOT in the shell script
bash scrips/run_point_labels.sh

Mask R-CNN Refinement

  1. Generate COCO-style pseudo labels using the BESTIE model.
  2. Train the Mask R-CNN using the pseudo-labels: https://github.com/facebookresearch/maskrcnn-benchmark .

Acknowledgement

Our implementation is based on these repositories:

License

Copyright (c) 2022-present NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

bestie's People

Contributors

clovaaiadmin avatar kimbeomyoung avatar qjadud1994 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.