Comments (7)
@geekswaroop Should the original image also be changed, or only resizing the input image before converting to array is sufficient?
from human-parsing.
What's the difference between original image and input image?
from human-parsing.
Input image could be the resized image (resized only once, not each time we run the code)
from human-parsing.
I think PIL.Image.resize() does the work. Can you cross-check once if that is what is needed? @geekswaroop
from human-parsing.
PIL functions don't work well with torch Tensors. Refer to the documentation linked above
from human-parsing.
@geekswaroop Why should the transformation be applied to tensors? Can't we directly do it for images and save them as part of preprocessing?
Doing for tensors might be hectic as each time the code is run, tensors are changed .
from human-parsing.
Hi, I wasn't clear in my description. I want you to compose 2 transformations for both ground truth and images.
Basically, return a dictionary containing keys as img
and gt
whose corresponding values in the composition object whose documentation I have linked above.
For the transformation object, you first need to resize the image to 256x256 with 3 channels. Then convert to tensor. Next, normalise the image
For ground truth, just resize image to 256x256 with 1 channel.
Hope this is clear. Send in a PR, I will review it. Thanks!
from human-parsing.
Related Issues (9)
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 human-parsing.