Comments (3)
After imitating the whole processing within brain, I think it seems have some problem here.
partialconv/models/partialconv2d.py
Line 70 in 90306f1
If you don't mask the input before the normal convolution, the result will contain the information from hole area. Except you make sure the hole area of input is always zero.
But the idea of considering the padding area as mask to avoid re-weighted problem is awesome.
from partialconv.
@hughplay Thanks a lot for your comments.
For the first question: we need to apply the mask after we add the bias since we want the hole regions to have 0 values instead of values == bias.
For the second question, I have updated the code to incorporate your comments. Yes, it is better to mask the input at the begin. The reason why I didn't do that is that for the original raw input, I would always set the values to be 0; the partial conv layer would also set the un-filled regions to have value 0 as the outputs. But it is better to mask the input first to be safe in case the input's hole values are not set to be 0.
from partialconv.
Ok, great! I also make it clear after implementing it by my self. Thanks for your nice work!
from partialconv.
Related Issues (20)
- Pretrained Checkpoints
- Demo not working HOT 12
- About train details
- papaer arch partial conv num question HOT 1
- Problem with Pretrained checkpoints
- Some comments about code of PartialConv2d HOT 4
- How to test the code with the different ratios mask? HOT 1
- About mask training dataset HOT 5
- Doesn't take 2 channel mask as input HOT 2
- Online Demo down? HOT 7
- Pytorch export trace/script
- Blurry results and non-recoverable facial features in CelebA-HQ dataset HOT 3
- image inpainting error
- I can't import models in main.py
- About args: multi-channel for image inpainting
- partial con
- Inpainting demo not working HOT 2
- The updating of mask HOT 1
- 2d and 3d implementation differences
- Map at edges is peaking (PartialConv2d implementation + fix) HOT 6
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 partialconv.