GithubHelp home page GithubHelp logo

alva-2020 / eisnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emma-sjwang/eisnet

0.0 0.0 0.0 93 KB

[ECCV 2020] Learning from Extrinsic and Intrinsic Supervisions for Domain Generalization

License: MIT License

Python 99.54% Shell 0.46%

eisnet's Introduction

Learning from Extrinsic and Intrinsic Supervisions for Domain Generalization

by Shujun Wang, Lequan Yu, Caizi Li, Chi-Wing Fu, and Pheng-Ann Heng.

Introduction

This repository is for our ECCV2020 paper 'Learning from Extrinsic and Intrinsic Supervisions for Domain Generalization'. cellgraph The framework of the proposed EISNet for domain generalization. We train a feature Encoder $f$ for discriminative and transferable feature extraction and a classifier for object recognition. Two complementary tasks, a momentum metric learning task and a self-supervised auxiliary task, are introduced to prompt general feature learning. We maintain a momentum updated Encoder (MuEncoder) to generate momentum updated embeddings stored in a large memory bank. Also, we design a $K$-hard negative selector to locate the informative hard triplets from the memory bank to calculate the triplet loss. The auxiliary self-supervised task predicts the order of patches within an image.

Requirements

  • python 3.6.8
conda create -n EISNet python=3.6.8
  • PyTorch 1.4.0

    source activate EISNet 
    conda install pytorch==1.4.0 torchvision cudatoolkit=9.2 -c pytorch 
  • Other packages in requirements.txt

Usage

  1. Clone the repository and download the dataset PACS and VLCS into folder EISNet/Dataset.

If you have already put the dataset into other paths, you need to change path in txt files in EISNet/code/data/txt_lists/*.txt.

  1. Train the model.

    sh run_PACS_photo_Resnet50.sh

Citation

If EISNet is useful for your research, please consider citing:

@inproceedings{wang2020learning,
  title={Learning from Extrinsic and IntrinsicSupervisions for Domain Generalization},
  author={Wang, Shujun and Yu, Lequan and Li, Caizi and Fu, Chi-Wing and Heng, Pheng-Ann},
  booktitle={ECCV}, 
  year={2020}
}

eisnet's People

Contributors

emma-sjwang 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.