How to use amnraw/finetune-instance-segmentation-posture with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="amnraw/finetune-instance-segmentation-posture")
# Load model directly from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation processor = AutoImageProcessor.from_pretrained("amnraw/finetune-instance-segmentation-posture") model = Mask2FormerForUniversalSegmentation.from_pretrained("amnraw/finetune-instance-segmentation-posture")
How to fix it?