IrishMehta commited on
Commit
718f306
·
verified ·
1 Parent(s): 5c859c9

Update model with proper task configuration

Browse files
Files changed (2) hide show
  1. README.md +25 -0
  2. config.json +1 -14
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ tags:
5
+ - image-classification
6
+ - computer-vision
7
+ - fraud-detection
8
+ pipeline_tag: image-classification
9
+ ---
10
+
11
+ # Fraud Detection Image Classification Model
12
+
13
+ This model classifies images into 3 classes:
14
+ - Class 0: Non fraudulent images, passed the safety check
15
+ - Class 1: Fraudulent images of type 5- Inpaint and Rewriting found in the ID
16
+ - Class 2: Fraudulent images of type 6- Cropping and replacement found in the ID
17
+
18
+ ## Usage
19
+
20
+ from transformers import pipeline
21
+
22
+ classifier = pipeline("image-classification", model="IrishMehta/fraud-detection-idnet-three-class")
23
+ result = classifier("path/to/image.jpg")
24
+ print(result)
25
+
config.json CHANGED
@@ -1,14 +1 @@
1
- {
2
- "hidden_size": 2048,
3
- "id2label": {
4
- "0": "0",
5
- "1": "1",
6
- "2": "2"
7
- },
8
- "label2id": {
9
- "0": 0,
10
- "1": 1,
11
- "2": 2
12
- },
13
- "transformers_version": "4.45.2"
14
- }
 
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"}