Giter Site home page Giter Site logo

Comments (2)

FLAWLESSJade avatar FLAWLESSJade commented on August 24, 2024

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.
2021-05-24 13-46-08屏幕截图

from dsn.

elmaghba avatar elmaghba commented on August 24, 2024

@FLAWLESSJade I got the same issue, did you solve it?

from dsn.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.