File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
from .preprocessing import center_crop_and_resize
5
5
6
+ EfficientNetBn = inject_keras_modules (model .EfficientNetBn )
6
7
EfficientNetB0 = inject_keras_modules (model .EfficientNetB0 )
7
8
EfficientNetB1 = inject_keras_modules (model .EfficientNetB1 )
8
9
EfficientNetB2 = inject_keras_modules (model .EfficientNetB2 )
Original file line number Diff line number Diff line change @@ -473,6 +473,19 @@ def EfficientNet(width_coefficient,
473
473
return model
474
474
475
475
476
+ def EfficientNetBn (n , * args , ** kwargs ):
477
+ return [
478
+ EfficientNetB0 ,
479
+ EfficientNetB1 ,
480
+ EfficientNetB2 ,
481
+ EfficientNetB3 ,
482
+ EfficientNetB4 ,
483
+ EfficientNetB5 ,
484
+ EfficientNetB6 ,
485
+ EfficientNetB7 ,
486
+ ][n ](* args , ** kwargs )
487
+
488
+
476
489
def EfficientNetB0 (include_top = True ,
477
490
weights = 'imagenet' ,
478
491
input_tensor = None ,
Original file line number Diff line number Diff line change 3
3
4
4
from .preprocessing import center_crop_and_resize
5
5
6
+ EfficientNetBn = inject_tfkeras_modules (model .EfficientNetBn )
6
7
EfficientNetB0 = inject_tfkeras_modules (model .EfficientNetB0 )
7
8
EfficientNetB1 = inject_tfkeras_modules (model .EfficientNetB1 )
8
9
EfficientNetB2 = inject_tfkeras_modules (model .EfficientNetB2 )
You can’t perform that action at this time.
0 commit comments