mariamhsein16 commited on
Commit
c3690f5
·
verified ·
1 Parent(s): 49a30d0

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - autotrain
5
+ - transformers
6
+ - image-classification
7
+ base_model: microsoft/resnet-50
8
+ widget:
9
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
10
+ example_title: Tiger
11
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
12
+ example_title: Teapot
13
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
14
+ example_title: Palace
15
+ datasets:
16
+ - JasonChen0317/FacialExpressions
17
+ ---
18
+
19
+ # Model Trained Using AutoTrain
20
+
21
+ - Problem type: Image Classification
22
+
23
+ ## Validation Metrics
24
+ No validation metrics available
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/resnet-50",
3
+ "_num_labels": 7,
4
+ "architectures": [
5
+ "ResNetForImageClassification"
6
+ ],
7
+ "depths": [
8
+ 3,
9
+ 4,
10
+ 6,
11
+ 3
12
+ ],
13
+ "downsample_in_bottleneck": false,
14
+ "downsample_in_first_stage": false,
15
+ "embedding_size": 64,
16
+ "hidden_act": "relu",
17
+ "hidden_sizes": [
18
+ 256,
19
+ 512,
20
+ 1024,
21
+ 2048
22
+ ],
23
+ "id2label": {
24
+ "0": "angry",
25
+ "1": "disgust",
26
+ "2": "fear",
27
+ "3": "happy",
28
+ "4": "neutral",
29
+ "5": "sad",
30
+ "6": "surprise"
31
+ },
32
+ "label2id": {
33
+ "angry": 0,
34
+ "disgust": 1,
35
+ "fear": 2,
36
+ "happy": 3,
37
+ "neutral": 4,
38
+ "sad": 5,
39
+ "surprise": 6
40
+ },
41
+ "layer_type": "bottleneck",
42
+ "model_type": "resnet",
43
+ "num_channels": 3,
44
+ "out_features": [
45
+ "stage4"
46
+ ],
47
+ "out_indices": [
48
+ 4
49
+ ],
50
+ "problem_type": "single_label_classification",
51
+ "stage_names": [
52
+ "stem",
53
+ "stage1",
54
+ "stage2",
55
+ "stage3",
56
+ "stage4"
57
+ ],
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.48.0"
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1464956ded0f51c501fb11120b4e3e08995f44706bafa660e12d3532395cc6c3
3
+ size 94343948
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": "ConvNextImageProcessor",
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
+ }
runs/Jan21_13-54-14_r-mariamhsein16-image-classification-gf62sciv-fa6a8-ggg5t/events.out.tfevents.1769003656.r-mariamhsein16-image-classification-gf62sciv-fa6a8-ggg5t.59.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:13aca2753d5f35b72decac03230845215813fe17e5427e992947df8ac04d996d
3
- size 10016
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4699502615277ad22ad2b062064effd6e7c3986096ec0d26af614ba4539ee358
3
+ size 11003
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16b95ac4bb44322adf71a9dbd7a690b8cb92eb249ffbe7d4f8f31199ba921377
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "JasonChen0317/FacialExpressions",
3
+ "model": "microsoft/resnet-50",
4
+ "username": "mariamhsein16",
5
+ "lr": 5e-05,
6
+ "epochs": 5,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": null,
17
+ "logging_steps": -1,
18
+ "project_name": "FacialExpressionDetection",
19
+ "auto_find_batch_size": false,
20
+ "mixed_precision": "fp16",
21
+ "save_total_limit": 1,
22
+ "push_to_hub": true,
23
+ "eval_strategy": "epoch",
24
+ "image_column": "image",
25
+ "target_column": "label",
26
+ "log": "tensorboard",
27
+ "early_stopping_patience": 5,
28
+ "early_stopping_threshold": 0.01
29
+ }