Comments (2)
I have solve this problem in my other server with environment : pytorch 1.6.0 , torchvision 0.7.0 and ubuntu 16.04 OS
The method to deal this problem as follows:
When i exchange my training environment to this server, i found the same situation like someones asked before that the shape of mnist and mnist-m are not align,but this code was work in my prior server.
So, i deduce that this problem may raised by the code of dataloader part, i revised this code as follows,which help me solved this problem above.
transform = transforms.Compose([
transforms.ToTensor(),
transforms.Lambda(lambda x: x.repeat(3,1,1)), #Add this code to reshape channel from 1 to 3
transforms.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5))
])
And,a new problem is raised that the loss of target dif and source dif are always keep 0,it is abnormal.
It looks like the model do not have any back propagation.
from dsn.
@FLAWLESSJade I got the same issue, did you solve it?
from dsn.
Related Issues (15)
- multi-GPU HOT 1
- loss_diff decrease to zero very fast HOT 2
- Diff loss and dann loss are zeros for all epochs.
- The private code is always zeros.
- FileNotFoundError: [Errno 2] NO such file or directory: ' . /dataset/mnist_ m/mnist. _m_ train labels. txt'
- Question about the weight of DiffLoss
- 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
- Question about the accuracy of the result HOT 2
- 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.