Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Apr 11, 2024
1 parent 3c46181 commit 21c5005
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doctr/models/recognition/crnn/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,13 @@ def __init__(
top_paths: int = 1,
cfg: Optional[Dict[str, Any]] = None,
) -> None:
# Initialize kernels
h, w, c = feature_extractor.output_shape[1:]

super().__init__()
self.feat_extractor = feature_extractor
h, w, c = feature_extractor.output_shape[1:]
self.vocab = vocab
self.max_length = w
self.cfg = cfg
self.exportable = exportable
self.feat_extractor = feature_extractor

self.decoder = Sequential([
layers.Bidirectional(layers.LSTM(units=rnn_units, return_sequences=True)),
Expand Down

0 comments on commit 21c5005

Please sign in to comment.