Code Monkey home page Code Monkey logo

cisc-r's Introduction

CISC-R

Code for TPAMI 2022 paper, "Querying Labeled for Unlabeled: Cross-Image Semantic Consistency Guided Semi-Supervised Semantic Segmentation".

Authors: Linshan Wu, Leyuan Fang, Xingxin He, Min He, Jiayi Ma, and Zhun Zhong

Abstract

Semi-supervised semantic segmentation aims to learn a semantic segmentation model via limited labeled images and adequate unlabeled images. The key to this task is generating reliable pseudo labels for unlabeled images. Existing methods mainly focus on producing reliable pseudo labels based on the confidence scores of unlabeled images while largely ignoring the use of labeled images with accurate annotations. In this paper, we propose a Cross-Image Semantic Consistency guided Rectifying (CISC-R) approach for semi-supervised semantic segmentation, which explicitly leverages the labeled images to rectify the generated pseudo labels. Our CISC-R is inspired by the fact that images belonging to the same class have a high pixel-level correspondence. Specifically, given an unlabeled image and its initial pseudo labels, we first query a guiding labeled image that shares the same semantic information with the unlabeled image. Then, we estimate the pixel-level similarity between the unlabeled image and the queried labeled image to form a CISC map, which guides us to achieve a reliable pixel-level rectification for the pseudo labels.

Getting Started

Prepare Dataset

├── [Your Pascal Path]
    ├── JPEGImages
    └── SegmentationClass
    
├── [Your Cityscapes Path]
    ├── leftImg8bit
    └── gtFine
    
├── [Your COCO Path]
    ├── train2017
    ├── val2017
    └── masks

Pretrained Backbone:

ResNet-50 | ResNet-101 | Xception-65

├── ./pretrained
    ├── resnet50.pth
    ├── resnet101.pth
    └── xception.pth

Train and Eval

python train.py
python eval.py

Acknowledgement

We thank ST++ for part of their codes, processed datasets, data partitions, and pretrained models.

Citation ✏️ 📄

If you find this repo useful for your research, please consider citing the paper as follows:

@ARTICLE{CISC_R2022,
  author={Wu, Linshan and Fang, Leyuan and He, Xingxin and He, Min and Ma, Jiayi and Zhong, Zhun},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, 
  title={Querying Labeled for Unlabeled: Cross-Image Semantic Consistency Guided Semi-Supervised Semantic Segmentation}, 
  year={2023},
  volume={45},
  number={7},
  pages={8827-8844},
  doi={10.1109/TPAMI.2022.3233584}}

cisc-r's People

Contributors

luffy03 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cisc-r's Issues

Code replication is throwing an error.

Hello, I encountered an issue while trying to replicate your code.

The error occurred in line 147 of the file dataset/make_query_txt.py. It seems that the dimension of vec at this point is batch_size * 256, (default:batch_size=8)while the dimension of vecs_all is [4, 256]. When I attempt to execute vecs_all[index, :] += vec, it leads to a dimension mismatch error.

Could you please assist me in resolving this issue? Thank you!

the link to paper

This seems to be an interesting job. Unfortunately, no papers have been retrieved from Google Academic and Arxiv.
So where can I find this paper?

关于dataset/cls_txt文件

作者你好,感谢你的工作!
我想把你的代码用到我的自建数据集上,但是我不知道dataset/cls_txt里面的包含类图片的txt文件是怎么得到?

The time cost in training phase

Hi! In the paper, selecting the most suitable labeled sample needs to access to the whole labeled dataset. So I wonder if it will take lots of time. Thanks!

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.