plemeri / InSPyReNet

Official PyTorch implementation of Revisiting Image Pyramid Structure for High Resolution Salient Object Detection (ACCV 2022)
MIT License
321 stars 61 forks source link
accv2022 background-removal computer-vision deep-learning dichotomous-image-segmentation high-resolution image-matting image-segmantation pytorch salient-object-detection

Revisiting Image Pyramid Structure for High Resolution Salient Object Detection (InSPyReNet)

PWC PWC PWC PWC PWC

PWC PWC PWC

PWC PWC PWC PWC PWC

Official PyTorch implementation of PyTorch implementation of Revisiting Image Pyramid Structure for High Resolution Salient Object Detection (InSPyReNet)

To appear in the 16th Asian Conference on Computer Vision (ACCV2022)

Taehun Kim, Kunhee Kim, Joonyeong Lee, Dongmin Cha, Jiho Lee, Daijin Kim

Abstract: Salient object detection (SOD) has been in the spotlight recently, yet has been studied less for high-resolution (HR) images. Unfortunately, HR images and their pixel-level annotations are certainly more labor-intensive and time-consuming compared to low-resolution (LR) images. Therefore, we propose an image pyramid-based SOD framework, Inverse Saliency Pyramid Reconstruction Network (InSPyReNet), for HR prediction without any of HR datasets. We design InSPyReNet to produce a strict image pyramid structure of saliency map, which enables to ensemble multiple results with pyramid-based image blending. For HR prediction, we design a pyramid blending method which synthesizes two different image pyramids from a pair of LR and HR scale from the same image to overcome effective receptive field (ERF) discrepancy. Our extensive evaluation on public LR and HR SOD benchmarks demonstrates that InSPyReNet surpasses the State-of-the-Art (SotA) methods on various SOD metrics and boundary accuracy.

Contents

  1. News
  2. Demo
  3. Applications
  4. Easy Download
  5. Getting Started
  6. Model Zoo
  7. Results
  8. Citation
  9. Acknowledgement
  10. References

News :newspaper:

[2022.10.04] TasksWithCode mentioned our work in Blog and reproducing our work on Colab. Thank you for your attention!

[2022.10.20] We trained our model on Dichotomous Image Segmentation dataset (DIS5K) and showed competitive results! Trained checkpoint and pre-computed segmentation masks are available in Model Zoo). Also, you can check our qualitative and quantitative results in Results section.

[2022.10.28] Multi GPU training for latest pytorch is now available.

[2022.10.31] TasksWithCode provided an amazing web demo with HuggingFace. Visit the WepApp and try with your image!

[2022.11.09] :car: Lane segmentation for driving scene built based on InSPyReNet is available in LaneSOD repository.

[2022.11.18] I am speaking at The 16th Asian Conference on Computer Vision (ACCV2022). Please check out my talk if you're attending the event! #ACCV2022 #Macau - via #Whova event app

[2022.11.23] We made our work available on pypi package. Please visit transparent-background to download our tool and try on your machine. It works as command-line tool and python API.

[2023.01.18] rsreetech shared a tutorial for our pypi package transparent-background using colab. :tv: [Youtube]

Demo :rocket:

Image Sample Video Sample

Applications :video_game:

Here are some applications/extensions of our work.

Web Application

TasksWithCode provided WepApp on HuggingFace to generate your own results!

Web Demo

Command-line Tool / Python API :pager:

Try using our model as command-line tool or python API. More details about how to use is available on transparent-background.

pip install transparent-background

Lane Segmentation :car:

We extend our model to detect lane markers in a driving scene in LaneSOD

Lane Segmentation

Easy Download :cake:

How to use easy download

Downloading each dataset, checkpoint is quite bothering, even for me :zzz:. Instead, you can download data we provide including `ImageNet pre-trained backbone checkpoints`, `Training Datasets`, `Testing Datasets for benchmark`, `Pre-trained model checkpoints`, `Pre-computed saliency maps` with single command below. ```bash python utils/download.py --extra --dest [DEST] ``` * `--extra, -e`: Without this argument, only the datasets, checkpoint, and results from our main paper will be downloaded. Otherwise, all data will be downloaded including results from supplementary material and DIS5K results. * `--dest [DEST], -d [DEST]`: If you want to specify the destination, use this argument. It will automatically create a symbolic links of the destination folders inside `data` and `snapshots`. Use this argument if you want to download data on other physical disk. Otherwise, it will download inside this repository folder. If you want to download a certain checkpoint or pre-computed map, please refer to [Getting Started](#getting-started-flight_departure) and [Model Zoo](#model-zoo-giraffe).

Getting Started :flight_departure:

Please refer to getting_started.md for training, testing, and evaluating on benchmarks, and inferencing on your own images.

Model Zoo :giraffe:

Please refer to model_zoo.md for downloading pre-trained models and pre-computed saliency maps.

Results :100:

Quantitative Results

LR Benchmark HR Benchmark HR Benchmark (Trained with extra DB) DIS

Qualitative Results

DAVIS-S & HRSOD UHRSD UHRSD (w/ HR scale) DIS

Citation

@inproceedings{kim2022revisiting,
  title={Revisiting Image Pyramid Structure for High Resolution Salient Object Detection},
  author={Kim, Taehun and Kim, Kunhee and Lee, Joonyeong and Cha, Dongmin and Lee, Jiho and Kim, Daijin},
  booktitle={Proceedings of the Asian Conference on Computer Vision},
  pages={108--124},
  year={2022}
}

Acknowledgement

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No.2017-0-00897, Development of Object Detection and Recognition for Intelligent Vehicles) and (No.B0101-15-0266, Development of High Performance Visual BigData Discovery Platform for Large-Scale Realtime Data Analysis)

Special Thanks to :tada:

References

Related Works

Resources