Initial release: FASHN Human Parser - SegFormer-B4 for human parsing a92eba4
Dan Bochman commited on
How to use fashn-ai/fashn-human-parser with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-segmentation", model="fashn-ai/fashn-human-parser") # Load model directly
from transformers import AutoImageProcessor, SegformerForSemanticSegmentation
processor = AutoImageProcessor.from_pretrained("fashn-ai/fashn-human-parser")
model = SegformerForSemanticSegmentation.from_pretrained("fashn-ai/fashn-human-parser", device_map="auto")