0

I try to use EfficientNet-Lite4 on google colab with tensorflow Lite but i have an error name 'efficienetnet_lite4_spec' is not defined What should I do? Or does it only work with EfficientNet-Lite0? enter image description here

zeewa42
  • 25
  • 4
  • 1
    change `efficienetnet_lite4_spec` to `efficientnet_lite4_spec`. – RJ Adriaansen Sep 17 '21 at 18:11
  • @RJAdriaansen thank you so much, I have tried following your suggestion by changing to `model_spec = model_spec.get('efficientnet_lite4')` and it worked. – zeewa42 Sep 18 '21 at 07:03

1 Answers1

0

From comments

Code change from

model = image_classifier.create(train_data, model_spec=efficienetnet_lite4_spec,validation_data=validation_data,epochs=300)

to

model = image_classifier.create(train_data, model_spec=model_spec.get('efficientnet_lite4'),validation_data=validation_data,epochs=300)

has resolved the issue (paraphrased from RJ Adriaansen & zeewa42)