Giter Site home page Giter Site logo

shuljj / austnet-inharmonious-region-localization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bcmi/austnet-inharmonious-region-localization

0.0 0.0 0.0 665 KB

[BMVC2022] Inharmonious Region Localization with Auxiliary Style Feature

Shell 0.26% C++ 3.97% Python 91.77% Cuda 4.00%

austnet-inharmonious-region-localization's Introduction

AustNet-Inharmonious-Region-Localization

teaser

This is the official code of the paper:

Inharmonious Region Localization with Auxiliary Style Feature
Penghao Wu, Li Niu, Liqing Zhang
arXiv Paper, BMVC 2022

Install

Clone this repo and build the environment

git clone https://github.com/bcmi/AustNet-Inharmonious-Region-Localization.git
cd AustNet-Inharmonious-Region-Localization
conda env create -f environment.yml --name Austnet
conda activate Austnet

Download the semantic segmentation network model weight through link Google Drive or Baidu Yun with code pfpy. Put the model weight in the HRNet-Semantic-Segmentation-HRNet-OCR folder.

Datset

Please refer to DIRL to download the iHarmoney4 dataset.

Training

To train AustNet, run

python train_austnet.py --dataset_root PATH_OF_THE_DATASET --logdir austnet_training_log --gpus NUMBER_OF_GPUS

To train AustNet_S, run

python train_austnet_s.py --dataset_root PATH_OF_THE_DATASET --logdir austnet_s_training_log --gpus NUMBER_OF_GPUS

Pretrained Model

Model Google Drive Link Baidu Yun Link
Austnet Google Drive Baidu Yun code: m8ku
Austnet_s Google Drive Baidu Yun code: jrdi

Evaluation

To evaluate AustNet, run

python test_austnet.py --dataset_root PATH_OF_THE_DATASET --ckpt MODEL_WEIGHT_PATH

To evaluate AustNet_S, run

python test_austnet_s.py --dataset_root PATH_OF_THE_DATASET --ckpt MODEL_WEIGHT_PATH

Citation

If you find our work or code helpful, please cite:

@inproceedings{Wu2022Inharmonious,
  title={Inharmonious Region Localization with Auxiliary Style Feature},
  author={Penghao Wu and Li Niu and Liqing Zhang},
  booktitle={BMVC},
  year={2022}
}

Acknowledgement

Our code is based on repositories:

austnet-inharmonious-region-localization's People

Contributors

penghao-wu avatar ustcnewly avatar vstar-seal 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.