Comments (2)
The accuracy I get is about 76%. I am trying to get higher accyracy.
python 3.6.12
pytorch 1.4.0
torchvision 0.5.0
To run the code with python3 and pytorch 1.x, I modified some codes. I find something interesting:
- The transformation of the image dataset matters:
# mnist transformation 1
# I got very low accuracy with the hyper-parameter not modified.
# img_transform_source = transforms.Compose([
# transforms.Resize(image_size),
# transforms.ToTensor(),
# transforms.Normalize(mean=(0.1307,), std=(0.3081,))
# ])
# mnist transformation 2
# accuracy about 76%
img_transform_source = transforms.Compose([
transforms.Resize(image_size),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5,), std=(0.5,))
])
# mnist-m transformation
img_transform_target = transforms.Compose([
transforms.Resize(image_size),
transforms.ToTensor(),
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
])
- the implementation of SI-MSE:
The author utilizesloss_recon1 + loss_recon2
in thetrain.py
. Actually,loss_recon1 - loss_recon2
is right. The author finds+
is better than-
. I find the same result.
If anyone who gets higher accuracy than 76%, can you tell me your implemantation details? Many thanks!
from dsn.
Related Issues (13)
- multi-GPU HOT 1
- loss_diff decrease to zero very fast HOT 2
- raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly HOT 2
- Diff loss and dann loss are zeros for all epochs.
- The private code is always zeros.
- Question about DiffLoss HOT 3
- how to get the dataset?mnist_m_train_labels.txt? HOT 2
- The implementation of 'p' is not similar to the original DANN paper HOT 1
- Question about all of the loss HOT 15
- Question about ReverseLayerF HOT 4
- There is a line of wrong code HOT 1
- Question about the Sign of SIMSE Loss HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsn.