Error : 'list' object has no attribute 'shape'

When returning images and labels from parse_data_from_input, type is still a list despite converting to an ndarray.

[code removed - moderator]

Return value of np.asarray should be assigned to images. The function doesn’t modify caller arguments.

1 Like