Instructions to use langningchen/luogu-captcha-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use langningchen/luogu-captcha-model with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://langningchen/luogu-captcha-model") - Notebooks
- Google Colab
- Kaggle
Upload trained models (Val Acc: 94.26%)
Browse files- README.md +1 -1
- best.weights.h5 +2 -2
- luogu-captcha-mobile.h5 +2 -2
- metadata.json +2 -2
- onnx/luogu-captcha-fp32.onnx +2 -2
- tfjs/group1-shard1of1.bin +2 -2
- tfjs/model.json +0 -0
README.md
CHANGED
|
@@ -20,7 +20,7 @@ metrics:
|
|
| 20 |
Lightweight CNN model trained on [`langningchen/luogu-captcha-dataset`](https://huggingface.co/datasets/langningchen/luogu-captcha-dataset) to recognize 4-character Luogu CAPTCHAs.
|
| 21 |
|
| 22 |
## Model Performance
|
| 23 |
-
- **Validation Captcha Accuracy (Whole Sequence)**:
|
| 24 |
- **Input Dimensions**: 35x90x3 (Normalized to [0, 1])
|
| 25 |
- **Alphabet**: `abcdefghijklmnopqrstuvwxyz123456789` (Length: 35)
|
| 26 |
|
|
|
|
| 20 |
Lightweight CNN model trained on [`langningchen/luogu-captcha-dataset`](https://huggingface.co/datasets/langningchen/luogu-captcha-dataset) to recognize 4-character Luogu CAPTCHAs.
|
| 21 |
|
| 22 |
## Model Performance
|
| 23 |
+
- **Validation Captcha Accuracy (Whole Sequence)**: 94.26%
|
| 24 |
- **Input Dimensions**: 35x90x3 (Normalized to [0, 1])
|
| 25 |
- **Alphabet**: `abcdefghijklmnopqrstuvwxyz123456789` (Length: 35)
|
| 26 |
|
best.weights.h5
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:8d50c1261e0f9d5673fc3a95423b17f0dbf1d5ef6765149ed52029e9637a3988
|
| 3 |
+
size 32744664
|
luogu-captcha-mobile.h5
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:01cd86b2e9afb10afe8b5989a63317e6854ff1b2f7333b801cf43f28628b041f
|
| 3 |
+
size 6714232
|
metadata.json
CHANGED
|
@@ -3,6 +3,6 @@
|
|
| 3 |
"captcha_length": 4,
|
| 4 |
"image_height": 35,
|
| 5 |
"image_width": 90,
|
| 6 |
-
"parameter_count":
|
| 7 |
-
"best_val_accuracy": 0.
|
| 8 |
}
|
|
|
|
| 3 |
"captcha_length": 4,
|
| 4 |
"image_height": 35,
|
| 5 |
"image_width": 90,
|
| 6 |
+
"parameter_count": 1626497,
|
| 7 |
+
"best_val_accuracy": 0.9426000118255615
|
| 8 |
}
|
onnx/luogu-captcha-fp32.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:abe157ddbe3e60c235c0bca78ed4a50a1d6322c0979ba0c0744f40641d5930e0
|
| 3 |
+
size 3299638
|
tfjs/group1-shard1of1.bin
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:7e648ffc5da65da3e00b01c9a4816e14d8e49ea146362563808912bb20445078
|
| 3 |
+
size 1626497
|
tfjs/model.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|