Instructions to use HorcruxNo13/mobilevitv2-1.0-imagenet1k-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HorcruxNo13/mobilevitv2-1.0-imagenet1k-256 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="HorcruxNo13/mobilevitv2-1.0-imagenet1k-256") 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("HorcruxNo13/mobilevitv2-1.0-imagenet1k-256") model = AutoModelForImageClassification.from_pretrained("HorcruxNo13/mobilevitv2-1.0-imagenet1k-256") - Notebooks
- Google Colab
- Kaggle
Commit ·
cb721b0
1
Parent(s): 5c46844
Training in progress, epoch 1
Browse files- config.json +51 -0
- preprocessor_config.json +16 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "apple/mobilevitv2-1.0-imagenet1k-256",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MobileViTV2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"aspp_dropout_prob": 0.1,
|
| 7 |
+
"aspp_out_channels": 512,
|
| 8 |
+
"atrous_rates": [
|
| 9 |
+
6,
|
| 10 |
+
12,
|
| 11 |
+
18
|
| 12 |
+
],
|
| 13 |
+
"attn_dropout": 0.0,
|
| 14 |
+
"base_attn_unit_dims": [
|
| 15 |
+
128,
|
| 16 |
+
192,
|
| 17 |
+
256
|
| 18 |
+
],
|
| 19 |
+
"classifier_dropout_prob": 0.1,
|
| 20 |
+
"conv_kernel_size": 3,
|
| 21 |
+
"expand_ratio": 2.0,
|
| 22 |
+
"ffn_dropout": 0.0,
|
| 23 |
+
"ffn_multiplier": 2,
|
| 24 |
+
"hidden_act": "swish",
|
| 25 |
+
"id2label": {
|
| 26 |
+
"0": "Normal",
|
| 27 |
+
"1": "Abnormal"
|
| 28 |
+
},
|
| 29 |
+
"image_size": 256,
|
| 30 |
+
"initializer_range": 0.02,
|
| 31 |
+
"label2id": {
|
| 32 |
+
"Abnormal": 1,
|
| 33 |
+
"Normal": 0
|
| 34 |
+
},
|
| 35 |
+
"layer_norm_eps": 1e-05,
|
| 36 |
+
"mlp_ratio": 2.0,
|
| 37 |
+
"model_type": "mobilevitv2",
|
| 38 |
+
"n_attn_blocks": [
|
| 39 |
+
2,
|
| 40 |
+
4,
|
| 41 |
+
3
|
| 42 |
+
],
|
| 43 |
+
"num_channels": 3,
|
| 44 |
+
"output_stride": 32,
|
| 45 |
+
"patch_size": 2,
|
| 46 |
+
"problem_type": "single_label_classification",
|
| 47 |
+
"semantic_loss_ignore_index": 255,
|
| 48 |
+
"torch_dtype": "float32",
|
| 49 |
+
"transformers_version": "4.33.2",
|
| 50 |
+
"width_multiplier": 1.0
|
| 51 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 256,
|
| 4 |
+
"width": 256
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_flip_channel_order": true,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_processor_type": "MobileViTImageProcessor",
|
| 11 |
+
"resample": 2,
|
| 12 |
+
"rescale_factor": 0.00392156862745098,
|
| 13 |
+
"size": {
|
| 14 |
+
"shortest_edge": 288
|
| 15 |
+
}
|
| 16 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a3168412b122c4b8764ef94d38595d0b6d66ac7c629b85a3f26f78c17450203
|
| 3 |
+
size 17720129
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:042bca5676d3bf056732067e9377ef2cace98fc3ef8d73cdfff02cad7a7446b3
|
| 3 |
+
size 4091
|