Migrasi otomatis
Browse files- .gitattributes +6 -0
- README.md +56 -0
- caformer_s36_v0_focal/meta.json +8 -0
- caformer_s36_v0_focal/metrics.json +7 -0
- caformer_s36_v0_focal/model.ckpt +3 -0
- caformer_s36_v0_focal/model.onnx +3 -0
- caformer_s36_v0_focal/plot_confusion.png +0 -0
- caformer_s36_v0_focal/plot_f1_curve.png +0 -0
- caformer_s36_v0_focal/plot_p_curve.png +0 -0
- caformer_s36_v0_focal/plot_pr_curve.png +0 -0
- caformer_s36_v0_focal/plot_r_curve.png +0 -0
- caformer_s36_v0_focal/plot_roc_curve.png +0 -0
- caformer_s36_v0_focal/plot_sample_corrupted.png +3 -0
- caformer_s36_v0_focal/plot_sample_normal.png +3 -0
- caformer_s36_v0_sce/meta.json +8 -0
- caformer_s36_v0_sce/metrics.json +7 -0
- caformer_s36_v0_sce/model.ckpt +3 -0
- caformer_s36_v0_sce/model.onnx +3 -0
- caformer_s36_v0_sce/plot_confusion.png +0 -0
- caformer_s36_v0_sce/plot_f1_curve.png +0 -0
- caformer_s36_v0_sce/plot_p_curve.png +0 -0
- caformer_s36_v0_sce/plot_pr_curve.png +0 -0
- caformer_s36_v0_sce/plot_r_curve.png +0 -0
- caformer_s36_v0_sce/plot_roc_curve.png +0 -0
- caformer_s36_v0_sce/plot_sample_corrupted.png +3 -0
- caformer_s36_v0_sce/plot_sample_normal.png +3 -0
- mobilenetv3_v0_focal_dist/meta.json +8 -0
- mobilenetv3_v0_focal_dist/metrics.json +7 -0
- mobilenetv3_v0_focal_dist/model.ckpt +3 -0
- mobilenetv3_v0_focal_dist/model.onnx +3 -0
- mobilenetv3_v0_focal_dist/plot_confusion.png +0 -0
- mobilenetv3_v0_focal_dist/plot_f1_curve.png +0 -0
- mobilenetv3_v0_focal_dist/plot_p_curve.png +0 -0
- mobilenetv3_v0_focal_dist/plot_pr_curve.png +0 -0
- mobilenetv3_v0_focal_dist/plot_r_curve.png +0 -0
- mobilenetv3_v0_focal_dist/plot_roc_curve.png +0 -0
- mobilenetv3_v0_focal_dist/plot_sample_corrupted.png +3 -0
- mobilenetv3_v0_focal_dist/plot_sample_normal.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
caformer_s36_v0_focal/plot_sample_corrupted.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
caformer_s36_v0_focal/plot_sample_normal.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
caformer_s36_v0_sce/plot_sample_corrupted.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
caformer_s36_v0_sce/plot_sample_normal.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
mobilenetv3_v0_focal_dist/plot_sample_corrupted.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
mobilenetv3_v0_focal_dist/plot_sample_normal.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: openrail
|
| 3 |
+
metrics:
|
| 4 |
+
- accuracy
|
| 5 |
+
pipeline_tag: image-classification
|
| 6 |
+
tags:
|
| 7 |
+
- art
|
| 8 |
+
datasets:
|
| 9 |
+
- deepghs/ai_image_corrupted
|
| 10 |
+
library_name: dghs-imgutils
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
This is the classifier model for predicting the anime-style stable-diffusion-generated images are corrupted or not.
|
| 14 |
+
|
| 15 |
+
Trained on dataset [deepghs/ai_image_corrupted](https://huggingface.co/datasets/deepghs/ai_image_corrupted).
|
| 16 |
+
|
| 17 |
+
## Models
|
| 18 |
+
|
| 19 |
+
| Name | FLOPS | Params | Accuracy | AUC | Confusion | Labels |
|
| 20 |
+
|:-------------------------:|:-------:|:--------:|:----------:|:------:|:---------------------------------------------------------------------------------------------------------------------:|:---------------------:|
|
| 21 |
+
| caformer_s36_v0_focal | 22.10G | 37.21M | 95.65% | 0.9916 | [confusion](https://huggingface.co/deepghs/ai_image_corrupted/blob/main/caformer_s36_v0_focal/plot_confusion.png) | `corrupted`, `normal` |
|
| 22 |
+
| caformer_s36_v0_sce | 22.10G | 37.21M | 95.77% | 0.9894 | [confusion](https://huggingface.co/deepghs/ai_image_corrupted/blob/main/caformer_s36_v0_sce/plot_confusion.png) | `corrupted`, `normal` |
|
| 23 |
+
| mobilenetv3_v0_focal_dist | 0.63G | 4.18M | 94.02% | 0.9842 | [confusion](https://huggingface.co/deepghs/ai_image_corrupted/blob/main/mobilenetv3_v0_focal_dist/plot_confusion.png) | `corrupted`, `normal` |
|
| 24 |
+
|
| 25 |
+
## How to Use
|
| 26 |
+
|
| 27 |
+
You can use this model with [dghs-imgutils](https://dghs-imgutils.deepghs.org/main/api_doc/generic/classify.html).
|
| 28 |
+
|
| 29 |
+
```python
|
| 30 |
+
from imgutils.generic import classify_predict_score
|
| 31 |
+
|
| 32 |
+
classify_predict_score(
|
| 33 |
+
'sample_image.png',
|
| 34 |
+
repo_id='deepghs/ai_image_corrupted',
|
| 35 |
+
model_name='mobilenetv3_v0_focal_dist',
|
| 36 |
+
)
|
| 37 |
+
# {'corrupted': 0.7807788848876953, 'normal': 0.2192210853099823}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Note
|
| 41 |
+
|
| 42 |
+
This model is trained on SD1.5 images, generated by 8 different base models.
|
| 43 |
+
|
| 44 |
+
So the better solution for this problem is to use some metrics like artstyle embeddings,
|
| 45 |
+
this model will be deprecated as soon as the artstyle embedding model for anime images is completed.
|
| 46 |
+
|
| 47 |
+
## Citation
|
| 48 |
+
|
| 49 |
+
```
|
| 50 |
+
@misc{Citation,
|
| 51 |
+
title={AI-Corrupt Score for Anime Images},
|
| 52 |
+
author={narugo1992},
|
| 53 |
+
year={2023},
|
| 54 |
+
howpublished={\url{https://huggingface.co/deepghs/ai_image_corrupted}}
|
| 55 |
+
}
|
| 56 |
+
```
|
caformer_s36_v0_focal/meta.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": [
|
| 3 |
+
"corrupted",
|
| 4 |
+
"normal"
|
| 5 |
+
],
|
| 6 |
+
"name": "caformer_s36.sail_in22k_ft_in1k_384",
|
| 7 |
+
"pretrained": true
|
| 8 |
+
}
|
caformer_s36_v0_focal/metrics.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"AUC": 0.9915877002300404,
|
| 3 |
+
"accuracy": 0.9565287458200717,
|
| 4 |
+
"loss": 0.05786754996883977,
|
| 5 |
+
"mAP": 0.9916107790832838,
|
| 6 |
+
"step": 15
|
| 7 |
+
}
|
caformer_s36_v0_focal/model.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3268bf90847025ada0cc41a417d3dcb1e07b688a8f15e71f25bc8a84a0d9d7e6
|
| 3 |
+
size 164417583
|
caformer_s36_v0_focal/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae63bb14ab822916f2aec79eaf376488c452b95f6e7abc0e02fad27b1a13b5b4
|
| 3 |
+
size 149574704
|
caformer_s36_v0_focal/plot_confusion.png
ADDED
|
caformer_s36_v0_focal/plot_f1_curve.png
ADDED
|
caformer_s36_v0_focal/plot_p_curve.png
ADDED
|
caformer_s36_v0_focal/plot_pr_curve.png
ADDED
|
caformer_s36_v0_focal/plot_r_curve.png
ADDED
|
caformer_s36_v0_focal/plot_roc_curve.png
ADDED
|
caformer_s36_v0_focal/plot_sample_corrupted.png
ADDED
|
Git LFS Details
|
caformer_s36_v0_focal/plot_sample_normal.png
ADDED
|
Git LFS Details
|
caformer_s36_v0_sce/meta.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": [
|
| 3 |
+
"corrupted",
|
| 4 |
+
"normal"
|
| 5 |
+
],
|
| 6 |
+
"name": "caformer_s36.sail_in22k_ft_in1k_384",
|
| 7 |
+
"pretrained": true
|
| 8 |
+
}
|
caformer_s36_v0_sce/metrics.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"AUC": 0.9893911724263327,
|
| 3 |
+
"accuracy": 0.9576568228516176,
|
| 4 |
+
"loss": 0.4203899436304823,
|
| 5 |
+
"mAP": 0.9892099839602968,
|
| 6 |
+
"step": 46
|
| 7 |
+
}
|
caformer_s36_v0_sce/model.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e8d5d4946c776d441f26087b74f7ca488e5e929a2908421da54fdfc9a218fe1
|
| 3 |
+
size 164432367
|
caformer_s36_v0_sce/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42a6cbf35bc99bfe03ca8ad44c842cbef5be8f4fe5cc5dcf981ba9d1a0cb183f
|
| 3 |
+
size 149574704
|
caformer_s36_v0_sce/plot_confusion.png
ADDED
|
caformer_s36_v0_sce/plot_f1_curve.png
ADDED
|
caformer_s36_v0_sce/plot_p_curve.png
ADDED
|
caformer_s36_v0_sce/plot_pr_curve.png
ADDED
|
caformer_s36_v0_sce/plot_r_curve.png
ADDED
|
caformer_s36_v0_sce/plot_roc_curve.png
ADDED
|
caformer_s36_v0_sce/plot_sample_corrupted.png
ADDED
|
Git LFS Details
|
caformer_s36_v0_sce/plot_sample_normal.png
ADDED
|
Git LFS Details
|
mobilenetv3_v0_focal_dist/meta.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": [
|
| 3 |
+
"corrupted",
|
| 4 |
+
"normal"
|
| 5 |
+
],
|
| 6 |
+
"name": "mobilenetv3_large_100",
|
| 7 |
+
"pretrained": true
|
| 8 |
+
}
|
mobilenetv3_v0_focal_dist/metrics.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"AUC": 0.9841517762780874,
|
| 3 |
+
"accuracy": 0.940211917328069,
|
| 4 |
+
"cls_loss": 0.11884625564264313,
|
| 5 |
+
"mAP": 0.9840327226113071,
|
| 6 |
+
"step": 48
|
| 7 |
+
}
|
mobilenetv3_v0_focal_dist/model.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51595a9c67e854ff9e9365875bf9e0bd8104af3194e29a9290d1701f17af7968
|
| 3 |
+
size 32056971
|
mobilenetv3_v0_focal_dist/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b1b50ff2d97a3d67dd6d8dd3d88efed71514ae81c5769729d8a4ff5f9607b7d
|
| 3 |
+
size 16822434
|
mobilenetv3_v0_focal_dist/plot_confusion.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_f1_curve.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_p_curve.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_pr_curve.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_r_curve.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_roc_curve.png
ADDED
|
mobilenetv3_v0_focal_dist/plot_sample_corrupted.png
ADDED
|
Git LFS Details
|
mobilenetv3_v0_focal_dist/plot_sample_normal.png
ADDED
|
Git LFS Details
|