Upload folder using huggingface_hub
Browse files- README.md +31 -0
- checkpoint-2608/config.json +50 -0
- checkpoint-2608/model.safetensors +3 -0
- checkpoint-2608/optimizer.pt +3 -0
- checkpoint-2608/rng_state.pth +3 -0
- checkpoint-2608/scheduler.pt +3 -0
- checkpoint-2608/trainer_state.json +0 -0
- checkpoint-2608/training_args.bin +3 -0
- config.json +50 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- runs/Dec27_12-39-20_ecf72462c8f7/events.out.tfevents.1735303161.ecf72462c8f7.16953.0 +2 -2
- runs/Dec27_12-39-20_ecf72462c8f7/events.out.tfevents.1735303403.ecf72462c8f7.16953.1 +3 -0
- training_args.bin +3 -0
- training_params.json +29 -0
README.md
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
base_model: Bastik22/pneumonia2
|
7 |
+
widget:
|
8 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
9 |
+
example_title: Tiger
|
10 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
11 |
+
example_title: Teapot
|
12 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
13 |
+
example_title: Palace
|
14 |
+
---
|
15 |
+
|
16 |
+
# Model Trained Using AutoTrain
|
17 |
+
|
18 |
+
- Problem type: Image Classification
|
19 |
+
|
20 |
+
## Validation Metrics
|
21 |
+
loss: 1.8160488605499268
|
22 |
+
|
23 |
+
f1: 0.6666666666666666
|
24 |
+
|
25 |
+
precision: 0.5
|
26 |
+
|
27 |
+
recall: 1.0
|
28 |
+
|
29 |
+
auc: 0.8125
|
30 |
+
|
31 |
+
accuracy: 0.5
|
checkpoint-2608/config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Bastik22/pneumonia2",
|
3 |
+
"_num_labels": 2,
|
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": "NORMAL",
|
25 |
+
"1": "PNEUMONIA"
|
26 |
+
},
|
27 |
+
"label2id": {
|
28 |
+
"NORMAL": 0,
|
29 |
+
"PNEUMONIA": 1
|
30 |
+
},
|
31 |
+
"layer_type": "bottleneck",
|
32 |
+
"model_type": "resnet",
|
33 |
+
"num_channels": 3,
|
34 |
+
"out_features": [
|
35 |
+
"stage4"
|
36 |
+
],
|
37 |
+
"out_indices": [
|
38 |
+
4
|
39 |
+
],
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"stage_names": [
|
42 |
+
"stem",
|
43 |
+
"stage1",
|
44 |
+
"stage2",
|
45 |
+
"stage3",
|
46 |
+
"stage4"
|
47 |
+
],
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.47.1"
|
50 |
+
}
|
checkpoint-2608/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a9e268b571c43f0cc4fa8bee7b621e8aabd49c943f279cc63a4f2dc605d42d7
|
3 |
+
size 94302952
|
checkpoint-2608/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3f24ebf5ced47f537d84ecaa3ebedd9ea7bdb701108b97b4a81b03d2480fa23
|
3 |
+
size 188232506
|
checkpoint-2608/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ff264f99d31b522cc7e2a4eac9d38606d0c58a34c0adc74d71e0ca8b371dc36
|
3 |
+
size 14244
|
checkpoint-2608/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c28aac6398e5dff351b046d28f89a1a554cded1e934d9d2c4a7f145fedde764e
|
3 |
+
size 1064
|
checkpoint-2608/trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
checkpoint-2608/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b381f3461f4483130ff5a5471943a5048068c4d03a57bb9af5d7791d70ec988
|
3 |
+
size 5304
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Bastik22/pneumonia2",
|
3 |
+
"_num_labels": 2,
|
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": "NORMAL",
|
25 |
+
"1": "PNEUMONIA"
|
26 |
+
},
|
27 |
+
"label2id": {
|
28 |
+
"NORMAL": 0,
|
29 |
+
"PNEUMONIA": 1
|
30 |
+
},
|
31 |
+
"layer_type": "bottleneck",
|
32 |
+
"model_type": "resnet",
|
33 |
+
"num_channels": 3,
|
34 |
+
"out_features": [
|
35 |
+
"stage4"
|
36 |
+
],
|
37 |
+
"out_indices": [
|
38 |
+
4
|
39 |
+
],
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"stage_names": [
|
42 |
+
"stem",
|
43 |
+
"stage1",
|
44 |
+
"stage2",
|
45 |
+
"stage3",
|
46 |
+
"stage4"
|
47 |
+
],
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.47.1"
|
50 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a9e268b571c43f0cc4fa8bee7b621e8aabd49c943f279cc63a4f2dc605d42d7
|
3 |
+
size 94302952
|
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/Dec27_12-39-20_ecf72462c8f7/events.out.tfevents.1735303161.ecf72462c8f7.16953.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2eb6ba1b952f3c86fb2c703b0aa2a9b12e987b6d3c28ca790456f53553a2149c
|
3 |
+
size 555851
|
runs/Dec27_12-39-20_ecf72462c8f7/events.out.tfevents.1735303403.ecf72462c8f7.16953.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c78c076b8524eb91eb63355dbc534369637daee555aafe078a23861035d15e03
|
3 |
+
size 607
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b381f3461f4483130ff5a5471943a5048068c4d03a57bb9af5d7791d70ec988
|
3 |
+
size 5304
|
training_params.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"data_path": "pneumonia3/autotrain-data",
|
3 |
+
"model": "Bastik22/pneumonia2",
|
4 |
+
"username": "Bastik22",
|
5 |
+
"lr": 5e-05,
|
6 |
+
"epochs": 1,
|
7 |
+
"batch_size": 2,
|
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": "validation",
|
17 |
+
"logging_steps": -1,
|
18 |
+
"project_name": "pneumonia3",
|
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": "autotrain_image",
|
25 |
+
"target_column": "autotrain_label",
|
26 |
+
"log": "tensorboard",
|
27 |
+
"early_stopping_patience": 5,
|
28 |
+
"early_stopping_threshold": 0.01
|
29 |
+
}
|