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

"Error: Cannot Handle Data Type: (1, 1, 3), <f4" #79

Closed
mithunparab opened this issue May 23, 2023 · 1 comment
Closed

"Error: Cannot Handle Data Type: (1, 1, 3), <f4" #79

mithunparab opened this issue May 23, 2023 · 1 comment

Comments

@mithunparab
Copy link

python render_360.py --scene_dir ./data/bike --weights_path ./out/bike_human/checkpoint.pth.tar --mode canonical_360
Traceback (most recent call last):
  File "/home/dtfrezer/miniconda3/envs/neuman_env/lib/python3.7/site-packages/PIL/Image.py", line 3089, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f4')

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

Traceback (most recent call last):
  File "render_360.py", line 162, in <module>
    main_canonical_360(opt)
  File "render_360.py", line 80, in main_canonical_360
    imageio.imsave(save_path, out)
  File "/home/dtfrezer/miniconda3/envs/neuman_env/lib/python3.7/site-packages/imageio/v2.py", line 386, in imwrite
    return file.write(im, **kwargs)
  File "/home/dtfrezer/miniconda3/envs/neuman_env/lib/python3.7/site-packages/imageio/plugins/pillow.py", line 387, in write
    pil_frame = Image.fromarray(frame, mode=mode)
  File "/home/dtfrezer/miniconda3/envs/neuman_env/lib/python3.7/site-packages/PIL/Image.py", line 3092, in fromarray
    raise TypeError(msg) from e
TypeError: Cannot handle this data type: (1, 1, 3), <f4
@mithunparab
Copy link
Author

Fix #80

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

1 participant