Comments (4)
Thanks for your great suggestions. Will update them accordingly after testing.
from partialconv.
torch.ones_like(input[:1, :1, ...])
Does input[:1, :1, ...]
taking a slice of the tensor without making a copy?
from partialconv.
@ivanstepanovftw I don't think it makes a copy. However, since it is only used as an argument for torch.ones_like
the values of the tensor are not being used at all, only the shape
, dtype
and device
.
from partialconv.
Also I think this operation is useless:
partialconv/models/partialconv2d.py
Line 75 in 610d373
because input will be multiplied by the mask anyway here:
partialconv/models/partialconv2d.py
Line 70 in 610d373
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
- 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.