Minimal Code Changes to Support Latest PyTorch and Bug Fixed for Extremely Low Adaptation Accuracy #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for contributing this repo, which is really nice to learn domain adaptation.
Just made some minimal code changes to support latest PyTorch (>= 1.0) and Python (>= 3.6) (0f98f5d).
Fixed the low adaptation accuracy (10%-15%) mentioned in Could you verify the implementation? Acc = 11% after domain adaptation #27 RNN network invalid #26 d_loss and accuracy #22 Adaptation leads to lower precision. #15 0% accuracy with pytorch >= 0.4.0 #10 accuracy just 13% after adaptation? #8 Thanks ! + testing the "src_only" baseline ... #7 How to tune the training parameters to rise the accuracy ? #1. The bug is due to the different normalization applied to MNIST and USPS. The data loader normalizes all the MNIST images to 0-1, while normalizing all the USPS images to 0-255. Changing the latter to 0-1 leads to normal performance (13a295a):