calmiLovesAI / Basic_CNNs_TensorFlow2

A tensorflow2 implementation of some basic CNNs(MobileNetV1/V2/V3, EfficientNet, ResNeXt, InceptionV4, InceptionResNetV1/V2, SENet, SqueezeNet, DenseNet, ShuffleNetV2, ResNet).
MIT License
524 stars 178 forks source link

I got this error when I run evaluate.py? #5

Closed angryhen closed 4 years ago

angryhen commented 4 years ago

I'm sure that the model had been save by train.py.

` /home/du/Desk/my_project/Basic_CNNs_TensorFlow2/evaluate.py:28 test_step * predictions = model(images, training=False)

TypeError: '_UserObject' object is not callable

`

calmiLovesAI commented 4 years ago

This might be the bug of tensorflow2.0.0, you can just only save and load weights instead of the whole model.