How to use Intel/dpt-large-ade with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="Intel/dpt-large-ade")
# Load model directly from transformers import AutoImageProcessor, DPTForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("Intel/dpt-large-ade") model = DPTForSemanticSegmentation.from_pretrained("Intel/dpt-large-ade")
Tested today - got deprecation warning - changed to update the usage
· Sign up or log in to comment