Instructions to use Siddanna/transparent-tube-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Siddanna/transparent-tube-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Siddanna/transparent-tube-classifier") 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("Siddanna/transparent-tube-classifier") model = AutoModelForImageClassification.from_pretrained("Siddanna/transparent-tube-classifier") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files- config.json +58 -0
- model.safetensors +3 -0
- preprocessor_config.json +27 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"apply_layernorm": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Dinov2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"drop_path_rate": 0.0,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.0,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "transparent_alone",
|
| 14 |
+
"1": "transparent_with_blue"
|
| 15 |
+
},
|
| 16 |
+
"image_size": 518,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"transparent_alone": "0",
|
| 20 |
+
"transparent_with_blue": "1"
|
| 21 |
+
},
|
| 22 |
+
"layer_norm_eps": 1e-06,
|
| 23 |
+
"layerscale_value": 1.0,
|
| 24 |
+
"mlp_ratio": 4,
|
| 25 |
+
"model_type": "dinov2",
|
| 26 |
+
"num_attention_heads": 12,
|
| 27 |
+
"num_channels": 3,
|
| 28 |
+
"num_hidden_layers": 12,
|
| 29 |
+
"out_features": [
|
| 30 |
+
"stage12"
|
| 31 |
+
],
|
| 32 |
+
"out_indices": [
|
| 33 |
+
12
|
| 34 |
+
],
|
| 35 |
+
"patch_size": 14,
|
| 36 |
+
"problem_type": "single_label_classification",
|
| 37 |
+
"qkv_bias": true,
|
| 38 |
+
"reshape_hidden_states": true,
|
| 39 |
+
"stage_names": [
|
| 40 |
+
"stem",
|
| 41 |
+
"stage1",
|
| 42 |
+
"stage2",
|
| 43 |
+
"stage3",
|
| 44 |
+
"stage4",
|
| 45 |
+
"stage5",
|
| 46 |
+
"stage6",
|
| 47 |
+
"stage7",
|
| 48 |
+
"stage8",
|
| 49 |
+
"stage9",
|
| 50 |
+
"stage10",
|
| 51 |
+
"stage11",
|
| 52 |
+
"stage12"
|
| 53 |
+
],
|
| 54 |
+
"transformers_version": "5.6.2",
|
| 55 |
+
"use_cache": false,
|
| 56 |
+
"use_mask_token": true,
|
| 57 |
+
"use_swiglu_ffn": false
|
| 58 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94c8536732044683e027a8cb675f504aaef9e34a951dda5ea7b823e77386b80c
|
| 3 |
+
size 346359928
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"image_mean": [
|
| 12 |
+
0.485,
|
| 13 |
+
0.456,
|
| 14 |
+
0.406
|
| 15 |
+
],
|
| 16 |
+
"image_processor_type": "BitImageProcessor",
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.229,
|
| 19 |
+
0.224,
|
| 20 |
+
0.225
|
| 21 |
+
],
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"shortest_edge": 256
|
| 26 |
+
}
|
| 27 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ee847a252249e1a7785bd1ac55dc65f335ea4900f8e3dc34c9db45c3eb701db
|
| 3 |
+
size 5329
|