I have got an error complaining about type of img which is in the transforms.py:11, and it uses .astype. Apparently it considers img as a numpy array, while I have using a .map function for a tfdataset.
I think it should consider to convert input to an expected array (numpy for example).
Or, even better, it should only use tensorflow functions in order to make it useful for graph mode execution, such as when using .map function.
I have got an error complaining about type of
img
which is in thetransforms.py:11
, and it uses.astype
. Apparently it considersimg
as a numpy array, while I have using a.map
function for a tfdataset.I think it should consider to convert input to an expected array (numpy for example). Or, even better, it should only use tensorflow functions in order to make it useful for graph mode execution, such as when using
.map
function.