langningchen/luogu-captcha-dataset
Updated • 57 • 2
How to use langningchen/luogu-captcha-model with Keras:
# Available backend options are: "jax", "torch", "tensorflow".
import os
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://langningchen/luogu-captcha-model")
Lightweight CNN model trained on langningchen/luogu-captcha-dataset to recognize 4-character Luogu CAPTCHAs.
abcdefghijklmnopqrstuvwxyz123456789 (Length: 35)| Format | File Path | Size | Description |
|---|---|---|---|
| ONNX (INT8) | onnx/luogu-captcha-int8.onnx |
1.70 MB | Recommended for CPU inference: static quantized, ~75% smaller with no accuracy loss (94.34%). |
| ONNX (FP16) | onnx/luogu-captcha-fp16.onnx |
3.15 MB | Recommended for GPU/DirectML/WebGPU: native half-precision (94.26%). |
| ONNX (FP32) | onnx/luogu-captcha-fp32.onnx |
6.22 MB | Clean standard single-precision graph for maximum platform compatibility. |
| TF.js (uint8) | tfjs/ |
~720 KB | Quantized layers format for zero-dependency in-browser recognition. |
| Keras H5 | luogu-captcha-mobile.h5 |
~6.5 MB | Standard Keras model file. |