MCPcopy Create free account

hub / github.com/mindee/doctr / functions

Functions871 in github.com/mindee/doctr

Method_read_sample
(self, index: int)
doctr/datasets/generator/base.py:145
Method_read_sample
(self, index: int)
doctr/datasets/datasets/pytorch.py:23
Function_transform
(img, target)
scripts/evaluate_kie.py:30
Function_transform
(img, target)
scripts/evaluate.py:30
Function_vip_global_mha_mixer
Builds a VIPBlock performing global multi-head self-attention. Args: embed_dim: embedding dimension. depth: number of attention b
doctr/models/classification/vip/pytorch.py:385
Function_vip_local_mixer
Builds a VIPBlock performing local (cross-shaped) window attention. Args: embed_dim: embedding dimension. depth: number of attent
doctr/models/classification/vip/pytorch.py:341
Function_vip_mixed_mixer
Builds a VIPBlock performing mixed local+global attention. Args: embed_dim: embedding dimension. depth: number of attention block
doctr/models/classification/vip/pytorch.py:433
Functionadd_ga_javascript
(app, pagename, templatename, context, doctree)
docs/source/conf.py:123
Functionadd_process_time_header
(request: Request, call_next)
api/app/main.py:26
Functionbbox_to_polygon
Convert a bounding box to a polygon Args: bbox: a bounding box Returns: a polygon
doctr/utils/geometry.py:32
Methodbitmap_to_boxes
Compute boxes from a bitmap/pred_map: find connected components then filter boxes Args: pred: Pred map from differentiable linkne
doctr/models/detection/linknet/base.py:84
Methodbitmap_to_boxes
Compute boxes from a bitmap/pred_map: find connected components then filter boxes Args: pred: Pred map from differentiable linkne
doctr/models/detection/fast/base.py:84
Methodbitmap_to_boxes
Compute boxes from a bitmap/pred_map: find connected components then filter boxes Args: pred: Pred map from differentiable binari
doctr/models/detection/differentiable_binarization/base.py:86
Methodbuild_target
Encode a list of gts sequences into a np array and gives the corresponding* sequence lengths. Args: gts: list of ground-t
doctr/models/recognition/core.py:21
Functionc
()
docs/source/_static/js/custom.js:94
Methodclass_names
(self)
doctr/datasets/detection.py:94
Methodcollate_fn
(samples: list[tuple[torch.Tensor, Any]])
doctr/datasets/datasets/pytorch.py:51
Functionconvert_target_to_relative
Converts target to relative coordinates Args: img: tf.Tensor or torch.Tensor representing the image target: target to convert to
doctr/datasets/utils.py:173
Functioncrnn_mobilenet_v3_large
CRNN with a MobileNet V3 Large backbone as described in `"An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Appl
doctr/models/recognition/crnn/pytorch.py:317
Functioncrnn_mobilenet_v3_small
CRNN with a MobileNet V3 Small backbone as described in `"An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Appl
doctr/models/recognition/crnn/pytorch.py:291
Functioncrnn_vgg16_bn
CRNN with a VGG-16 backbone as described in `"An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to S
doctr/models/recognition/crnn/pytorch.py:271
Functioncustom_openapi
()
api/app/main.py:35
Functiond
()
docs/source/_static/js/custom.js:94
Functiondb_mobilenet_v3_large
DBNet as described in `"Real-time Scene Text Detection with Differentiable Binarization" <https://arxiv.org/pdf/1911.08947.pdf>`_, using a MobileN
doctr/models/detection/differentiable_binarization/pytorch.py:411
Functiondb_resnet34
DBNet as described in `"Real-time Scene Text Detection with Differentiable Binarization" <https://arxiv.org/pdf/1911.08947.pdf>`_, using a ResNet-
doctr/models/detection/differentiable_binarization/pytorch.py:345
Functiondb_resnet50
DBNet as described in `"Real-time Scene Text Detection with Differentiable Binarization" <https://arxiv.org/pdf/1911.08947.pdf>`_, using a ResNet-
doctr/models/detection/differentiable_binarization/pytorch.py:378
Functiondraw_boxes
Draw an array of relative straight boxes on an image Args: boxes: array of relative boxes, of shape (*, 4) image: np array, float
doctr/utils/visualization.py:354
Functionencode_string
Given a predefined mapping, encode the string to a sequence of numbers Args: input_string: string to encode vocab: vocabulary (st
doctr/datasets/utils.py:69
Methodextra_repr
(self)
doctr/io/elements.py:100
Methodextra_repr
(self)
doctr/io/elements.py:132
Methodextra_repr
(self)
doctr/io/elements.py:194
Methodextra_repr
(self)
doctr/io/elements.py:287
Methodextra_repr
(self)
doctr/io/elements.py:465
Methodextra_repr
(self)
doctr/transforms/modules/pytorch.py:152
Methodextra_repr
(self)
doctr/transforms/modules/pytorch.py:254
Methodextra_repr
(self)
doctr/transforms/modules/pytorch.py:308
Methodextra_repr
(self)
doctr/transforms/modules/base.py:89
Methodextra_repr
(self)
doctr/transforms/modules/base.py:141
Methodextra_repr
(self)
doctr/transforms/modules/base.py:165
Methodextra_repr
(self)
doctr/transforms/modules/base.py:188
Methodextra_repr
(self)
doctr/datasets/mjsynth.py:106
Methodextra_repr
(self)
doctr/datasets/svt.py:125
Methodextra_repr
(self)
doctr/datasets/doc_artefacts.py:80
Methodextra_repr
(self)
doctr/datasets/iiithws.py:73
Methodextra_repr
(self)
doctr/datasets/svhn.py:141
Methodextra_repr
(self)
doctr/datasets/cord.py:131
Methodextra_repr
(self)
doctr/datasets/funsd.py:122
Methodextra_repr
(self)
doctr/datasets/ic03.py:134
Methodextra_repr
(self)
doctr/datasets/imgur5k.py:157
Methodextra_repr
(self)
doctr/datasets/coco_text.py:138
Methodextra_repr
(self)
doctr/datasets/synthtext.py:143
Methodextra_repr
(self)
doctr/datasets/iiit5k.py:116
Methodextra_repr
(self)
doctr/datasets/wildreceipt.py:125
Methodextra_repr
(self)
doctr/datasets/sroie.py:113
Methodextra_repr
(self)
doctr/models/builder.py:278
Methodextra_repr
(self)
doctr/models/recognition/core.py:53
Methodextra_repr
(self)
doctr/models/detection/core.py:30
Functionfast_base
FAST as described in `"FAST: Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation" <https://arxiv.org/pdf/2111.02394.pdf>
doctr/models/detection/fast/pytorch.py:420
Functionfast_small
FAST as described in `"FAST: Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation" <https://arxiv.org/pdf/2111.02394.pdf>
doctr/models/detection/fast/pytorch.py:393
Functionfast_tiny
FAST as described in `"FAST: Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation" <https://arxiv.org/pdf/2111.02394.pdf>
doctr/models/detection/fast/pytorch.py:366
Methodforward
( self, img: torch.Tensor, target: np.ndarray | None = None, )
doctr/transforms/modules/pytorch.py:57
Methodforward
(self, x: torch.Tensor)
doctr/transforms/modules/pytorch.py:144
Methodforward
(self, x: torch.Tensor)
doctr/transforms/modules/pytorch.py:171
Methodforward
(self, img: torch.Tensor)
doctr/transforms/modules/pytorch.py:195
Methodforward
(self, img: torch.Tensor | Image, target: np.ndarray)
doctr/transforms/modules/pytorch.py:204
Methodforward
(self, img: torch.Tensor, target: np.ndarray)
doctr/transforms/modules/pytorch.py:289
Methodforward
(self, x: torch.Tensor)
doctr/models/modules/layers/pytorch.py:25
Methodforward
(self, x: torch.Tensor)
doctr/models/modules/layers/pytorch.py:46
Methodforward
(self, x: torch.Tensor)
doctr/models/modules/layers/pytorch.py:128
Methodforward
Forward pass Args: x: embeddings (batch, max_len, d_model) Returns: positional embeddings (batch, max_len, d
doctr/models/modules/transformer/pytorch.py:33
Methodforward
(self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, mask=None)
doctr/models/modules/transformer/pytorch.py:86
Methodforward
(self, x: torch.Tensor, mask: torch.Tensor | None = None)
doctr/models/modules/transformer/pytorch.py:132
Methodforward
( self, tgt: torch.Tensor, memory: torch.Tensor, source_mask: torch.Tensor | N
doctr/models/modules/transformer/pytorch.py:181
Methodforward
(self, x: torch.Tensor)
doctr/models/modules/vision_transformer/pytorch.py:66
Methodforward
(self, x: torch.Tensor)
doctr/models/recognition/sar/pytorch.py:40
Methodforward
( self, features: torch.Tensor, # (N, C, H, W) hidden_state: torch.Tensor, # (N, C)
doctr/models/recognition/sar/pytorch.py:55
Methodforward
( self, features: torch.Tensor, # (N, C, H, W) holistic: torch.Tensor, # (N, C)
doctr/models/recognition/sar/pytorch.py:113
Methodforward
( self, x: torch.Tensor, target: list[str] | None = None, return_model_output:
doctr/models/recognition/sar/pytorch.py:240
Methodforward
(self, x: torch.Tensor)
doctr/models/recognition/parseq/pytorch.py:51
Methodforward
( self, target, content, memory, target_mask: torch.Tensor | None = No
doctr/models/recognition/parseq/pytorch.py:87
Methodforward
( self, x: torch.Tensor, target: list[str] | None = None, return_model_output:
doctr/models/recognition/parseq/pytorch.py:323
Methodforward
( self, crops: Sequence[np.ndarray], **kwargs: Any, )
doctr/models/recognition/predictor/pytorch.py:45
Methodforward
( self, x: torch.Tensor, target: list[str] | None = None, return_model_output:
doctr/models/recognition/crnn/pytorch.py:198
Methodforward
Call function for training Args: x: images target: list of str labels return_model_output: if True, retur
doctr/models/recognition/master/pytorch.py:163
Methodforward
( self, x: torch.Tensor, target: list[str] | None = None, return_model_output:
doctr/models/recognition/viptr/pytorch.py:138
Methodforward
( self, x: torch.Tensor, target: list[str] | None = None, return_model_output:
doctr/models/recognition/vitstr/pytorch.py:86
Methodforward
(self, feats: list[torch.Tensor])
doctr/models/detection/linknet/pytorch.py:78
Methodforward
( self, x: torch.Tensor, target: list[np.ndarray] | None = None, return_model_
doctr/models/detection/linknet/pytorch.py:172
Methodforward
( self, pages: list[np.ndarray], return_maps: bool = False, **kwargs: Any,
doctr/models/detection/predictor/pytorch.py:37
Methodforward
(self, x: torch.Tensor)
doctr/models/detection/fast/pytorch.py:68
Methodforward
( self, x: torch.Tensor, target: list[np.ndarray] | None = None, return_model_
doctr/models/detection/fast/pytorch.py:182
Methodforward
(self, x: list[torch.Tensor])
doctr/models/detection/differentiable_binarization/pytorch.py:80
Methodforward
( self, x: torch.Tensor, target: list[np.ndarray] | None = None, return_model_
doctr/models/detection/differentiable_binarization/pytorch.py:191
Methodforward
( self, pages: list[np.ndarray], **kwargs: Any, )
doctr/models/predictor/pytorch.py:69
Methodforward
(self, x: torch.Tensor)
doctr/models/classification/vit/pytorch.py:56
Methodforward
(self, inputs: torch.Tensor)
doctr/models/classification/magc_resnet/pytorch.py:72
Methodforward
( self, inputs: list[np.ndarray], )
doctr/models/classification/predictor/pytorch.py:36
Methodforward
(self, x: torch.Tensor)
doctr/models/classification/vip/pytorch.py:53
Methodforward
Forward pass for VIPBlock. Args: x: input tensor (B, H, W, C) Returns: Transformed tensor
doctr/models/classification/vip/pytorch.py:87
Methodforward
(self, x: torch.Tensor)
doctr/models/classification/vip/layers/pytorch.py:34
← previousnext →501–600 of 871, ranked by callers