ocr4all-pixel-classifier merge requestshttps://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests2019-11-20T16:53:00+01:00https://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests/13Various minor changes:2019-11-20T16:53:00+01:00Alexander HarteltVarious minor changes: - Added optional max_width parameter to Datasetloader
- Readded data shuffling after each batch
- Minor improvements to image map generation script
- Changed log type from warning to info when no evaluation dataset is set - Added optional max_width parameter to Datasetloader
- Readded data shuffling after each batch
- Minor improvements to image map generation script
- Changed log type from warning to info when no evaluation dataset is setAlexander GehrkeAlexander Gehrkehttps://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests/6hotfix for lib path error2019-09-11T16:34:58+02:00Ghost Userhotfix for lib path errorhttps://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests/7Revert "Merge branch 'master' of...2019-09-11T16:34:47+02:00Amar HekaloRevert "Merge branch 'master' of...Revert "Merge branch 'master' of https://gitlab2.informatik.uni-wuerzburg.de/chw71yx/page-segmentation"
This reverts commit afcd377b1f5b8100d20fc6fd6c272be650b429c2Revert "Merge branch 'master' of https://gitlab2.informatik.uni-wuerzburg.de/chw71yx/page-segmentation"
This reverts commit afcd377b1f5b8100d20fc6fd6c272be650b429c2https://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests/2Restructure2018-11-21T15:43:54+01:00Ghost UserRestructure* Installing the project previously installed it as scripts.* and lib.* this means that it easily clashed with other modules doing the same. Changed folder structure.
```
page-segmentation
+-- scripts
+-- lib
```
to
```
page-segmentation...* Installing the project previously installed it as scripts.* and lib.* this means that it easily clashed with other modules doing the same. Changed folder structure.
```
page-segmentation
+-- scripts
+-- lib
```
to
```
page-segmentation
+-- pagesegmentation
| +-- scripts
| +-- lib
+--
```
* Added mains to `compute_image_normalizations` and `create_dataset_file`.
``` python
def main():
# previous code without header imports
if __name__ == '__main__':
main()
```
* Combined `page-segmentation-train` and `page-segmentation-predict` to `page-segmentation train|predict`.
```
page-segmentation train
page-segmentation predict
```
* Added `compute_image_normalizations` and `create_dataset_file` to `page-segmentation`
```
page-segmentation create_dataset_file
page-segmentation compute_image_normalizations
```
* Added help to `page-segmentation` to describe existing commandshttps://gitlab2.informatik.uni-wuerzburg.de/ocr4all-page-segmentation/ocr4all-pixel-classifier/-/merge_requests/1Restructured to allow 'import page_segmentation'2018-11-21T13:28:23+01:00Ghost UserRestructured to allow 'import page_segmentation'Restructured the project to make it importable as module.
bash programs are unchanged but comprised the python code to one module so that imports like the following are possible e.g.:
`from page_segmentation import train` uses the ...Restructured the project to make it importable as module.
bash programs are unchanged but comprised the python code to one module so that imports like the following are possible e.g.:
`from page_segmentation import train` uses the functionality of the `page-segmentation-train` command as python function:
```
def train(output:str,
train:str=[],
test:str=[],
eval:str=[],
split_file:str=None,
prediction_dir:str=None,
l_rate:float=1e-3,
l_rate_drop_factor:float=0.1,
n_classes:int=4,
target_line_height:int=6,
load:str=None,
n_iter:int=500,
early_stopping_test_interval:int=100,
early_stopping_max_keep:int=10,
early_stopping_max_l_rate_drops:int=3,
early_stopping_on_accuracy=False,
display:int=100):
```
Likewise with `from page_segmentation import predict` uses the functionality of the `page-segmentation-predict`.
Installing the project previously installed it as scripts.* and lib.* this means that it easily clashed with other modules doing the same.
It could be argued that lib.trainer and lib.predictor should be made to top level classes/scripts instead of scripts.train.train and scripts.predict.predict
Added subprogramms in bash e.g.:
`page-segmentation train`
[Caution: code should be reviewed before merging]