Instructions to use elenaThevalley/mobilenet_v2_1.0_224-finetuned-32bs-0.01lr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use elenaThevalley/mobilenet_v2_1.0_224-finetuned-32bs-0.01lr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="elenaThevalley/mobilenet_v2_1.0_224-finetuned-32bs-0.01lr") 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("elenaThevalley/mobilenet_v2_1.0_224-finetuned-32bs-0.01lr") model = AutoModelForImageClassification.from_pretrained("elenaThevalley/mobilenet_v2_1.0_224-finetuned-32bs-0.01lr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
26017b9
1
Parent(s): 320af82
Training in progress, epoch 0
Browse files- config.json +39 -0
- preprocessor_config.json +26 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google/mobilenet_v2_1.0_224",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MobileNetV2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"classifier_dropout_prob": 0.2,
|
| 7 |
+
"depth_divisible_by": 8,
|
| 8 |
+
"depth_multiplier": 1.0,
|
| 9 |
+
"expand_ratio": 6,
|
| 10 |
+
"finegrained_output": true,
|
| 11 |
+
"first_layer_is_expansion": true,
|
| 12 |
+
"hidden_act": "relu6",
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "DRINK",
|
| 15 |
+
"1": "FOOD",
|
| 16 |
+
"2": "INSIDE",
|
| 17 |
+
"3": "MENU",
|
| 18 |
+
"4": "OUTSIDE"
|
| 19 |
+
},
|
| 20 |
+
"image_size": 224,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
+
"label2id": {
|
| 23 |
+
"DRINK": 0,
|
| 24 |
+
"FOOD": 1,
|
| 25 |
+
"INSIDE": 2,
|
| 26 |
+
"MENU": 3,
|
| 27 |
+
"OUTSIDE": 4
|
| 28 |
+
},
|
| 29 |
+
"layer_norm_eps": 0.001,
|
| 30 |
+
"min_depth": 8,
|
| 31 |
+
"model_type": "mobilenet_v2",
|
| 32 |
+
"num_channels": 3,
|
| 33 |
+
"output_stride": 32,
|
| 34 |
+
"problem_type": "single_label_classification",
|
| 35 |
+
"semantic_loss_ignore_index": 255,
|
| 36 |
+
"tf_padding": true,
|
| 37 |
+
"torch_dtype": "float32",
|
| 38 |
+
"transformers_version": "4.33.1"
|
| 39 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_normalize": true,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_mean": [
|
| 11 |
+
0.5,
|
| 12 |
+
0.5,
|
| 13 |
+
0.5
|
| 14 |
+
],
|
| 15 |
+
"image_processor_type": "MobileNetV2ImageProcessor",
|
| 16 |
+
"image_std": [
|
| 17 |
+
0.5,
|
| 18 |
+
0.5,
|
| 19 |
+
0.5
|
| 20 |
+
],
|
| 21 |
+
"resample": 2,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"shortest_edge": 256
|
| 25 |
+
}
|
| 26 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b50af6bc2dbfff85a86701204a5900e2f0c8062527a3e5549f443856caf9725a
|
| 3 |
+
size 9161589
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:894056fbe6d2ce3b0fcff3c3eac54721c8f00dcb382e2a1103e13867e81469b1
|
| 3 |
+
size 4091
|