Image Classification
Transformers
PyTorch
TensorBoard
swinv2
Generated from Trainer
Eval Results (legacy)
Instructions to use Gokulapriyan/swinv2-tiny-patch4-window8-256-finetuned-og_dataset_5e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gokulapriyan/swinv2-tiny-patch4-window8-256-finetuned-og_dataset_5e with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Gokulapriyan/swinv2-tiny-patch4-window8-256-finetuned-og_dataset_5e") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Gokulapriyan/swinv2-tiny-patch4-window8-256-finetuned-og_dataset_5e") model = AutoModelForImageClassification.from_pretrained("Gokulapriyan/swinv2-tiny-patch4-window8-256-finetuned-og_dataset_5e") - Notebooks
- Google Colab
- Kaggle
Commit ·
bca9da9
1
Parent(s): 43ae123
Training in progress, epoch 0
Browse files- .gitignore +1 -0
- config.json +58 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
- runs/Feb15_03-04-52_f495373b455d/1676430302.94261/events.out.tfevents.1676430302.f495373b455d.120.1 +3 -0
- runs/Feb15_03-04-52_f495373b455d/events.out.tfevents.1676430302.f495373b455d.120.0 +3 -0
- training_args.bin +3 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
checkpoint-*/
|
config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/swinv2-tiny-patch4-window8-256",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Swinv2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"depths": [
|
| 8 |
+
2,
|
| 9 |
+
2,
|
| 10 |
+
6,
|
| 11 |
+
2
|
| 12 |
+
],
|
| 13 |
+
"drop_path_rate": 0.1,
|
| 14 |
+
"embed_dim": 96,
|
| 15 |
+
"encoder_stride": 32,
|
| 16 |
+
"hidden_act": "gelu",
|
| 17 |
+
"hidden_dropout_prob": 0.0,
|
| 18 |
+
"hidden_size": 768,
|
| 19 |
+
"id2label": {
|
| 20 |
+
"0": "FNH",
|
| 21 |
+
"1": "HCC",
|
| 22 |
+
"2": "HHE",
|
| 23 |
+
"3": "healthy"
|
| 24 |
+
},
|
| 25 |
+
"image_size": 256,
|
| 26 |
+
"initializer_range": 0.02,
|
| 27 |
+
"label2id": {
|
| 28 |
+
"FNH": 0,
|
| 29 |
+
"HCC": 1,
|
| 30 |
+
"HHE": 2,
|
| 31 |
+
"healthy": 3
|
| 32 |
+
},
|
| 33 |
+
"layer_norm_eps": 1e-05,
|
| 34 |
+
"mlp_ratio": 4.0,
|
| 35 |
+
"model_type": "swinv2",
|
| 36 |
+
"num_channels": 3,
|
| 37 |
+
"num_heads": [
|
| 38 |
+
3,
|
| 39 |
+
6,
|
| 40 |
+
12,
|
| 41 |
+
24
|
| 42 |
+
],
|
| 43 |
+
"num_layers": 4,
|
| 44 |
+
"patch_size": 4,
|
| 45 |
+
"path_norm": true,
|
| 46 |
+
"pretrained_window_sizes": [
|
| 47 |
+
0,
|
| 48 |
+
0,
|
| 49 |
+
0,
|
| 50 |
+
0
|
| 51 |
+
],
|
| 52 |
+
"problem_type": "single_label_classification",
|
| 53 |
+
"qkv_bias": true,
|
| 54 |
+
"torch_dtype": "float32",
|
| 55 |
+
"transformers_version": "4.26.1",
|
| 56 |
+
"use_absolute_embeddings": false,
|
| 57 |
+
"window_size": 8
|
| 58 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"do_resize": true,
|
| 5 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.485,
|
| 8 |
+
0.456,
|
| 9 |
+
0.406
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTFeatureExtractor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.229,
|
| 14 |
+
0.224,
|
| 15 |
+
0.225
|
| 16 |
+
],
|
| 17 |
+
"resample": 3,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 256,
|
| 21 |
+
"width": 256
|
| 22 |
+
}
|
| 23 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39d8425baf040235a73d7cc1a3d45d6beac8f55ea81a7db8e4ee698dc2478a0c
|
| 3 |
+
size 110411297
|
runs/Feb15_03-04-52_f495373b455d/1676430302.94261/events.out.tfevents.1676430302.f495373b455d.120.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4673dcae6d2fe934c9c65b849cada21c315084ea9e3868cd3c6c5b279c169024
|
| 3 |
+
size 5782
|
runs/Feb15_03-04-52_f495373b455d/events.out.tfevents.1676430302.f495373b455d.120.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8d1af7fddb324fb5730b4e905b6b58752cd40ed398f77d3647159989ec85fa3
|
| 3 |
+
size 13030
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fe2a46c9c6014c2190e37d1cefe860341611456ea7a446907be5e0b88324d61
|
| 3 |
+
size 3579
|