Spaces:
Runtime error
Runtime error
Download src/lib/config.py from handwriting-ocr-api/handwriting-ocr: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/handwriting-ocr-api/handwriting-ocr/resolve/main/src/lib/config.py
- Command line
-
hf download hf://spaces/handwriting-ocr-api/handwriting-ocr/src/lib/config.py
-
curl -L -o config.py https://huggingface.co/spaces/handwriting-ocr-api/handwriting-ocr/resolve/main/src/lib/config.py
296 Bytes
| class Config: | |
| IMAGE_SIZE = (128, 32) | |
| PADDING = 10 | |
| MIN_TEXT_HEIGHT = 20 | |
| BINARY_THRESHOLD = 128 | |
| ROTATION_RANGE = (-5, 5) | |
| SCALE_RANGE = (0.9, 1.1) | |
| NOISE_VARIANCE = 0.01 | |
| MODEL_TYPE = "crnn" | |
| LEARNING_RATE = 0.0001 | |
| BATCH_SIZE = 64 | |
| NUM_EPOCHS = 200 |