tensorflow / hub

A library for transfer learning by reusing parts of TensorFlow models.
https://tensorflow.org/hub
Apache License 2.0
3.48k stars 1.66k forks source link

made_image_classifier.py Blows Up #815

Closed LlewWilliams closed 3 years ago

LlewWilliams commented 3 years ago

Error - - 'range_iterator' object has no attribute 'throw'

pindinagesh commented 3 years ago

@LlewWilliams

Could you please gives us a minimal code for us to reproduce this issue. Thanks!

LlewWilliams commented 3 years ago

Thanks for your quick reply. I'm traveling today. I will send me code on Monday Llew

On Thu, Oct 21, 2021, 7:34 AM pindinagesh @.***> wrote:

@LlewWilliams https://github.com/LlewWilliams

Could you please gives us a minimal code for us to reproduce this issue. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/hub/issues/815#issuecomment-948522876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWEV3VOGTXQWDKVVRTPLZMTUH73GBANCNFSM5GMNTICQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LlewWilliams commented 3 years ago

Running in a conda environment:

Commandline: make_image_classifier --image_dir='G:/.shortcut-targets-by-id/1-LPVgtHPHyySgP5XfiBNrXoO5fnDTobv/SharedWithGanga/Code/Python/CodeFromDBuscombe/seabright/flower_photos/flower_photos' --tfhub_module=https://tfhub.dev/google/tf2-preview/mobilenet_v2/feature_vector/4 --image_size=224 --saved_model_dir='G:/My Drive/SharedWithGanga/Code/Python/CodeFromDBuscombe/seabright/saved_model' --labels_output_file class_labels.txt --summaries_dir='G:/.shortcut-targets-by-id/1-LPVgtHPHyySgP5XfiBNrXoO5fnDTobv/SharedWithGanga/Code/Python/CodeFromDBuscombe/seabright/summaries'

pindinagesh commented 3 years ago

@LlewWilliams

Can you please provide us your colab gist, it would be very help for us to understand this problem. Thanks

LlewWilliams commented 3 years ago

Thank you for inspiring me to work in colab. I was successful in getting it to run there. Thanks for your help