efficientnet
efficientnet copied to clipboard
Failed to convert TF to Keras (No module named 'condconv')
Hi @qubvel, thank you so much for sharing this awesome tool!
While I was running ./scripts/convert_from_tf_to_keras.sh
, attempting to convert the TF model into Keras, I encountered the following error:
==============================================
= .......................................... =
= Setting up the installation environment... =
= .......................................... =
==============================================
==========================================
= ...................................... =
= Converting the checkpoints to Keras... =
= ...................................... =
==========================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ ............................. ~
~ Converting efficientnet-b0... ~
~ ............................. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using TensorFlow backend.
Traceback (most recent call last):
File "/Users/yunseong/repos/ai/qubvel-efficientnet/scripts/load_efficientnet.py", line 155, in <module>
import eval_ckpt_main
File "tf_src/eval_ckpt_main.py", line 31, in <module>
import efficientnet_builder
File "tf_src/efficientnet_builder.py", line 28, in <module>
import efficientnet_model
File "tf_src/efficientnet_model.py", line 37, in <module>
from condconv import condconv_layers
ModuleNotFoundError: No module named 'condconv'
Do you have any clue how I can fix this issue?
I met the same problem, I guess you'd better download the tensorflow code from https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet.