Instructions to use yashshinde0080/regnet_y_400mf-mlxim-finetuned-chest_xray-pneumonia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yashshinde0080/regnet_y_400mf-mlxim-finetuned-chest_xray-pneumonia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="yashshinde0080/regnet_y_400mf-mlxim-finetuned-chest_xray-pneumonia") 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("yashshinde0080/regnet_y_400mf-mlxim-finetuned-chest_xray-pneumonia") model = AutoModelForImageClassification.from_pretrained("yashshinde0080/regnet_y_400mf-mlxim-finetuned-chest_xray-pneumonia", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files- config.json +35 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RegNetForImageClassification"
|
| 4 |
+
],
|
| 5 |
+
"depths": [
|
| 6 |
+
2,
|
| 7 |
+
6,
|
| 8 |
+
12,
|
| 9 |
+
2
|
| 10 |
+
],
|
| 11 |
+
"downsample_in_first_stage": true,
|
| 12 |
+
"dtype": "float32",
|
| 13 |
+
"embedding_size": 32,
|
| 14 |
+
"groups_width": 64,
|
| 15 |
+
"hidden_act": "relu",
|
| 16 |
+
"hidden_sizes": [
|
| 17 |
+
128,
|
| 18 |
+
192,
|
| 19 |
+
512,
|
| 20 |
+
1088
|
| 21 |
+
],
|
| 22 |
+
"id2label": {
|
| 23 |
+
"0": "NORMAL",
|
| 24 |
+
"1": "PNEUMONIA"
|
| 25 |
+
},
|
| 26 |
+
"label2id": {
|
| 27 |
+
"NORMAL": 0,
|
| 28 |
+
"PNEUMONIA": 1
|
| 29 |
+
},
|
| 30 |
+
"layer_type": "y",
|
| 31 |
+
"model_type": "regnet",
|
| 32 |
+
"num_channels": 3,
|
| 33 |
+
"problem_type": "single_label_classification",
|
| 34 |
+
"transformers_version": "4.57.1"
|
| 35 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5103aa5a5a7c8e7979858ee422b7843837e9135b734561865d79b70ac3c61cd3
|
| 3 |
+
size 78556064
|
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.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "ViTImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"resample": 2,
|
| 18 |
+
"rescale_factor": 0.00392156862745098,
|
| 19 |
+
"size": {
|
| 20 |
+
"height": 224,
|
| 21 |
+
"width": 224
|
| 22 |
+
}
|
| 23 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc86c045a3ac8f21a13e88fc5c159249de5ac426cae3065d93c459042e6d1240
|
| 3 |
+
size 5905
|