Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tara Models
|
| 2 |
+
|
| 3 |
+
ONNX models for [Tara](https://github.com/QuatZo/tara) - browser-native visual document translation.
|
| 4 |
+
|
| 5 |
+
## Models
|
| 6 |
+
|
| 7 |
+
| Model | File | Size | Source | Changes |
|
| 8 |
+
|-------|------|------|--------|---------|
|
| 9 |
+
| RT-DETR-v2 (detector) | detector.onnx | 161 MB | [ogkalu/comic-text-and-bubble-detector](https://huggingface.co/ogkalu/comic-text-and-bubble-detector) | Patched AveragePool ceil_mode=0 for WebGPU compatibility |
|
| 10 |
+
| LaMa (inpainter) | lama-manga-dynamic.onnx | 197 MB | [ogkalu/lama-manga-onnx-dynamic](https://huggingface.co/ogkalu/lama-manga-onnx-dynamic) | No changes, original model |
|
| 11 |
+
|
| 12 |
+
## Why this repo?
|
| 13 |
+
|
| 14 |
+
The original detector.onnx uses AveragePool with ceil_mode=1, which onnxruntime-web's WebGPU backend does not support. This repo hosts a patched version where ceil_mode is set to 0. Since all AveragePool nodes use kernel=2x2 stride=2 on even-dimension inputs (640x640), this change has no effect on output.
|
| 15 |
+
|
| 16 |
+
The LaMa inpainter works as-is and is included here for convenience (single download source).
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
|
| 20 |
+
These models are loaded by Tara via the browser Cache API. On first visit, the app downloads both models (~360 MB total) and caches them locally. Subsequent visits load from cache instantly.
|
| 21 |
+
|
| 22 |
+
Direct download URLs:
|
| 23 |
+
- https://huggingface.co/QuatZo/tara-models/resolve/main/detector.onnx
|
| 24 |
+
- https://huggingface.co/QuatZo/tara-models/resolve/main/lama-manga-dynamic.onnx
|
| 25 |
+
|
| 26 |
+
## License
|
| 27 |
+
|
| 28 |
+
Original models by [ogkalu](https://huggingface.co/ogkalu). See the source repositories for license information.
|