Upload folder using huggingface_hub
Browse files- README.md +9 -10
- coreml/monocr.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- coreml/monocr.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- coreml/monocr.mlpackage/Manifest.json +18 -0
- monocr.json +2 -2
- onnx/charset.txt +1 -1
- onnx/monocr.json +2 -2
- onnx/monocr.onnx +2 -2
README.md
CHANGED
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
- mon
|
| 10 |
- mnw
|
| 11 |
- onnx
|
| 12 |
-
-
|
| 13 |
- mobilenetv3
|
| 14 |
- crnn
|
| 15 |
---
|
|
@@ -26,18 +26,17 @@ Unified SDKs are available for seamless integration into existing applications.
|
|
| 26 |
|
| 27 |
| SDK | Platform | Registry |
|
| 28 |
| :----------------------------------------------------------------------- | :------- | :------- |
|
| 29 |
-
| [monocr-onnx](https://github.com/MonDevHub/monocr-onnx/tree/main/python) | Python | PyPI |
|
| 30 |
-
| [monocr](https://github.com/MonDevHub/monocr-onnx/tree/main/js) | Node.js | npm |
|
| 31 |
-
| [monocr-go](https://github.com/MonDevHub/monocr-onnx/tree/main/go) | Go | GitHub |
|
|
|
|
| 32 |
|
| 33 |
## Model Checkpoints
|
| 34 |
|
| 35 |
| Format | Path | Intended Use Case |
|
| 36 |
| :---------------- | :---------------------- | :------------------------------------------------- |
|
| 37 |
| **ONNX** | `onnx/monocr.onnx` | Standard deployments (Server/Desktop). |
|
| 38 |
-
| **
|
| 39 |
-
| **TFLite (fp16)** | `tflite/float16.tflite` | High-efficiency mobile GPU acceleration. |
|
| 40 |
-
| **TFLite (fp32)** | `tflite/float32.tflite` | High-precision mobile inference. |
|
| 41 |
| **PyTorch** | `pytorch/monocr.ckpt` | Training, fine-tuning, and research. |
|
| 42 |
|
| 43 |
## Performance Metrics
|
|
@@ -76,9 +75,9 @@ Unified SDKs are available for seamless integration into existing applications.
|
|
| 76 |
|
| 77 |
## Technical Specification
|
| 78 |
|
| 79 |
-
- **Input Tensors**: Grayscale (1-channel), 128px Height,
|
| 80 |
-
- **Image Preprocessing**: Aspect-ratio preserving resize to 128px height, followed by `[
|
| 81 |
-
- **Decoding Strategy**: Connectionist Temporal Classification (CTC)
|
| 82 |
- **Vocabulary**: 315 characters (Mon, Burmese, digits, punctuation, and symbols). Encoding is standard UTF-8 (see `charset.txt`).
|
| 83 |
|
| 84 |
## Integration Guidelines
|
|
|
|
| 9 |
- mon
|
| 10 |
- mnw
|
| 11 |
- onnx
|
| 12 |
+
- coreml
|
| 13 |
- mobilenetv3
|
| 14 |
- crnn
|
| 15 |
---
|
|
|
|
| 26 |
|
| 27 |
| SDK | Platform | Registry |
|
| 28 |
| :----------------------------------------------------------------------- | :------- | :------- |
|
| 29 |
+
| [monocr-onnx](https://github.com/MonDevHub/monocr-onnx/tree/main/python) | Python | PyPI | Production |
|
| 30 |
+
| [monocr](https://github.com/MonDevHub/monocr-onnx/tree/main/js) | Node.js | npm | Production |
|
| 31 |
+
| [monocr-go](https://github.com/MonDevHub/monocr-onnx/tree/main/go) | Go | GitHub | Production |
|
| 32 |
+
| [monocr-rust](https://github.com/MonDevHub/monocr-onnx/tree/main/rust) | Rust | GitHub | Production |
|
| 33 |
|
| 34 |
## Model Checkpoints
|
| 35 |
|
| 36 |
| Format | Path | Intended Use Case |
|
| 37 |
| :---------------- | :---------------------- | :------------------------------------------------- |
|
| 38 |
| **ONNX** | `onnx/monocr.onnx` | Standard deployments (Server/Desktop). |
|
| 39 |
+
| **Core ML** | `coreml/monocr.mlpackage`| Apple ecosystem (iOS/macOS/watchOS). |
|
|
|
|
|
|
|
| 40 |
| **PyTorch** | `pytorch/monocr.ckpt` | Training, fine-tuning, and research. |
|
| 41 |
|
| 42 |
## Performance Metrics
|
|
|
|
| 75 |
|
| 76 |
## Technical Specification
|
| 77 |
|
| 78 |
+
- **Input Tensors**: Grayscale (1-channel), 128px Height, 1024px Width (padded).
|
| 79 |
+
- **Image Preprocessing**: Aspect-ratio preserving resize to 128px height, padded to 1024px with white background, followed by `[-1, 1]` pixel normalization.
|
| 80 |
+
- **Decoding Strategy**: Connectionist Temporal Classification (CTC) Greedy Decoding (Default).
|
| 81 |
- **Vocabulary**: 315 characters (Mon, Burmese, digits, punctuation, and symbols). Encoding is standard UTF-8 (see `charset.txt`).
|
| 82 |
|
| 83 |
## Integration Guidelines
|
coreml/monocr.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed6dab1e5efe567ca0dfddec5dca28f6e2d01826b70c4cb967280bcec5ae657a
|
| 3 |
+
size 92438
|
coreml/monocr.mlpackage/Data/com.apple.CoreML/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a02f90114e585f4a1f80a24fa85eaa81376af7f1e3fe0d900cdbbeb3a07e7c8
|
| 3 |
+
size 24173304
|
coreml/monocr.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"4AE68C8B-1120-434B-A9B6-1F1E72FB9ACE": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"9CCFDE08-4B02-4A5A-A4C7-739C067777A5": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Specification",
|
| 13 |
+
"name": "model.mlmodel",
|
| 14 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "9CCFDE08-4B02-4A5A-A4C7-739C067777A5"
|
| 18 |
+
}
|
monocr.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"charset": " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´µ·¸¹º»¾ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷
|
| 3 |
"img_height": 128,
|
| 4 |
-
"opset_version": 17,
|
| 5 |
"model_version": "2.0",
|
|
|
|
| 6 |
"architecture": "MobileNetV3-Large + BiLSTM + CTC"
|
| 7 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"charset": " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´µ·¸¹º»¾ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüþĀāăćčĐđĒēėěğġĦħīİıņŋŌōőŒœŚśşŠšţũŪūŻŽžƒơƭưƿǎǐǔșɐɑɒɓɔɕɖɗəɛɜɡɣɦɨɪɬɰɲɳɴɹɾʁʃʄʈʊʋʑʒʔʰʲʷʻʾʿˀˈˌː˥˦̟̥̩̪̰̀́̂̃̄̋̏̚͡ΆΒΔΕΜΝΠΣΤΧάέήίαβγδεζηθικλμνξοπρςστυφχψωόύώАБДЗИМНОРСТабвгдежзийклмнопрстухцчшщыьэюяүӨөְֱִֵֶַָֹּׁׂאבדהוחיכלםמןסעפקרשתءأإئابةتثجحخدرسفقكلمنهويَِْٹپکگیंअआईकखगङचजटठडढणतथदधनपफबभमयरलळवशषसह़ािीुूृेैोौ्ংআউকখগঙচজঝঠঢণতদধনপবভমযরলশষহ়ািীুূেৈো্ৰਖਚਤਨਮਰਲਸਿੀੂੇੰੱੴકચતરાૈ્ଆକଖଢଣତଦଧପବଭମରଶଷାିୁୂୈ୍அஇகஙசஞடணதநனபமயரலளழவாிுூெேை்ంకఖగచణతదధపబమరవశాిీుైౌ్ಂಅಆಕಖಗಚಣತದಧನಪಬಮಯರಲಳವಶಾಿುೆೇೈೌ್ംകചടണതപമയരറലളവഷസിൂെൈ്අඕකතදධනබමයරවසහ්ාිුෙෝกขคฆงจฉชซญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลวศษสหฬอฮฯะัาำิีึืฺุูเแโใไๆ็่้๊์ํ๑๒๕๖๘ຂງຊດທບພຣວສຫະາິູຼ་།༥ཀགཆདནཔབམཛཟའརཤསིེོུྟྱྲླကခဂဃငစဆဇဈဉညဋဌဍဎဏတထဒဓနပဖဗဘမယရလဝသဟဠအဢဣဤဥဦဧဨဩဪါာိီုူေဲဳဴဵံ့း္်ျြွှဿ၀၁၂၃၄၅၆၇၈၉၊။၌၍၎၏ၐၑၓၚၛၜၝၞၟၠၡၢၣၤၥၨၪၰၱၲၳၴၵၷၸၹၺၻၼၾၿႀႄႅႆႇႈႉႊႏ႐႒႓႔႕႘႙ႜႝ႟ὴ–‘’‚“”•−",
|
| 3 |
"img_height": 128,
|
|
|
|
| 4 |
"model_version": "2.0",
|
| 5 |
+
"format": "mlpackage",
|
| 6 |
"architecture": "MobileNetV3-Large + BiLSTM + CTC"
|
| 7 |
}
|
onnx/charset.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´·¸¹»ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷
|
|
|
|
| 1 |
+
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´µ·¸¹º»¾ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüþĀāıŒœŠšŽžƒːμπကခဂဃငစဆဇဈဉညဋဌဍဎဏတထဒဓနပဖဗဘမယရလဝသဟဠအဢဣဤဥဦဧဨဩဪါာိီုူေဲဳဴဵံ့း္်ျြွှဿ၀၁၂၃၄၅၆၇၈၉၊။၌၍၎၏ၐၑၓၚၛၜၝၞၟၠၡၢၣၤၥၨၪၰၱၲၳၴၵၷၸၹၺၻၼၾၿႀႄႅႆႇႈႉႊႏ႐႒႓႔႕႘႙ႜႝ႟–‘’‚“”•…−
|
onnx/monocr.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"charset": " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´µ·¸¹º»¾ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷
|
| 3 |
"img_height": 128,
|
| 4 |
-
"opset_version": 17,
|
| 5 |
"model_version": "2.0",
|
|
|
|
| 6 |
"architecture": "MobileNetV3-Large + BiLSTM + CTC"
|
| 7 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"charset": " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¥¦§©«¬°±²³´µ·¸¹º»¾ÀÁÂÄÅÆÇÉÊÌÍÑÓÖרÜÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüþĀāăćčĐđĒēėěğġĦħīİıņŋŌōőŒœŚśşŠšţũŪūŻŽžƒơƭưƿǎǐǔșɐɑɒɓɔɕɖɗəɛɜɡɣɦɨɪɬɰɲɳɴɹɾʁʃʄʈʊʋʑʒʔʰʲʷʻʾʿˀˈˌː˥˦̟̥̩̪̰̀́̂̃̄̋̏̚͡ΆΒΔΕΜΝΠΣΤΧάέήίαβγδεζηθικλμνξοπρςστυφχψωόύώАБДЗИМНОРСТабвгдежзийклмнопрстухцчшщыьэюяүӨөְֱִֵֶַָֹּׁׂאבדהוחיכלםמןסעפקרשתءأإئابةتثجحخدرسفقكلمنهويَِْٹپکگیंअआईकखगङचजटठडढणतथदधनपफबभमयरलळवशषसह़ािीुूृेैोौ्ংআউকখগঙচজঝঠঢণতদধনপবভমযরলশষহ়ািীুূেৈো্ৰਖਚਤਨਮਰਲਸਿੀੂੇੰੱੴકચતરાૈ્ଆକଖଢଣତଦଧପବଭମରଶଷାିୁୂୈ୍அஇகஙசஞடணதநனபமயரலளழவாிுூெேை்ంకఖగచణతదధపబమరవశాిీుైౌ్ಂಅಆಕಖಗಚಣತದಧನಪಬಮಯರಲಳವಶಾಿುೆೇೈೌ್ംകചടണതപമയരറലളവഷസിൂെൈ്අඕකතදධනබමයරවසහ්ාිුෙෝกขคฆงจฉชซญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลวศษสหฬอฮฯะัาำิีึืฺุูเแโใไๆ็่้๊์ํ๑๒๕๖๘ຂງຊດທບພຣວສຫະາິູຼ་།༥ཀགཆདནཔབམཛཟའརཤསིེོུྟྱྲླကခဂဃငစဆဇဈဉညဋဌဍဎဏတထဒဓနပဖဗဘမယရလဝသဟဠအဢဣဤဥဦဧဨဩဪါာိီုူေဲဳဴဵံ့း္်ျြွှဿ၀၁၂၃၄၅၆၇၈၉၊။၌၍၎၏ၐၑၓၚၛၜၝၞၟၠၡၢၣၤၥၨၪၰၱၲၳၴၵၷၸၹၺၻၼၾၿႀႄႅႆႇႈႉႊႏ႐႒႓႔႕႘႙ႜႝ႟ὴ–‘’‚“”•−",
|
| 3 |
"img_height": 128,
|
|
|
|
| 4 |
"model_version": "2.0",
|
| 5 |
+
"format": "mlpackage",
|
| 6 |
"architecture": "MobileNetV3-Large + BiLSTM + CTC"
|
| 7 |
}
|
onnx/monocr.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f212ab7e76c4dc7f120e600fe60ce3bd99227efa7e5ba402f446daa04b6271db
|
| 3 |
+
size 26355440
|