Update model with proper task configuration
Browse files- .ipynb_checkpoints/README-checkpoint.md +24 -0
- config.json +1 -1
.ipynb_checkpoints/README-checkpoint.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- image-classification
|
| 7 |
+
- computer-vision
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Fraud Detection Image Classification Model
|
| 11 |
+
|
| 12 |
+
This model classifies images into 3 classes:
|
| 13 |
+
- Class 0: Non fraudulent images, passed the safety check
|
| 14 |
+
- Class 1: Fraudulent images of type 5- Inpaint and Rewriting found in the ID
|
| 15 |
+
- Class 2: Fraudulent images of type 6- Cropping and replacement found in the ID
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
from transformers import pipeline
|
| 20 |
+
|
| 21 |
+
classifier = pipeline("image-classification", model="IrishMehta/fraud-detection-idnet-three-class")
|
| 22 |
+
result = classifier("path/to/image.jpg")
|
| 23 |
+
print(result)
|
| 24 |
+
|
config.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"architectures": ["ResNetForImageClassification"], "model_type": "resnet", "num_labels": 3, "id2label": {"0": "0", "1": "1", "2": "2"}, "label2id": {"0": 0, "1": 1, "2": 2}, "hidden_size": 2048, "problem_type": "single_label_classification", "pipeline_tag": "image-classification"}
|
|
|
|
| 1 |
+
{"architectures": ["ResNetForImageClassification"], "model_type": "resnet", "num_labels": 3, "id2label": {"0": "0", "1": "1", "2": "2"}, "label2id": {"0": 0, "1": 1, "2": 2}, "hidden_size": 2048, "problem_type": "single_label_classification", "pipeline_tag": "image-classification", "AutoModelForImageClassification": "transformers.models.resnet.modeling_resnet.ResNetForImageClassification"}
|