Instructions to use ves02/tmp-pl-image-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ves02/tmp-pl-image-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ves02/tmp-pl-image-classification") 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("ves02/tmp-pl-image-classification") model = AutoModelForImageClassification.from_pretrained("ves02/tmp-pl-image-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- config.json +32 -14
- model.safetensors +2 -2
- preprocessor_config.json +10 -11
config.json
CHANGED
|
@@ -1,13 +1,22 @@
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
-
"
|
| 4 |
],
|
| 5 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"dtype": "float32",
|
| 7 |
-
"encoder_stride": 16,
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
-
"
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"id2label": {
|
| 12 |
"0": "tench, Tinca tinca",
|
| 13 |
"1": "goldfish, Carassius auratus",
|
|
@@ -1012,7 +1021,6 @@
|
|
| 1012 |
},
|
| 1013 |
"image_size": 224,
|
| 1014 |
"initializer_range": 0.02,
|
| 1015 |
-
"intermediate_size": 3072,
|
| 1016 |
"label2id": {
|
| 1017 |
"Afghan hound, Afghan": 160,
|
| 1018 |
"African chameleon, Chamaeleo chamaeleon": 47,
|
|
@@ -2015,13 +2023,23 @@
|
|
| 2015 |
"zucchini, courgette": 939
|
| 2016 |
},
|
| 2017 |
"layer_norm_eps": 1e-12,
|
| 2018 |
-
"
|
| 2019 |
-
"
|
| 2020 |
"num_channels": 3,
|
| 2021 |
-
"
|
| 2022 |
-
"
|
| 2023 |
-
|
| 2024 |
-
|
| 2025 |
-
"
|
| 2026 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2027 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architectures": [
|
| 3 |
+
"ConvNextForImageClassification"
|
| 4 |
],
|
| 5 |
+
"depths": [
|
| 6 |
+
3,
|
| 7 |
+
3,
|
| 8 |
+
27,
|
| 9 |
+
3
|
| 10 |
+
],
|
| 11 |
+
"drop_path_rate": 0.0,
|
| 12 |
"dtype": "float32",
|
|
|
|
| 13 |
"hidden_act": "gelu",
|
| 14 |
+
"hidden_sizes": [
|
| 15 |
+
128,
|
| 16 |
+
256,
|
| 17 |
+
512,
|
| 18 |
+
1024
|
| 19 |
+
],
|
| 20 |
"id2label": {
|
| 21 |
"0": "tench, Tinca tinca",
|
| 22 |
"1": "goldfish, Carassius auratus",
|
|
|
|
| 1021 |
},
|
| 1022 |
"image_size": 224,
|
| 1023 |
"initializer_range": 0.02,
|
|
|
|
| 1024 |
"label2id": {
|
| 1025 |
"Afghan hound, Afghan": 160,
|
| 1026 |
"African chameleon, Chamaeleo chamaeleon": 47,
|
|
|
|
| 2023 |
"zucchini, courgette": 939
|
| 2024 |
},
|
| 2025 |
"layer_norm_eps": 1e-12,
|
| 2026 |
+
"layer_scale_init_value": 1e-06,
|
| 2027 |
+
"model_type": "convnext",
|
| 2028 |
"num_channels": 3,
|
| 2029 |
+
"num_stages": 4,
|
| 2030 |
+
"out_features": [
|
| 2031 |
+
"stage4"
|
| 2032 |
+
],
|
| 2033 |
+
"out_indices": [
|
| 2034 |
+
4
|
| 2035 |
+
],
|
| 2036 |
+
"patch_size": 4,
|
| 2037 |
+
"stage_names": [
|
| 2038 |
+
"stem",
|
| 2039 |
+
"stage1",
|
| 2040 |
+
"stage2",
|
| 2041 |
+
"stage3",
|
| 2042 |
+
"stage4"
|
| 2043 |
+
],
|
| 2044 |
+
"transformers_version": "5.9.0"
|
| 2045 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d610857ec4e2ebb6c987e796c64f898526e2e447c5ea38cf528ec6bd1492caf
|
| 3 |
+
size 354407128
|
preprocessor_config.json
CHANGED
|
@@ -1,23 +1,22 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
"do_normalize": true,
|
| 4 |
"do_rescale": true,
|
| 5 |
"do_resize": true,
|
| 6 |
"image_mean": [
|
| 7 |
-
0.
|
| 8 |
-
0.
|
| 9 |
-
0.
|
| 10 |
],
|
| 11 |
-
"image_processor_type": "
|
| 12 |
"image_std": [
|
| 13 |
-
0.
|
| 14 |
-
0.
|
| 15 |
-
0.
|
| 16 |
],
|
| 17 |
-
"resample":
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
-
"
|
| 21 |
-
"width": 224
|
| 22 |
}
|
| 23 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"crop_pct": 0.875,
|
| 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": "ConvNextImageProcessor",
|
| 12 |
"image_std": [
|
| 13 |
+
0.229,
|
| 14 |
+
0.224,
|
| 15 |
+
0.225
|
| 16 |
],
|
| 17 |
+
"resample": 3,
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
+
"shortest_edge": 224
|
|
|
|
| 21 |
}
|
| 22 |
}
|