How to use openmmlab/upernet-convnext-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="openmmlab/upernet-convnext-small")
# Load model directly from transformers import AutoImageProcessor, UperNetForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("openmmlab/upernet-convnext-small") model = UperNetForSemanticSegmentation.from_pretrained("openmmlab/upernet-convnext-small")
What is a pickle import?