Skip to content

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

@SungjinChoi1128

Description

@SungjinChoi1128

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions