How to use BritishWerewolf/U-2-Net-Human-Seg with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="BritishWerewolf/U-2-Net-Human-Seg")
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BritishWerewolf/U-2-Net-Human-Seg", dtype="auto")
How to use BritishWerewolf/U-2-Net-Human-Seg with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'BritishWerewolf/U-2-Net-Human-Seg');
The community tab is the place to discuss and collaborate with the HF community!