Practical overview
When it fits
Use it when examining or adapting a code-level ADDA image-classification example, particularly for MNIST-to-USPS transfer.
Who it is for
- Researchers exploring adversarial domain adaptation for image classification.
- Developers seeking a small PyTorch example to study or adapt for related image domains.
Documented uses
- Study an ADDA workflow that transfers image representations from a labeled source domain to a target domain.
- Compare the repository's source-model and adapted-model results on USPS.
- Use the MNIST-to-USPS experiment as a starting point for testing other image-domain pairs.
Requirements & limits
The repository is public and lists an MIT license.
- The README specifies Python 3.6 and PyTorch 0.2.0.
- The repository states that only MNIST-to-USPS was tested.
- The README reports 83.978495% USPS accuracy with the source encoder and classifier, compared with 97.634409% with the adapted target encoder and source classifier.
- Using other datasets requires adapting data loading and may require model-dimension changes.
- Upgrading the documented Python and PyTorch versions requires modification.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run the documented MNIST-to-USPS example
Start the repository's documented domain-adaptation experiment.
Before you start
- Python 3.6
- PyTorch 0.2.0
- The repository's code
Steps
Obtain the repository.
Use the documented Python 3.6 and PyTorch 0.2.0 environment.
Run the command below as specified in the README.
python3 main.py
Expected outcome
The README describes an MNIST-source to USPS-target experiment and reports USPS results for the source and adapted encoders.
Guide limitations
- The repository says it tested only MNIST to USPS.
- Reported results are the repository's stated experiment results, not independently verified here.
- Upgrading the documented runtime and framework requires modification.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 12 November 2026
- Original website title
- corenel/pytorch-adda · Official homepage title · retained in its source language

