Need help with DANN_py3?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

fungtion
156 Stars 33 Forks MIT License 7 Commits 1 Opened issues

Description

python 3 pytorch implementation of DANN

Services available

!
?

Need anything else?

Contributors list

# 147,529
Python
domain-...
pytorch
Docker
7 commits

This is a pytorch implementation of the paper Unsupervised Domain Adaptation by Backpropagation

Environment

  • Pytorch 1.6
  • Python 3.8.5

Network Structure

p8KTyD.md.jpg

Dataset

First, download target dataset mnistm from pan.baidu.com fetch code: kjan or Google Drive, and put mnistm dataset into dataset/mnist_m, the structure is as follows:

--dataset--mnist_m--mnist_m_train
                 |--mnist_m_test
                 |--mnist_m_train_labels.txt
                 |--mnist_m_test_labels.txt
                 |--.gitkeep

Training

Then, run

python main.py

Docker

  • build image
docker build -t pytorch_dann .
  • run docker container
docker run -it --runtime=nvidia \
  -u $(id -u):$(id -g) \
  -v /YOUR/DANN/PROJECT/dataset:/DANN/dataset \
  -v /YOUR/DANN/PROJECT/models:/DANN/models \
  pytorch_dann:latest \
  python main.py

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.