Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Sep 21, 2022
1 parent cf8470e commit b84892f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctr/models/recognition/vitstr/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def vitstr_small(pretrained: bool = False, **kwargs: Any) -> ViTSTR:
"""ViTSTR-Small as described in `"Vision Transformer for Fast and Efficient Scene Text Recognition"
<https://arxiv.org/pdf/2105.08582.pdf>`_.
>>> import tf
>>> import tensorflow as tf
>>> from doctr.models import vitstr_small
>>> model = vitstr_small(pretrained=False)
>>> input_tensor = tf.random.uniform(shape=[1, 32, 128, 3], maxval=1, dtype=tf.float32)
Expand All @@ -249,7 +249,7 @@ def vitstr_base(pretrained: bool = False, **kwargs: Any) -> ViTSTR:
"""ViTSTR-Base as described in `"Vision Transformer for Fast and Efficient Scene Text Recognition"
<https://arxiv.org/pdf/2105.08582.pdf>`_.
>>> import tf
>>> import tensorflow as tf
>>> from doctr.models import vitstr_base
>>> model = vitstr_base(pretrained=False)
>>> input_tensor = tf.random.uniform(shape=[1, 32, 128, 3], maxval=1, dtype=tf.float32)
Expand Down

0 comments on commit b84892f

Please sign in to comment.