giacomoarienti
commited on
Commit
•
9a49608
1
Parent(s):
3ef1b41
commit files to HF hub
Browse files- .gitattributes +5 -0
- README.md +52 -0
- config.json +38 -0
- images/drawings.jpg +3 -0
- images/hentai.jpg +3 -0
- images/neutral.jpg +3 -0
- images/porn.jpg +3 -0
- images/sexy.jpg +3 -0
- preprocessor_config.json +22 -0
- pytorch_model.bin +3 -0
- runs/events.out.tfevents.1693911971.cc39628c3981.159.0 +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,8 @@ 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 |
+
images/drawings.jpg filter=lfs diff=lfs merge=lfs -text
|
37 |
+
images/hentai.jpg filter=lfs diff=lfs merge=lfs -text
|
38 |
+
images/neutral.jpg filter=lfs diff=lfs merge=lfs -text
|
39 |
+
images/porn.jpg filter=lfs diff=lfs merge=lfs -text
|
40 |
+
images/sexy.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- image-classification
|
4 |
+
- pytorch
|
5 |
+
- huggingpics
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
|
9 |
+
model-index:
|
10 |
+
- name: nsfw-classifier
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.9200000166893005
|
19 |
+
---
|
20 |
+
|
21 |
+
# nsfw-classifier
|
22 |
+
|
23 |
+
|
24 |
+
Autogenerated by HuggingPics🤗🖼️
|
25 |
+
|
26 |
+
Create your own image classifier for **anything** by running [the demo on Google Colab](https://colab.research.google.com/github/nateraw/huggingpics/blob/main/HuggingPics.ipynb).
|
27 |
+
|
28 |
+
Report any issues with the demo at the [github repo](https://github.com/nateraw/huggingpics).
|
29 |
+
|
30 |
+
|
31 |
+
## Example Images
|
32 |
+
|
33 |
+
|
34 |
+
#### drawings
|
35 |
+
|
36 |
+
![drawings](images/drawings.jpg)
|
37 |
+
|
38 |
+
#### hentai
|
39 |
+
|
40 |
+
![hentai](images/hentai.jpg)
|
41 |
+
|
42 |
+
#### neutral
|
43 |
+
|
44 |
+
![neutral](images/neutral.jpg)
|
45 |
+
|
46 |
+
#### porn
|
47 |
+
|
48 |
+
![porn](images/porn.jpg)
|
49 |
+
|
50 |
+
#### sexy
|
51 |
+
|
52 |
+
![sexy](images/sexy.jpg)
|
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "drawings",
|
13 |
+
"1": "hentai",
|
14 |
+
"2": "neutral",
|
15 |
+
"3": "porn",
|
16 |
+
"4": "sexy"
|
17 |
+
},
|
18 |
+
"image_size": 224,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"drawings": "0",
|
23 |
+
"hentai": "1",
|
24 |
+
"neutral": "2",
|
25 |
+
"porn": "3",
|
26 |
+
"sexy": "4"
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"model_type": "vit",
|
30 |
+
"num_attention_heads": 12,
|
31 |
+
"num_channels": 3,
|
32 |
+
"num_hidden_layers": 12,
|
33 |
+
"patch_size": 16,
|
34 |
+
"problem_type": "single_label_classification",
|
35 |
+
"qkv_bias": true,
|
36 |
+
"torch_dtype": "float32",
|
37 |
+
"transformers_version": "4.33.0"
|
38 |
+
}
|
images/drawings.jpg
ADDED
Git LFS Details
|
images/hentai.jpg
ADDED
Git LFS Details
|
images/neutral.jpg
ADDED
Git LFS Details
|
images/porn.jpg
ADDED
Git LFS Details
|
images/sexy.jpg
ADDED
Git LFS Details
|
preprocessor_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_processor_type": "ViTFeatureExtractor",
|
11 |
+
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
+
],
|
16 |
+
"resample": 2,
|
17 |
+
"rescale_factor": 0.00392156862745098,
|
18 |
+
"size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
}
|
22 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22bc12c4a84272eeeab34ad38b136bf83fc9e26f8c4705646ddedf58abeb2b38
|
3 |
+
size 343275181
|
runs/events.out.tfevents.1693911971.cc39628c3981.159.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfa056d7477c6cba2a54d0dfc95c6e9eb8f7a286b8a789614aeb180ea8954188
|
3 |
+
size 23071
|