Comments (5)
Hi@ @hondahmd , I met the same problem, could you please tell me how to solve this
from mgan.
@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.
@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.
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.
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)
- suggest HOT 3
- Data error! HOT 1
- Paper about this project HOT 4
- question about mask
- hi HOT 1
- how should I do to test my own image with the model? HOT 1
- Multiple faces?
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 mgan.