commit files to HF hub
Browse files- .gitattributes +2 -0
- README.md +35 -0
- config.json +61 -0
- images/Fe +3 -0
- images/X-ray +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/events.out.tfevents.1736820375.e7ea08cd5e76.4526.0 +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ 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/Fe filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
images/X-ray filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-classification
|
| 4 |
+
- pytorch
|
| 5 |
+
- nasa
|
| 6 |
+
- biological
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
|
| 10 |
+
model-index:
|
| 11 |
+
- name: NASA_GeneLab_Swin_NX1
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
metrics:
|
| 17 |
+
- name: Accuracy
|
| 18 |
+
type: accuracy
|
| 19 |
+
value: 0.530144453048706
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# NASA_GeneLab_Swin_NX1
|
| 23 |
+
|
| 24 |
+
NASA GeneLab VisionTransformer SwinNX01 on BPS Microscopy Data
|
| 25 |
+
|
| 26 |
+
## Example Images
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
#### Fe
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
|
| 33 |
+
#### X-ray
|
| 34 |
+
|
| 35 |
+

|
config.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "microsoft/swin-base-patch4-window7-224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"SwinForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"depths": [
|
| 8 |
+
2,
|
| 9 |
+
2,
|
| 10 |
+
18,
|
| 11 |
+
2
|
| 12 |
+
],
|
| 13 |
+
"drop_path_rate": 0.1,
|
| 14 |
+
"embed_dim": 128,
|
| 15 |
+
"encoder_stride": 32,
|
| 16 |
+
"hidden_act": "gelu",
|
| 17 |
+
"hidden_dropout_prob": 0.0,
|
| 18 |
+
"hidden_size": 1024,
|
| 19 |
+
"id2label": {
|
| 20 |
+
"0": "Fe",
|
| 21 |
+
"1": "X-ray"
|
| 22 |
+
},
|
| 23 |
+
"image_size": 224,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"label2id": {
|
| 26 |
+
"Fe": "0",
|
| 27 |
+
"X-ray": "1"
|
| 28 |
+
},
|
| 29 |
+
"layer_norm_eps": 1e-05,
|
| 30 |
+
"mlp_ratio": 4.0,
|
| 31 |
+
"model_type": "swin",
|
| 32 |
+
"num_channels": 3,
|
| 33 |
+
"num_heads": [
|
| 34 |
+
4,
|
| 35 |
+
8,
|
| 36 |
+
16,
|
| 37 |
+
32
|
| 38 |
+
],
|
| 39 |
+
"num_layers": 4,
|
| 40 |
+
"out_features": [
|
| 41 |
+
"stage4"
|
| 42 |
+
],
|
| 43 |
+
"out_indices": [
|
| 44 |
+
4
|
| 45 |
+
],
|
| 46 |
+
"patch_size": 4,
|
| 47 |
+
"path_norm": true,
|
| 48 |
+
"problem_type": "single_label_classification",
|
| 49 |
+
"qkv_bias": true,
|
| 50 |
+
"stage_names": [
|
| 51 |
+
"stem",
|
| 52 |
+
"stage1",
|
| 53 |
+
"stage2",
|
| 54 |
+
"stage3",
|
| 55 |
+
"stage4"
|
| 56 |
+
],
|
| 57 |
+
"torch_dtype": "float32",
|
| 58 |
+
"transformers_version": "4.48.0",
|
| 59 |
+
"use_absolute_embeddings": false,
|
| 60 |
+
"window_size": 7
|
| 61 |
+
}
|
images/Fe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d65165279105ca6773180500688df4bdc69a2c7b771752f0a46ef120b7fd8ec3
|
| 3 |
+
size 6148
|
images/X-ray
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d65165279105ca6773180500688df4bdc69a2c7b771752f0a46ef120b7fd8ec3
|
| 3 |
+
size 6148
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:beeb8a1505089fc9172a622acae11a6b14a295a5a4df55b08f030fc0f001f383
|
| 3 |
+
size 347498816
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 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": "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": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
runs/events.out.tfevents.1736820375.e7ea08cd5e76.4526.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8d38a99bbe6f885488f2c708271a699e29b5370e267d9ec6c76c2c6cd28fe55
|
| 3 |
+
size 96064
|