Create reader for image
Created by: SaviorD7
Hello everyone!
I want to read this image dataset : click So structure is : chest_xray/test/ PNEUMONIA or NORMAL /train etc I made this reader: click It gives me this result:
(array([[0, 0, 5, ..., 0, 0, 0],
[0, 0, 3, ..., 0, 0, 0],
[0, 0, 1, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=uint8), 0), (array([[ 51, 44, 44, ..., 71, 64, 65],
[ 45, 46, 47, ..., 77, 73, 102],
[ 30, 41, 53, ..., 72, 87, 86],
...,
[ 17, 17, 13, ..., 182, 204, 207],
[ 16, 14, 10, ..., 190, 205, 203],
[ 16, 16, 12, ..., 192, 204, 209]], dtype=uint8), 0)
When I am trying to feed my model it does not work. How can I reapair it ? I am sure that I am not right in making reader, but whats wrong?