Image Classification
ONNX
dghs-imgutils
art
Plana-Archive commited on
Commit
db1cb05
·
verified ·
1 Parent(s): 7a69008

Migrasi otomatis

Browse files
Files changed (38) hide show
  1. .gitattributes +6 -0
  2. README.md +56 -0
  3. caformer_s36_v0_focal/meta.json +8 -0
  4. caformer_s36_v0_focal/metrics.json +7 -0
  5. caformer_s36_v0_focal/model.ckpt +3 -0
  6. caformer_s36_v0_focal/model.onnx +3 -0
  7. caformer_s36_v0_focal/plot_confusion.png +0 -0
  8. caformer_s36_v0_focal/plot_f1_curve.png +0 -0
  9. caformer_s36_v0_focal/plot_p_curve.png +0 -0
  10. caformer_s36_v0_focal/plot_pr_curve.png +0 -0
  11. caformer_s36_v0_focal/plot_r_curve.png +0 -0
  12. caformer_s36_v0_focal/plot_roc_curve.png +0 -0
  13. caformer_s36_v0_focal/plot_sample_corrupted.png +3 -0
  14. caformer_s36_v0_focal/plot_sample_normal.png +3 -0
  15. caformer_s36_v0_sce/meta.json +8 -0
  16. caformer_s36_v0_sce/metrics.json +7 -0
  17. caformer_s36_v0_sce/model.ckpt +3 -0
  18. caformer_s36_v0_sce/model.onnx +3 -0
  19. caformer_s36_v0_sce/plot_confusion.png +0 -0
  20. caformer_s36_v0_sce/plot_f1_curve.png +0 -0
  21. caformer_s36_v0_sce/plot_p_curve.png +0 -0
  22. caformer_s36_v0_sce/plot_pr_curve.png +0 -0
  23. caformer_s36_v0_sce/plot_r_curve.png +0 -0
  24. caformer_s36_v0_sce/plot_roc_curve.png +0 -0
  25. caformer_s36_v0_sce/plot_sample_corrupted.png +3 -0
  26. caformer_s36_v0_sce/plot_sample_normal.png +3 -0
  27. mobilenetv3_v0_focal_dist/meta.json +8 -0
  28. mobilenetv3_v0_focal_dist/metrics.json +7 -0
  29. mobilenetv3_v0_focal_dist/model.ckpt +3 -0
  30. mobilenetv3_v0_focal_dist/model.onnx +3 -0
  31. mobilenetv3_v0_focal_dist/plot_confusion.png +0 -0
  32. mobilenetv3_v0_focal_dist/plot_f1_curve.png +0 -0
  33. mobilenetv3_v0_focal_dist/plot_p_curve.png +0 -0
  34. mobilenetv3_v0_focal_dist/plot_pr_curve.png +0 -0
  35. mobilenetv3_v0_focal_dist/plot_r_curve.png +0 -0
  36. mobilenetv3_v0_focal_dist/plot_roc_curve.png +0 -0
  37. mobilenetv3_v0_focal_dist/plot_sample_corrupted.png +3 -0
  38. 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

  • SHA256: 0602a0ec87976b1fcb4be69b972ef7f45b7d2f2846b4daf93b9f1734c65fdb10
  • Pointer size: 131 Bytes
  • Size of remote file: 183 kB
caformer_s36_v0_focal/plot_sample_normal.png ADDED

Git LFS Details

  • SHA256: 7b4b1aa9a59b00258846b030422d8e98c31cd5084e22d337134cc2b6c49ceca9
  • Pointer size: 131 Bytes
  • Size of remote file: 175 kB
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

  • SHA256: bebac8442b5e3570ed91a3b3dc08ca5b35c3a77e35cd8a00ce0cd2f6830c9bc8
  • Pointer size: 131 Bytes
  • Size of remote file: 184 kB
caformer_s36_v0_sce/plot_sample_normal.png ADDED

Git LFS Details

  • SHA256: f11cba6443323b2a78b10307b25401772f6e7690b6bc55f655be6411a1022afb
  • Pointer size: 131 Bytes
  • Size of remote file: 176 kB
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

  • SHA256: c18c535c455d98f79fd96069be309952d51fb74debcc9fe4113345b38439f616
  • Pointer size: 131 Bytes
  • Size of remote file: 186 kB
mobilenetv3_v0_focal_dist/plot_sample_normal.png ADDED

Git LFS Details

  • SHA256: 37135a501fdf05b99f7198654c82870d8f70fc388a54db734467183035542133
  • Pointer size: 131 Bytes
  • Size of remote file: 178 kB