Install & Compatibility
Where this runs
tested against v1.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✓ 10.5s
py 3.9
✕ build_error
✓ 11.7s
324MB installed
● package 324MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
EfficientNetB0
✓ from efficientnet import inject_keras_modules
✗ from efficientnet import EfficientNetB0
Load an EfficientNetB0 model with ImageNet weights and run a prediction.
from efficientnet import EfficientNetB0
from tensorflow.keras.applications.imagenet_utils import decode_predictions
import numpy as np
# Load model with pretrained weights
model = EfficientNetB0(weights='imagenet')
# Create a dummy image (224x224)
dummy = np.random.rand(1, 224, 224, 3).astype(np.float32)
# Predict
preds = model.predict(dummy)
print(decode_predictions(preds, top=3)[0])
Upgrade
Version history
1.1.1latest on PyPI · released Sep 15, 2020
Audit
Dependencies
kerasrequiredCore dependency for model implementation.
tensorflowoptionalRequired for tf.keras backend.