Run this model with HF Jobs
Run hf-internal-testing/tiny-random-DPTForSemanticSegmentation on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/hf-internal-testing/tiny-random-DPTForSemanticSegmentation. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/hf-internal-testing/tiny-random-DPTForSemanticSegmentation on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use hf-internal-testing/tiny-random-DPTForSemanticSegmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-DPTForSemanticSegmentation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, DPTForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-DPTForSemanticSegmentation") model = DPTForSemanticSegmentation.from_pretrained("hf-internal-testing/tiny-random-DPTForSemanticSegmentation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tiny models for DPTForSemanticSegmentation
Browse filesFiles changed (3)
- config.jsonAdded+47
- preprocessor_config.jsonAdded+25
- pytorch_model.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "architectures": [ "DPTForSemanticSegmentation" ], "attention_probs_dropout_prob": 0.1, "auxiliary_loss_weight": 0.4, "backbone_out_indices": [ 0, 1, 2, 3 ], "fusion_hidden_size": 256, "head_in_index": -1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 32, "image_size": 32, "initializer_range": 0.02, "intermediate_size": 37, "layer_norm_eps": 1e-12, "model_type": "dpt", "neck_hidden_sizes": [ 96, 192, 384, 768 ], "num_attention_heads": 4, "num_channels": 3, "num_hidden_layers": 4, "patch_size": 16, "qkv_bias": true, "readout_type": "project", "reassemble_factors": [ 4, 2, 1, 0.5 ], "semantic_classifier_dropout": 0.1, "semantic_loss_ignore_index": 255, "torch_dtype": "float32", "transformers_version": "4.25.0.dev0", "use_auxiliary_head": true, "use_batch_norm_in_fusion_residual": false}12345678910111213141516171819202122232425{ "crop_size": 32, "do_normalize": true, "do_rescale": true, "do_resize": true, "ensure_multiple_of": 1, "image_mean": [ 0.5, 0.5, 0.5 ], "image_processor_type": "DPTImageProcessor", "image_std": [ 0.5, 0.5, 0.5 ], "keep_aspect_ratio": false, "resample": 2, "rescale_factor": 0.00392156862745098, "size": { "height": 32, "width": 32 }}123version https://git-lfs.github.com/spec/v1oid sha256:5c32d6d28d9550264657700c8a18846bf7f0743ebca10db6183e0332982848b3size 79718189config.jsonAdded+47
preprocessor_config.jsonAdded+25
pytorch_model.binAdded+3