-
Notifications
You must be signed in to change notification settings - Fork 30
Troubleshooting
ProGamerGov edited this page Mar 3, 2017
·
8 revisions
This issue can often occur on Amazon Web Services (AWS), and can be solved by using chmod like this:
chmod u+x ./lum-transfer.py
chmod u+x ./linear-color-transfer.py
The image specified for the --target_image parameter, is not in the RGB color space:
Traceback (most recent call last):
File "linear-color-transfer.py", line 67, in <module>
output_img = match_color(target_img, source_img, mode=transfer_mode, eps=float(eps_value))
File "linear-color-transfer.py", line 38, in match_color
t = t.transpose(2,0,1).reshape(3,-1)
ValueError: total size of new array must be unchanged
The image specified for the --source_image parameter, is not in the RGB color space:
Traceback (most recent call last):
File "linear-color-transfer.py", line 67, in <module>
output_img = match_color(target_img, source_img, mode=transfer_mode, eps=float(eps_value))
File "linear-color-transfer.py", line 42, in match_color
s = s.transpose(2,0,1).reshape(3,-1)
ValueError: total size of new array must be unchanged
To fix either of these two issues, one can use ImageMagick like this:
convert problem_image.png -colorspace rgb fixed_image.png
Or you can use different software to change the problem image's color space.