diff --git a/config.json b/config.json new file mode 100644 index 0000000..a005602 --- /dev/null +++ b/config.json @@ -0,0 +1,32 @@ +{ + "_name_or_path": "AdamCodd/vit-nsfw-detection", + "architectures": [ + "ViTForImageClassification" + ], + "attention_probs_dropout_prob": 0.0, + "encoder_stride": 16, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.0, + "hidden_size": 768, + "id2label": { + "0": "sfw", + "1": "nsfw" + }, + "image_size": 384, + "initializer_range": 0.02, + "intermediate_size": 3072, + "label2id": { + "sfw": "0", + "nsfw": "1" + }, + "layer_norm_eps": 1e-12, + "model_type": "vit", + "num_attention_heads": 12, + "num_channels": 3, + "num_hidden_layers": 12, + "patch_size": 16, + "problem_type": "single_label_classification", + "qkv_bias": true, + "torch_dtype": "float32", + "transformers_version": "4.36.2" +} diff --git a/confusion_matrix.png b/confusion_matrix.png new file mode 100644 index 0000000..fa247b6 Binary files /dev/null and b/confusion_matrix.png differ diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..bfd2858 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:266efb8bf67c1e865a577222fbbd6ddb149b9e00ba0d2b50466a034837f026a4 +size 344391328 diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..6141142 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,11 @@ +{ + "do_normalize": true, + "do_resize": true, + "image_mean": [0.5, 0.5, 0.5], + "image_processor_type": "ViTImageProcessor", + "image_std": [0.5, 0.5, 0.5], + "size": { + "height": 384, + "width": 384 + } + } \ No newline at end of file