Comments (3)
The issue is related to preprocessing. It looks like that, somehow for pycaffe, the dimensions of the input data should be totally reversed. I have to change
input_ = input_.transpose(2, 0, 1)
to
input_ = input_.transpose(2, 1, 0)
to make the code work. Thanks again for your help! @Yijunmaverick
from generativefacecompletion.
Hi @liaohaofu, thanks for your interests about our work.
I just run my model and the result (below) looks good. Not sure if it is due to the processing steps on input and ouput.
My guess is on this line "segmentation = scores.argmax(0)". Do you get the max along the channel (channel = 11) dimension?
from generativefacecompletion.
Yes, the max is along the channel dimension. In pycaffe, the channel dimension always comes first. So, "input_" has a shape of 1x3x128x128 (1 is the batch size) and "scores" has a shape of 11x128x128. Could you run my code on your machine to see if it works correctly. You only need to change the related file paths to make it work if you have your caffe compiled with anaconda. Thanks a lot!
from generativefacecompletion.
Related Issues (20)
- User editing demo HOT 1
- Matlab has encountered an internal problem and needs to close HOT 5
- a problem about demo_face128.m HOT 4
- python how to run HOT 6
- Train the model only with the reconstruction loss HOT 9
- a problem while running the demo_GFC_training.m
- caffe.solver problem
- I don't have GPU, Can I use it with CPU-ONLY mode HOT 6
- question about the fully-connected layer
- Specific version that support to build matcaffe
- Bad image completion with pretrained model
- Caffe doesn't declare its version in headers HOT 9
- Why no permission to download Model_parsing and model?
- the version of the cudnn? HOT 3
- Matlab problem HOT 4
- a problem about demo_GFC_training.m HOT 12
- 关于人脸矫正损失函数模型 HOT 1
- the version of google protobuf HOT 1
- error with test code HOT 2
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 generativefacecompletion.