You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I finally got the directory tree into the format the h5tool.py script was expecting. Now when I try to run it, I get the following error:
$ python h5tool.py create_celeba_hq 123456.h5 dirA/ dirB/
Loading CelebA data from dirA/
(202599, 5, 2)
Loading CelebA-HQ deltas from dirB/
Worker thread caught an exception:
Traceback (most recent call last):
File "h5tool.py", line 97, in run
result = func(*args)
File "h5tool.py", line 146, in task_func
return process_func(prepared)
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
Traceback (most recent call last):
File "h5tool.py", line 695, in <module>
execute_cmdline(sys.argv)
File "h5tool.py", line 690, in execute_cmdline
func(**vars(args))
File "h5tool.py", line 596, in create_celeba_hq
for orig_fn, aimg64, aimg128, aimg256, aimg512, aimg1024 in pool.process_items_concurrently(fields['idx'], process_func=process_func, max_items_in_flight=num_tasks):
File "h5tool.py", line 161, in process_items_concurrently
for res in retire_result(): yield res
File "h5tool.py", line 149, in retire_result
processed, (prepared, idx) = self.get_result(task_func)
File "h5tool.py", line 126, in get_result
raise result.type, result.value
TypeError: float() argument must be a string or a number
It seems that img object is of type 'JpegImageFile' but I'm not familiar with how Numpy works with those.
My python version is 2.7.15.
Can anyone help me resolve this? Thanks!
The text was updated successfully, but these errors were encountered:
I finally got the directory tree into the format the
h5tool.py
script was expecting. Now when I try to run it, I get the following error:It seems that
img
object is of type'JpegImageFile'
but I'm not familiar with how Numpy works with those.My python version is 2.7.15.
Can anyone help me resolve this? Thanks!
The text was updated successfully, but these errors were encountered: