AliGhiasvand86 commited on
Commit
8bfe1de
·
1 Parent(s): 85fcee8

commit files to HF hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* 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
 
 
 
 
 
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
36
+ images/glioma_tumor.jpg filter=lfs diff=lfs merge=lfs -text
37
+ images/meningioma_tumor.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/no_tumor.jpg filter=lfs diff=lfs merge=lfs -text
39
+ images/pituitary_tumor.jpg filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+
9
+ model-index:
10
+ - name: test_tomur_classification
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.9333333373069763
19
+ ---
20
+
21
+ # test_tomur_classification
22
+
23
+
24
+
25
+ ## Example Images
26
+
27
+
28
+ #### glioma_tumor
29
+
30
+ ![glioma_tumor](images/glioma_tumor.jpg)
31
+
32
+ #### meningioma_tumor
33
+
34
+ ![meningioma_tumor](images/meningioma_tumor.jpg)
35
+
36
+ #### no_tumor
37
+
38
+ ![no_tumor](images/no_tumor.jpg)
39
+
40
+ #### pituitary_tumor
41
+
42
+ ![pituitary_tumor](images/pituitary_tumor.jpg)
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
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": "glioma_tumor",
13
+ "1": "meningioma_tumor",
14
+ "2": "no_tumor",
15
+ "3": "pituitary_tumor"
16
+ },
17
+ "image_size": 224,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "glioma_tumor": "0",
22
+ "meningioma_tumor": "1",
23
+ "no_tumor": "2",
24
+ "pituitary_tumor": "3"
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "model_type": "vit",
28
+ "num_attention_heads": 12,
29
+ "num_channels": 3,
30
+ "num_hidden_layers": 12,
31
+ "patch_size": 16,
32
+ "problem_type": "single_label_classification",
33
+ "qkv_bias": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.34.0"
36
+ }
images/glioma_tumor.jpg ADDED

Git LFS Details

  • SHA256: 37462cc70ce94a639e5f567e7f646471c68c66e685eb9fc000c66c3588def449
  • Pointer size: 130 Bytes
  • Size of remote file: 49.5 kB
images/meningioma_tumor.jpg ADDED

Git LFS Details

  • SHA256: 32e58268a4a9d3f82caec378c1065311360f4212c2ab72a1ca6f1ef8ffcca92b
  • Pointer size: 130 Bytes
  • Size of remote file: 20.7 kB
images/no_tumor.jpg ADDED

Git LFS Details

  • SHA256: 3a4344d358c8faf37824a990ee88b70b6af511ac1925c3d96a831dc579d620db
  • Pointer size: 130 Bytes
  • Size of remote file: 11.1 kB
images/pituitary_tumor.jpg ADDED

Git LFS Details

  • SHA256: f9d0258b9e93c970f46574f7f76ac449b80479c91603e7398690689bc63e73b8
  • Pointer size: 130 Bytes
  • Size of remote file: 43.7 kB
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76a1d7dd750cd8d8741ff6fa1850684cae725d4c46f9137334f308a43ee59710
3
+ size 343272109
runs/events.out.tfevents.1697523791.d5a2404b08c6.1270.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe0c3457208a261a987dce0fea8302a3aafa6ca7f47d23d6c32ac16e91fe0347
3
+ size 1900