keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 910 forks source link

Fix tensor error in mobilenet_v2 preprocess_input #61

Closed Jasonnor closed 5 years ago

Jasonnor commented 5 years ago

Fix error while calling mobilenet_v2.preprocess_input(tensor):

AttributeError: 'Tensor' object has no attribute 'astype'
taehoonlee commented 5 years ago

The issue needs to be addressed with the standard preprocess_input, and has been resolved in this commit. Thank you for the PR, @Jasonnor.