Instructions to use InfernoDeep/CustomBeit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InfernoDeep/CustomBeit with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, BeitForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("InfernoDeep/CustomBeit") model = BeitForSemanticSegmentation.from_pretrained("InfernoDeep/CustomBeit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from InfernoDeep/CustomBeit: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/InfernoDeep/CustomBeit/resolve/main/config.json
- Command line
-
hf download hf://InfernoDeep/CustomBeit/config.json
-
curl -L -o config.json https://huggingface.co/InfernoDeep/CustomBeit/resolve/main/config.json
1.08 kB
| { | |
| "_name_or_path": "../best_model/checkpoint-4707", | |
| "architectures": [ | |
| "BeitForSemanticSegmentation" | |
| ], | |
| "attention_probs_dropout_prob": 0.2, | |
| "auxiliary_channels": 256, | |
| "auxiliary_concat_input": false, | |
| "auxiliary_loss_weight": 0.4, | |
| "auxiliary_num_convs": 1, | |
| "drop_path_rate": 0.1, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.2, | |
| "hidden_size": 192, | |
| "image_size": 64, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 768, | |
| "layer_norm_eps": 1e-12, | |
| "layer_scale_init_value": 0.1, | |
| "model_type": "beit", | |
| "num_attention_heads": 8, | |
| "num_channels": 28, | |
| "num_hidden_layers": 8, | |
| "out_indices": [ | |
| 3, | |
| 5, | |
| 7, | |
| 11 | |
| ], | |
| "patch_size": 4, | |
| "pool_scales": [ | |
| 1, | |
| 2, | |
| 3, | |
| 6 | |
| ], | |
| "semantic_loss_ignore_index": 255, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.35.0", | |
| "use_absolute_position_embeddings": false, | |
| "use_auxiliary_head": true, | |
| "use_mask_token": false, | |
| "use_mean_pooling": true, | |
| "use_relative_position_bias": false, | |
| "use_shared_relative_position_bias": false, | |
| "vocab_size": 8192 | |
| } | |