Comments (6)
Oh, I just found it's a numpy reshape problem. The code runs very well.
from download-celeba-hq.
@HavenFeng I'm having the same problem here - what was your reshaping solution?
from download-celeba-hq.
Figured it out. For anyone else who might be encountering this problem, use the following:
img = img.transpose(0,2,3,1)
where img
is the numpy array for the image. Just need to reorder things, so image stays first, height second, width third, and channels fourth.
from download-celeba-hq.
So should I change something in my code?
from download-celeba-hq.
@nperraud I don't think so - unless you want your code to save image files too. The code does a great job of reconstructing the .npy
files. Images are icing on the cake. Thanks for this repo, it worked great and helped a ton!
from download-celeba-hq.
Happy that you found it useful!
Thanks for your clear answer.
from download-celeba-hq.
Related Issues (18)
- urllib.error.HTTPError: HTTP Error 429 HOT 6
- Error in make_HQ_images.py OSError: 3145728 requested and 1671040 written HOT 3
- Convert to HQ some part of celeba dataset HOT 2
- Dropbox links not working currently
- Total size of the dataset HOT 1
- Windows 10 Compatibility HOT 3
- make_HQ_images.py needs modification HOT 2
- Error downloading `jpeg` & `pillow` with conda HOT 14
- Only Linux and Mac OS X support .7z HOT 2
- zipfile.BadZipFile: File is not a zip file HOT 3
- sum simplification code HOT 3
- download_celebA.py: Checksum doesn't match HOT 3
- docker fails
- Flaws images 70 && 2815 HOT 3
- Use google drive instead of dropbox everywhere
- error in Make_hq_images.py float() argument must be a string or a number, not 'Image' HOT 3
- Docker issue "FileNotFoundError: [Errno 2] No such file or directory: 'image_list.txt'" 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 download-celeba-hq.