Gregga1 IrishMehta commited on
Commit
8e9ea60
·
0 Parent(s):

Duplicate from IrishMehta/fraud-detection-idnet-three-class

Browse files

Co-authored-by: Irish Mehta <IrishMehta@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
.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
+
.ipynb_checkpoints/config-checkpoint.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
.ipynb_checkpoints/preprocessor_config-checkpoint.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ConvNextFeatureExtractor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 224
21
+ }
22
+ }
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 ADDED
@@ -0,0 +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", "AutoModelForImageClassification": "transformers.models.resnet.modeling_resnet.ResNetForImageClassification"}
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": 0.875,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ConvNextFeatureExtractor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "shortest_edge": 224
21
+ }
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45f621adf50e91a72e17c9a79b040d507190a0d64132f4aa8c65e096cd6141f3
3
+ size 94371786