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
Hi,
when running with the command
python main.py --cfg cfg/bird_cycle.yaml --gpu 0the function crashes onPIL_att = Image.fromarray(np.uint8(one_map)).This is the error:
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