Skip to content

Commit

Permalink
fix: revert to original way of importing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan committed Jul 31, 2023
1 parent 758a0f4 commit 7af54c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DECIMER/Efficient_Net_encoder.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# EfficientNet-V2 config
import tensorflow as tf
import DECIMER.efficientnetv2 as efficientnetv2
from DECIMER.efficientnetv2 import effnetv2_model

BATCH_SIZE_DEBUG = 2
MODEL = "efficientnetv2-m" # @param
Expand All @@ -17,7 +16,7 @@ def get_efficientnetv2_backbone(
"\n...At this time we only want to use the raw "
"(no pretraining), headless, features with no pooling ...\n"
)
backbone = effnetv2_model.EffNetV2Model(model_name=model_name)
backbone = efficientnetv2.effnetv2_model.EffNetV2Model(model_name=model_name)
backbone(
tf.ones((BATCH_SIZE_DEBUG, *input_shape)), training=False, features_only=True
)
Expand Down

0 comments on commit 7af54c9

Please sign in to comment.