forked from rvankoert/loghi-htr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rvankoert:master' into master
- Loading branch information
Showing
85 changed files
with
9,457 additions
and
4,748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pylint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install -r requirements.txt | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint $(git ls-files 'src/*.py') --extension-pkg-whitelist=cv2,word_beam_search --generated-members=cv2,word_beam_search --ignored-modules=tensorflow.*,skimage.filters --disable=import-error --fail-under=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"args": { | ||
"augmentation": { | ||
"aug_binarize_otsu": false, | ||
"aug_binarize_sauvola": false, | ||
"aug_blur": false, | ||
"aug_distort_jpeg": false, | ||
"aug_elastic_transform": false, | ||
"aug_invert": false, | ||
"aug_multiply": 1, | ||
"aug_random_crop": false, | ||
"aug_random_shear": false, | ||
"aug_random_width": false, | ||
"visualize_augments": false | ||
}, | ||
"decoding": { | ||
"beam_width": 10, | ||
"corpus_file": null, | ||
"greedy": false, | ||
"wbs_smoothing": 0.1 | ||
}, | ||
"depr": { | ||
"channels": 3, | ||
"config_file_output": null, | ||
"do_inference": false, | ||
"do_train": true, | ||
"height": 64, | ||
"no_auto": false, | ||
"output_charlist": null, | ||
"thaw": false, | ||
"use_mask": true | ||
}, | ||
"general": { | ||
"batch_size": 4, | ||
"charlist": null, | ||
"config_file": null, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"inference": { | ||
"inference_list": null, | ||
"results_file": "output/results.txt" | ||
}, | ||
"learning_rate": { | ||
"decay_per_epoch": false, | ||
"decay_rate": 0.99, | ||
"decay_steps": -1, | ||
"learning_rate": 0.0003, | ||
"linear_decay": false, | ||
"optimizer": "adamw", | ||
"warmup_ratio": 0.0 | ||
}, | ||
"misc": { | ||
"deterministic": false | ||
"normalization_file": null | ||
}, | ||
"model": { | ||
"freeze_conv_layers": false, | ||
"freeze_dense_layers": false, | ||
"freeze_recurrent_layers": false, | ||
"model": null, | ||
"model_name": null, | ||
"replace_final_layer": false, | ||
"replace_recurrent_layer": null, | ||
"use_float32": false | ||
}, | ||
"training": { | ||
"do_validate": false, | ||
"early_stopping_patience": 20, | ||
"epochs": 40, | ||
"max_queue_size": 256, | ||
"output_checkpoints": false, | ||
"steps_per_epoch": null, | ||
"test_list": null, | ||
"train_list": null, | ||
"training_verbosity_mode": "auto", | ||
"validation_list": null, | ||
"width": 65536 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"args": { | ||
"augmentation": { | ||
"aug_binarize_otsu": false, | ||
"aug_binarize_sauvola": false, | ||
"aug_blur": false, | ||
"aug_distort_jpeg": false, | ||
"aug_elastic_transform": true, | ||
"aug_invert": false, | ||
"aug_multiply": 1, | ||
"aug_random_crop": true, | ||
"aug_random_shear": false, | ||
"aug_random_width": true, | ||
"visualize_augments": false | ||
}, | ||
"decoding": { | ||
"beam_width": 10, | ||
"greedy": false | ||
}, | ||
"general": { | ||
"batch_size": 64, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"learning_rate": { | ||
"decay_per_epoch": false, | ||
"decay_rate": 0.95, | ||
"decay_steps": -1, | ||
"learning_rate": 0.0003, | ||
"linear_decay": true, | ||
"optimizer": "rmsprop", | ||
"warmup_ratio": 0.0 | ||
}, | ||
"misc": { | ||
"normalization_file": "/path/to/normalization.json" | ||
}, | ||
"model": { | ||
"freeze_conv_layers": true, | ||
"freeze_dense_layers": false, | ||
"freeze_recurrent_layers": false, | ||
"model": "/path/to/model/", | ||
"model_name": "My-Finetuned-Loghi-Model", | ||
"replace_final_layer": true, | ||
"replace_recurrent_layer": null, | ||
"use_float32": false | ||
}, | ||
"training": { | ||
"do_validate": true, | ||
"early_stopping_patience": 10, | ||
"epochs": 50, | ||
"max_queue_size": 256, | ||
"output_checkpoints": true, | ||
"train_list": "/path/to/train.txt", | ||
"training_verbosity_mode": "auto", | ||
"validation_list": "/path/to/val.txt" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"args": { | ||
"decoding": { | ||
"beam_width": 10, | ||
"corpus_file": null, | ||
"greedy": false, | ||
"wbs_smoothing": 0.1 | ||
}, | ||
"general": { | ||
"batch_size": 200, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"inference": { | ||
"inference_list": "/path/to/inference.txt", | ||
"results_file": "output/results.txt" | ||
}, | ||
"misc": { | ||
"check_missing_files": false, | ||
"deterministic": false | ||
}, | ||
"model": { | ||
"model": "/path/to/model/", | ||
"use_float32": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"args": { | ||
"decoding": { | ||
"beam_width": 10, | ||
"greedy": false | ||
}, | ||
"general": { | ||
"batch_size": 200, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"misc": { | ||
"deterministic": false, | ||
"normalization_file": "/path/to/normalization.json" | ||
}, | ||
"model": { | ||
"model": "/path/to/model/", | ||
"use_float32": false | ||
}, | ||
"training": { | ||
"max_queue_size": 256, | ||
"test_list": "/path/to/test.txt" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"args": { | ||
"augmentation": { | ||
"aug_binarize_otsu": false, | ||
"aug_binarize_sauvola": false, | ||
"aug_blur": false, | ||
"aug_distort_jpeg": false, | ||
"aug_elastic_transform": true, | ||
"aug_invert": false, | ||
"aug_multiply": 1, | ||
"aug_random_crop": true, | ||
"aug_random_shear": false, | ||
"aug_random_width": true, | ||
"visualize_augments": false | ||
}, | ||
"decoding": { | ||
"beam_width": 10, | ||
"greedy": false | ||
}, | ||
"depr": { | ||
"channels": 1 | ||
}, | ||
"general": { | ||
"batch_size": 64, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"learning_rate": { | ||
"decay_per_epoch": false, | ||
"decay_rate": 0.95, | ||
"decay_steps": -1, | ||
"learning_rate": 0.0003, | ||
"linear_decay": false, | ||
"optimizer": "rmsprop", | ||
"warmup_ratio": 0.0 | ||
}, | ||
"misc": { | ||
"normalization_file": "/path/to/normalization.json" | ||
}, | ||
"model": { | ||
"model": "recommended", | ||
"model_name": "My-Loghi-Model", | ||
"use_float32": false | ||
}, | ||
"training": { | ||
"do_validate": true, | ||
"early_stopping_patience": 20, | ||
"epochs": 100, | ||
"max_queue_size": 256, | ||
"output_checkpoints": true, | ||
"train_list": "/path/to/train.txt", | ||
"training_verbosity_mode": "auto", | ||
"validation_list": "/path/to/val.txt" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"args": { | ||
"decoding": { | ||
"beam_width": 10, | ||
"greedy": false | ||
}, | ||
"general": { | ||
"batch_size": 200, | ||
"gpu": "0", | ||
"output": "output", | ||
"seed": 42 | ||
}, | ||
"misc": { | ||
"deterministic": false, | ||
"normalization_file": "/path/to/normalization.json" | ||
}, | ||
"model": { | ||
"model": "/path/to/model/", | ||
"use_float32": false | ||
}, | ||
"training": { | ||
"do_validate": true, | ||
"max_queue_size": 256, | ||
"validation_list": "/path/to/validation.txt" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.