-
Notifications
You must be signed in to change notification settings - Fork 69
/
tfkeras.py
19 lines (15 loc) · 845 Bytes
/
tfkeras.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Source Code from Keras EfficientDet implementation (https://github.com/xuannianz/EfficientDet) licensed under the Apache License, Version 2.0
"""
from utils import inject_tfkeras_modules, init_tfkeras_custom_objects
import efficientnet as model
EfficientNetB0 = inject_tfkeras_modules(model.EfficientNetB0)
EfficientNetB1 = inject_tfkeras_modules(model.EfficientNetB1)
EfficientNetB2 = inject_tfkeras_modules(model.EfficientNetB2)
EfficientNetB3 = inject_tfkeras_modules(model.EfficientNetB3)
EfficientNetB4 = inject_tfkeras_modules(model.EfficientNetB4)
EfficientNetB5 = inject_tfkeras_modules(model.EfficientNetB5)
EfficientNetB6 = inject_tfkeras_modules(model.EfficientNetB6)
EfficientNetB7 = inject_tfkeras_modules(model.EfficientNetB7)
preprocess_input = inject_tfkeras_modules(model.preprocess_input)
init_tfkeras_custom_objects()