PyTorch-progressive_growing_of_gans icon indicating copy to clipboard operation
PyTorch-progressive_growing_of_gans copied to clipboard

TypeError: float() argument must be a string or a number when I tried to create the Celeba-HQ

Open SungjinChoi1128 opened this issue 6 years ago • 0 comments

I tried to create the CelebA-HQ dataset with the original data set and dat file.

but the error occurs like below

(202599L, 5L, 2L) Loading CelebA-HQ deltas from ./celeba-hq/Delta Traceback (most recent call last): File "h5tool.py", line 708, in execute_cmdline(sys.argv) File "h5tool.py", line 703, in execute_cmdline func(**vars(args)) File "h5tool.py", line 609, in create_celeba_hq aidx, aimg64, aimg128, aimg256, aimg512, aimg1024 = process_func(x) File "h5tool.py", line 556, in process_func img = np.pad(np.float32(img), ((pad[1], pad[3]), (pad[0], pad[2]), (0, 0)), 'reflect') TypeError: float() argument must be a string or a number

anyone has any idea how to solve this ?

SungjinChoi1128 avatar Feb 25 '19 05:02 SungjinChoi1128