qubvel / efficientnet

Implementation of EfficientNet model. Keras and TensorFlow Keras.
https://arxiv.org/abs/1905.11946
Apache License 2.0
2.07k stars 471 forks source link

Import Error #118

Open Ashneo07 opened 4 years ago

Ashneo07 commented 4 years ago

ImportError Traceback (most recent call last)

in 6 from kaggle_datasets import KaggleDatasets 7 import matplotlib.pyplot as plt ----> 8 import efficientnet.tfkeras as efn /opt/conda/lib/python3.7/site-packages/efficientnet/tfkeras.py in ----> 1 from . import inject_tfkeras_modules, init_tfkeras_custom_objects 2 from . import model 3 4 from .preprocessing import center_crop_and_resize 5 ImportError: cannot import name 'inject_tfkeras_modules' from 'efficientnet' (/opt/conda/lib/python3.7/site-packages/efficientnet/__init__.py)
mohammedessamtga commented 4 years ago

try !pip install tensorflow==2.1.0 before import efficient net