Git Product home page Git Product logo

sagnet's Introduction

sagnet

Style-Agnostic Networks (SagNets)

By Hyeonseob Nam, HyunJae Lee, Jongchan Park, Wonjun Yoon, and Donggeun Yoo.

Lunit, Inc.

Introduction

This repository contains a pytorch implementation of Style-Agnostic Networks (SagNets) for Domain Generalization. It is also an extension of our method which won the first place in Semi-Supervised Domain Adaptation of Visual Domain Adaptation (VisDA)-2019 Challenge. Details are described in Reducing Domain Gap by Reducing Style Bias, CVPR 2021 (Oral).

Citation

If you use this code in your research, please cite:

@inproceedings{nam2021reducing,
  title={Reducing Domain Gap by Reducing Style Bias},
  author={Nam, Hyeonseob and Lee, HyunJae and Park, Jongchan and Yoon, Wonjun and Yoo, Donggeun},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2021}
}

Prerequisites

Setup

Download PACS dataset into ./dataset/pacs

images ->  ./dataset/pacs/images/kfold/art_painting/dog/pic_001.jpg, ...
splits ->  ./dataset/pacs/splits/art_painting_train_kfold.txt, ...

Usage

Multi-Source Domain Generalization

python train.py --sources Rest --targets [domain] --method sagnet --sagnet --batch-size 32 -g [gpus]

Single-Source Domain Generalization

python train.py --sources [domain] --targets Rest --method sagnet --sagnet --batch-size 96 -g [gpus]

Results are saved into ./checkpoint

sagnet's People

Contributors

nhseob avatar francescocappio avatar

Stargazers

Niccolò Cavagnero avatar Antonio Tavera avatar Riccardo Zaccone avatar Gabriele Tiboni 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.