Giter Club home page Giter Club logo

Comments (5)

buaaswf avatar buaaswf commented on August 16, 2024

Hi@ @hondahmd , I met the same problem, could you please tell me how to solve this

from mgan.

hondahmd avatar hondahmd commented on August 16, 2024

@buaaswf Sorry I didn't figure out a solution. But I believe that it might have something to do with your develop environment, your package version, for example.

from mgan.

Fly2flies avatar Fly2flies commented on August 16, 2024

@buaaswf Sorry I didn't figure out a solution. But I believe that it might have something to do with your develop environment, your package version, for example.

I also have the same problem. As you said, it has something to do with the development environment version, as show below:
input and target shapes do not match: input [1 x 1 x 1 x 1], target [1 x 1] at c:\programdata\miniconda3\condabld\pytorch_1533086611947\work\aten\src\thcunn\generic/MSECriterion.cu:12
So, have you solved it yet?

from mgan.

miaoYuanyuan avatar miaoYuanyuan commented on August 16, 2024

modify the line 71-74 in train.py :
real_lbl=torch.zeros(batch_size,1,1,1).cuda() real_lbl[:,0,0,0]=1 fake_lbl=torch.zeros(batch_size,1,1,1).cuda() fake_lbl[:,0,0,0]=1 @hondahmd

from mgan.

hondahmd avatar hondahmd commented on August 16, 2024

modify the line 71-74 in train.py :
real_lbl=torch.zeros(batch_size,1,1,1).cuda() real_lbl[:,0,0,0]=1 fake_lbl=torch.zeros(batch_size,1,1,1).cuda() fake_lbl[:,0,0,0]=1 @hondahmd

Thx! It works!

from mgan.

Related Issues (8)

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.