Skip to content

Commit

Permalink
fix: Import modules according to TensorFlow versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan committed Jul 31, 2023
1 parent e1b946a commit 65600ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion DECIMER/Efficient_Net_encoder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# EfficientNet-V2 config
import tensorflow as tf
import DECIMER.efficientnetv2 as efficientnetv2
import efficientnetv2
from efficientnetv2 import effnetv2_model
from efficientnetv2 import effnetv2_configs

BATCH_SIZE_DEBUG = 2
MODEL = "efficientnetv2-m" # @param
Expand Down
6 changes: 5 additions & 1 deletion DECIMER/Predictor_usingCheckpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import pystow
from selfies import decoder
import Transformer_decoder
import Efficient_Net_encoder

if int(tf.__version__.split(".")[1]) <= 10:
import Efficient_Net_encoder
else:
raise ImportError("Please use tensorflow 2.10 when working with the checkpoints.")
import config
import utils

Expand Down

0 comments on commit 65600ff

Please sign in to comment.