quentintaranpino commited on
Commit
d56accd
1 Parent(s): c297a05

Upload ViTForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +50 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vision-transformer-moderator",
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": "NA: None applying / Safe",
13
+ "1": "O1: Hate, Humiliation, Harassment",
14
+ "2": "O2: Violence, Harm, or Cruelty",
15
+ "3": "O3: Sexual Content",
16
+ "4": "O4: Nudity Content",
17
+ "5": "O5: Criminal Planning",
18
+ "6": "O6: Weapons or Substance Abuse",
19
+ "7": "O7: Self-Harm",
20
+ "8": "O8: Animal Cruelty",
21
+ "9": "O9: Disasters or Emergencies",
22
+ "10": "10: Political Content"
23
+ },
24
+ "image_size": 224,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "10: Political Content": 10,
29
+ "NA: None applying / Safe": 0,
30
+ "O1: Hate, Humiliation, Harassment": 1,
31
+ "O2: Violence, Harm, or Cruelty": 2,
32
+ "O3: Sexual Content": 3,
33
+ "O4: Nudity Content": 4,
34
+ "O5: Criminal Planning": 5,
35
+ "O6: Weapons or Substance Abuse": 6,
36
+ "O7: Self-Harm": 7,
37
+ "O8: Animal Cruelty": 8,
38
+ "O9: Disasters or Emergencies": 9
39
+ },
40
+ "layer_norm_eps": 1e-12,
41
+ "model_type": "vit",
42
+ "num_attention_heads": 12,
43
+ "num_channels": 3,
44
+ "num_hidden_layers": 12,
45
+ "patch_size": 16,
46
+ "problem_type": "single_label_classification",
47
+ "qkv_bias": true,
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.42.4"
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:403d66cd68ce986cd737bd176d514a784f010f4ba347ff0be1a3122995ba60aa
3
+ size 343251660