Skip to content

Error in utils.build_super_images #3

@ValerioNeriGit

Description

@ValerioNeriGit

Hi,

when running with the command python main.py --cfg cfg/bird_cycle.yaml --gpu 0 the function crashes on PIL_att = Image.fromarray(np.uint8(one_map)).

This is the error:

 File "/Data/anaconda3/envs/cyclegan-py3/lib/python3.6/site-packages/PIL/Image.py", line 2772, in fromarray
    mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 6), '|u1')

I guess is a problem of dimensions, one_map ha dimension (128, 128, 6) while img has (128, 128, 3).

Any ideas how to solve it?
Thanks

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