CIHP_PGN icon indicating copy to clipboard operation
CIHP_PGN copied to clipboard

error: imgradientxy: IMG must be a gray-scale image

Open Deniz97 opened this issue 5 years ago • 1 comments

Hello, thanks for the code and the paper.

When i run generate_instance_part.m (after running generate_instance_human for all images) on some of the images I get the error:

error: imgradientxy: IMG must be a gray-scale image

Interestingly, the order of the images are important in val_id.txt. For example, an image x may throw and error when it is 5th in val_id.txt, but NOT throw an error and succesfully processed when it is 3rd. And vice versa.

On what image and at how manyth the error would throw seems random, but never exceeds 5.

I use octave version 4.2.2 and Image package version 2.8.0 on Ubuntu 16.04.

Did you encounter any similiar problem?

Deniz97 avatar Oct 09 '18 12:10 Deniz97

We didn't have this problem. Maybe you can check the format again? We use MATLAB R2016a on Ubuntu 16.04

Engineering-Course avatar Oct 15 '18 01:10 Engineering-Course