Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset #3

Closed
xyzdcgan opened this issue Jan 10, 2019 · 15 comments
Closed

Dataset #3

xyzdcgan opened this issue Jan 10, 2019 · 15 comments

Comments

@xyzdcgan
Copy link

xyzdcgan commented Jan 10, 2019

Hello can you help me with the dataset when i go to dataset link there i download img_celeba.7z it download files but which are not jpg files and there are files like img_celeba.7z.001 so from where we can download the images. there are 3 folder img_align_celeba.zip which are jpg files but with 178-218 resolution. so where are the high resolution image...??

@LynnHo
Copy link
Owner

LynnHo commented Jan 10, 2019

@xyzdcgan Download files in this folder and unzip the files.
image

@xyzdcgan
Copy link
Author

xyzdcgan commented Jan 10, 2019

@LynnHo Okay, from that 3 are getting download, i am using drive link, so once it complete zipping that it start download of 3 files which are and also extracted those and got these result like:
dwnload

@LynnHo
Copy link
Owner

LynnHo commented Jan 10, 2019

@xyzdcgan
image
There should be 14 files like above, you can use 7z x img_celeba.7z.001 to extract them.

@xyzdcgan
Copy link
Author

xyzdcgan commented Jan 10, 2019

@LynnHo That gives Error : E_FAIL
7z x img_celeba.7z.001

7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_IN,Utf16=on,HugeFiles=on,4 CPUs)

Processing archive: img_celeba.7z.001

Error: E_FAIL

Trying to solve this if you can have any solution for this it would be great

I have plenty of space so why does,

Do i need to download all 14 parts

@LynnHo
Copy link
Owner

LynnHo commented Jan 10, 2019

@xyzdcgan Yes, you need all 14 parts.

@xyzdcgan
Copy link
Author

@LynnHo Okay

@xyzdcgan Yes, you need all 14 parts.

Okay

@xyzdcgan
Copy link
Author

@LynnHo Also i am trying to convert the checkpoint files to .pb which is done through tensorflow frozen_graph.py in which i pass Adam And adam_1 as the output nodes and which is generated but when i try it out it gives and error of adam not convert with float32 to float32_ref. can you tell if you have used any other optimizer to train the model as it only accept adam as output node. not relu or other

@LynnHo
Copy link
Owner

LynnHo commented Jan 10, 2019

@xyzdcgan I am sorry that I haven't got the experience on this problem.

@LynnHo Also i am trying to convert the checkpoint files to .pb which is done through tensorflow frozen_graph.py in which i pass Adam And adam_1 as the output nodes and which is generated but when i try it out it gives and error of adam not convert with float32 to float32_ref. can you tell if you have used any other optimizer to train the model as it only accept adam as output node. not relu or other

@xyzdcgan
Copy link
Author

@LynnHo Have you ever converted your ckpt files to .pb extension file format.

@LynnHo
Copy link
Owner

LynnHo commented Jan 11, 2019

@xyzdcgan No, I haven't.

@xyzdcgan
Copy link
Author

@LynnHo

python3 hd_celeba.py --data_dir ./data --crop_size 512 --order 4 --save_format jpg --n_worker 32
Use OpenCV
0%| | 0/202599 [00:00<?, ?it/s]multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "hd_celeba.py", line 105, in work
mode=args.mode)
File "/home/ios/hdimage/HD-CelebA-Cropper-master/cropper.py", line 64, in align_crop_5pts_opencv
move = np.array([img.shape[1] // 2, img.shape[0] // 2])
AttributeError: 'NoneType' object has no attribute 'shape'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "hd_celeba.py", line 109, in
for _ in tqdm(pool.imap(work, range(len(img_names))), total=len(img_names)):
File "/home/ios/.local/lib/python3.6/site-packages/tqdm/_tqdm.py", line 999, in iter
for obj in iterable:
File "/usr/lib/python3.6/multiprocessing/pool.py", line 761, in next
raise value
AttributeError: 'NoneType' object has no attribute 'shape'

@LynnHo
Copy link
Owner

LynnHo commented Jan 11, 2019

@xyzdcgan Did you follow the readme step by step? It seems to be the problem of image loading, how did you organize the files?

@LynnHo
Copy link
Owner

LynnHo commented Jan 11, 2019

@xyzdcgan try python3 hd_celeba.py --data_dir . --crop_size 512 --order 4 --save_format jpg --n_worker 32

@xyzdcgan
Copy link
Author

xyzdcgan commented Jan 11, 2019

@xyzdcgan try python3 hd_celeba.py --data_dir . --crop_size 512 --order 4 --save_format jpg --n_worker 32

Working now Thanks

@LynnHo LynnHo closed this as completed Jan 11, 2019
@copperwiring
Copy link

@xyzdcgan Were you able to get the data (.7z files) from the 'images' directory in CelebA? To me it doens't work and throws cannot open the file as archive error

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants