MCPcopy Create free account

hub / github.com/PellelNitram/xournalpp_htr / functions

Functions308 in github.com/PellelNitram/xournalpp_htr

↓ 1 callersFunctionautoLoad
(fileName)
tools/data_annotation_tool/storage.js:42
↓ 1 callersFunctionautoSave
(fileName, state)
tools/data_annotation_tool/storage.js:32
↓ 1 callersFunctionbuild_charset
(texts: List[str])
xournalpp_htr/training/simple_htr/dataset.py:24
↓ 1 callersFunctionbuild_config
(charset: list[str], model_cfg: ModelConfig)
xournalpp_htr/training/simple_htr/export.py:28
↓ 1 callersFunctionbuild_config
Pre/post-processing parameters stored alongside ``model.onnx``.
xournalpp_htr/training/word_detector/export.py:49
↓ 1 callersFunctionbuild_demo
(model_path: Path, device_selection: str)
xournalpp_htr/training/simple_htr/demo.py:50
↓ 1 callersFunctionbuild_demo
(model_path: Path, device_selection: str)
xournalpp_htr/training/word_detector/demo.py:22
↓ 1 callersFunctioncancel
()
tools/data_annotation_tool/app.js:871
↓ 1 callersFunctioncheckCompleteness
()
tools/data_annotation_tool/app.js:318
↓ 1 callersFunctioncheckTextPresence
()
tools/data_annotation_tool/app.js:334
↓ 1 callersMethodcheck_if_bounding_boxes_overlap
TODO raises an error if they overlap b/c that is not allowed as it's not possible in a document that I consider here. TODO:
xournalpp_htr/training/data/datasets.py:609
↓ 1 callersMethodcheck_if_data_exceeds_page
Check if the stroke data exceeds the page boundaries. This method verifies if any stroke data within a page exceeds the spec
xournalpp_htr/training/data/datasets.py:680
↓ 1 callersFunctionclassDisplayName
(name)
tools/data_annotation_tool/app.js:30
↓ 1 callersFunctioncommit
()
tools/data_annotation_tool/app.js:859
↓ 1 callersFunctioncomputeSha256
(buffer)
tools/data_annotation_tool/parser.js:28
↓ 1 callersFunctioncompute_cer
Character Error Rate via edit distance.
xournalpp_htr/training/simple_htr/train.py:54
↓ 1 callersFunctioncompute_dist_mat
Jaccard distance matrix of all pairs of aabbs.
xournalpp_htr/training/shared/postprocessing.py:115
↓ 1 callersFunctioncompute_dist_mat_2
Jaccard distance matrix of all pairs from ``aabbs1`` and ``aabbs2``.
xournalpp_htr/training/shared/postprocessing.py:151
↓ 1 callersFunctioncompute_scale_down
Compute the network scale-down factor from input and output size.
xournalpp_htr/training/shared/postprocessing.py:31
↓ 1 callersMethodcompute_segmentation_masks
Adjusts the bounding box coordinates based on input x and y coordinate arrays. This method updates the bounding box defined by `(x0,
xournalpp_htr/training/data/datasets.py:513
↓ 1 callersFunctioncountClassAnnotations
(className)
tools/data_annotation_tool/app.js:639
↓ 1 callersFunctiondecompressGzip
(buffer)
tools/data_annotation_tool/parser.js:34
↓ 1 callersFunctiondeleteAnnotation
(id)
tools/data_annotation_tool/app.js:885
↓ 1 callersMethoddrawStroke
(stroke, color, lineWidth, isSelected)
tools/data_annotation_tool/renderer.js:146
↓ 1 callersFunctionencode
(input_size: ImageDimensions, output_size: ImageDimensions, gt)
xournalpp_htr/training/word_detector/dataset.py:29
↓ 1 callersFunctionencode_text
(text: str, char_to_idx: dict)
xournalpp_htr/training/simple_htr/dataset.py:28
↓ 1 callersMethodenlarge
(self, margin_x: float, margin_y: float)
xournalpp_htr/training/shared/bounding_box.py:99
↓ 1 callersFunctionexport
Export ``checkpoint`` to ``output_dir`` as ``model.onnx`` + ``config.json``.
xournalpp_htr/training/word_detector/export.py:82
↓ 1 callersFunctionexportJSON
(fileName, state)
tools/data_annotation_tool/storage.js:205
↓ 1 callersFunctionextractDocument
(doc)
tools/data_annotation_tool/parser.js:59
↓ 1 callersFunctionfg_by_threshold
All pixels above threshold are fg pixels, optionally capped.
xournalpp_htr/training/shared/postprocessing.py:46
↓ 1 callersMethodfitToView
(pageWidth, pageHeight)
tools/data_annotation_tool/renderer.js:24
↓ 1 callersMethodfrom_pretrained
(cls, revision: str = "main")
tests/test_inference_models.py:55
↓ 1 callersFunctiongenerateId
()
tools/data_annotation_tool/storage.js:323
↓ 1 callersFunctiongenerateId
()
tools/data_annotation_tool/app.js:926
↓ 1 callersFunctiongetAnnotatorId
()
tools/data_annotation_tool/storage.js:18
↓ 1 callersMethodgetZoomPercent
()
tools/data_annotation_tool/renderer.js:35
↓ 1 callersFunctionget_dataloaders
( data_path: Path | None, percent_train_data: int, batch_size: int, shuffle_data_loader: bool,
xournalpp_htr/training/simple_htr/train.py:72
↓ 1 callersFunctionget_dataloaders
( data_path: Path, percent_train_data: int, batch_size: int, shuffle_data_loader: bool, nu
xournalpp_htr/training/word_detector/train.py:65
↓ 1 callersFunctionget_example_list
Return the bundled example-image URLs that are still reachable.
xournalpp_htr/training/word_detector/utils.py:55
↓ 1 callersFunctionget_git_commit_hash
Return the current Git commit hash, or ``"-1"`` if unavailable.
xournalpp_htr/training/simple_htr/utils.py:30
↓ 1 callersFunctionget_git_commit_hash
Return the current Git commit hash, or ``"-1"`` if unavailable.
xournalpp_htr/training/word_detector/utils.py:33
↓ 1 callersMethodget_min_max_coordinates_per_page
Compute the minimum and maximum x and y coordinate values for each page. This method iterates over all pages, and for each page, com
xournalpp_htr/documents.py:90
↓ 1 callersFunctionget_temporary_filename
Generates and returns a temporary PDF file name. This function creates a named temporary file in `/tmp` using `tempfile.NamedTemporaryFile`
xournalpp_htr/xio.py:104
↓ 1 callersFunctioninit
()
tools/data_annotation_tool/app.js:122
↓ 1 callersFunctionloadGroundTruth
(file, expectedSha256, pages)
tools/data_annotation_tool/storage.js:293
↓ 1 callersFunctionload_IAM_OnDB_dataset
Return path to the IAM-OnDB dataset, downloading from HuggingFace Hub if needed. Requires a valid HuggingFace token with access to the private re
xournalpp_htr/xio.py:144
↓ 1 callersMethodload_IAM_OnDB_sample
Load IAM On-DB data sample. With sample consisting of time series and text line as ground truth. :param sample: Sample code
xournalpp_htr/training/data/datasets.py:99
↓ 1 callersMethodload_IAM_OnDB_text_line
Load text line of IAM OnDB sample. :param path: Path to lines file. :param line_nr: Number of line to extract. This is a 0-i
xournalpp_htr/training/data/datasets.py:76
↓ 1 callersMethodload_data
Loads data of document. Data comprises of stroke data on layers and pages as well as DPI.
xournalpp_htr/documents.py:45
↓ 1 callersMethodload_data
Returns IAM-OnDB data. In `__init__`, it is saved as `self.data`. Loading is performed by parsing the XML files and reading
xournalpp_htr/training/data/datasets.py:243
↓ 1 callersMethodload_df_iam_ondb
Load IAM OnDB strokes file as pd.DataFrame. Does not read any meta data. :param path: The path to the XML strokes file.
xournalpp_htr/training/data/datasets.py:41
↓ 1 callersFunctionmain
(args)
xournalpp_htr/demo_concept_1.py:29
↓ 1 callersFunctionmain
(cfg: SimpleHTRConfig)
xournalpp_htr/training/simple_htr/train.py:277
↓ 1 callersFunctionmain
()
xournalpp_htr/training/simple_htr/export.py:95
↓ 1 callersFunctionmain
()
xournalpp_htr/training/simple_htr/demo.py:121
↓ 1 callersFunctionmain
(cfg: WordDetectorConfig)
xournalpp_htr/training/word_detector/train.py:305
↓ 1 callersFunctionmain
()
xournalpp_htr/training/word_detector/export.py:136
↓ 1 callersFunctionmain
()
xournalpp_htr/training/word_detector/demo.py:76
↓ 1 callersFunctiononMouseDown
(e)
tools/data_annotation_tool/app.js:415
↓ 1 callersMethodoutput_activation
(self, x, apply_softmax)
xournalpp_htr/training/word_detector/network.py:100
↓ 1 callersMethodpan
(dx, dy)
tools/data_annotation_tool/renderer.js:50
↓ 1 callersFunctionparseFile
(file)
tools/data_annotation_tool/parser.js:3
↓ 1 callersFunctionparseStroke
(strokeEl, globalIndex, layerIndex, indexInLayer)
tools/data_annotation_tool/parser.js:100
↓ 1 callersFunctionparse_arguments
Parse arguments from command line.
xournalpp_htr/demo_concept_1.py:11
↓ 1 callersFunctionparse_arguments
Parse arguments from command line.
scripts/run_benchmark.py:9
↓ 1 callersMethodplot_sample_to_image_file
Plot sample data to image file. Helpful for debugging. It uses the `__getitem__` function and thereby applies transforms. :param sam
xournalpp_htr/training/data/datasets.py:314
↓ 1 callersFunctionpointToSegmentDist
(px, py, ax, ay, bx, by)
tools/data_annotation_tool/renderer.js:229
↓ 1 callersFunctionprocess_image
(image: np.ndarray)
xournalpp_htr/training/simple_htr/demo.py:51
↓ 1 callersMethodrender
(strokes, annotations, selectedIndices, highlightedAnnotationId, classes, selectionRect)
tools/data_annotation_tool/renderer.js:71
↓ 1 callersFunctionresolveColor
(colorAttr)
tools/data_annotation_tool/parser.js:140
↓ 1 callersFunctionrun_benchmark
(pipeline_name: str)
xournalpp_htr/benchmark.py:119
↓ 1 callersFunctionrun_image_through_network
( image_grayscale: np.ndarray, model_path: Path = Path("best_model.pth"), device: str = "auto", )
xournalpp_htr/training/simple_htr/infer.py:26
↓ 1 callersFunctionrun_image_through_network
( image_grayscale: np.ndarray, model_path: Path = Path("best_model.pth"), device: str = "auto", )
xournalpp_htr/training/word_detector/infer.py:29
↓ 1 callersFunctionseed_everything
(numpy_seed=42, torch_seed=1234, random_seed=7)
xournalpp_htr/training/simple_htr/train.py:41
↓ 1 callersFunctionseed_everything
(numpy_seed=42, torch_seed=1234, random_seed=7)
xournalpp_htr/training/word_detector/train.py:52
↓ 1 callersFunctionstartInlineEdit
(spanEl, ann)
tools/data_annotation_tool/app.js:848
↓ 1 callersFunctionstore_predictions_as_images
( output_directory: Path, predictions: dict[PageIndex, list[WordPrediction]], document, )
xournalpp_htr/models.py:162
↓ 1 callersMethodstrokesInRect
(strokes, rectScreen)
tools/data_annotation_tool/renderer.js:204
↓ 1 callersFunctiontrain
(net, optimizer, loader, writer, device, global_step)
xournalpp_htr/training/word_detector/train.py:208
↓ 1 callersFunctiontrain_epoch
(net, optimizer, loader, writer, device, global_step, charset)
xournalpp_htr/training/simple_htr/train.py:177
↓ 1 callersFunctiontrain_network
( output_path: Path, device: str, cfg: SimpleHTRConfig, dataloader_train, dataloader_val,
xournalpp_htr/training/simple_htr/train.py:198
↓ 1 callersFunctiontrain_network
( output_path: Path, device: str, cfg: WordDetectorConfig, dataloader_train, dataloader_va
xournalpp_htr/training/word_detector/train.py:226
↓ 1 callersFunctionunassignSelected
()
tools/data_annotation_tool/app.js:740
↓ 1 callersFunctionundo
()
tools/data_annotation_tool/app.js:68
↓ 1 callersFunctionupload_to_hub
Upload ``model.onnx`` + ``config.json`` to HF Hub (ADR 006 section 1).
xournalpp_htr/training/simple_htr/export.py:80
↓ 1 callersFunctionupload_to_hub
Upload ``model.onnx`` + ``config.json`` to HF Hub (ADR 006 section 1). Requires HF authentication (``huggingface-cli login`` or ``HF_TOKEN``) and
xournalpp_htr/training/word_detector/export.py:117
↓ 1 callersFunctionurl_exists
Check if a URL exists using a HEAD request.
xournalpp_htr/training/word_detector/utils.py:44
↓ 1 callersFunctionvalidate
(net, dataloader_val, writer, device, global_step, charset)
xournalpp_htr/training/simple_htr/train.py:140
↓ 1 callersFunctionvalidate
( net, dataloader_val, writer, device, input_size, output_size, global_step, c
xournalpp_htr/training/word_detector/train.py:155
Method__getitem__
(self, idx: int)
xournalpp_htr/training/simple_htr/dataset.py:247
Method__getitem__
(self, idx: int)
xournalpp_htr/training/word_detector/dataset.py:297
Method__getitem__
(self, idx)
xournalpp_htr/training/data/datasets.py:306
Method__getitem__
TODO. TODO: Idea behind logic: - once accessed, the page is rendered and saved in output folder (which is specified to constructor)
xournalpp_htr/training/data/datasets.py:578
Method__init__
(self, path: Path)
xournalpp_htr/documents.py:38
Method__init__
(self, revision: str)
xournalpp_htr/inference_models.py:43
Method__init__
(self, session: ort.InferenceSession, config: dict, revision: str)
xournalpp_htr/inference_models.py:69
Method__init__
(self, num_classes: int, cfg: ModelConfig | None = None)
xournalpp_htr/training/simple_htr/network.py:21
Method__init__
( self, target_height: int, target_width: int, root_dir: Path | None = None,
xournalpp_htr/training/simple_htr/dataset.py:128
Method__init__
(self, **kwargs)
xournalpp_htr/training/word_detector/network.py:25
← previousnext →101–200 of 308, ranked by callers