Instructions to use Xenova/clipseg-rd64-refined with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/clipseg-rd64-refined with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'Xenova/clipseg-rd64-refined');
how using Optimum to convert it ?
#1
by summon - opened
Optimum is good, but I used the tool to convert, but I converted failed. because I don't know how to setting task config, can u help me?
optimum-cli export onnx --model CIDAS/clipseg-rd64-refined clipseg_onnx/ --opset 11 --batch_size 1 --sequence_length 77 --width 352 --height 352 but get error:ValueError: Unrecognized configuration classes ('AutoModelForImageSegmentation', 'AutoModelForSemanticSegmentation') do not match with the model type clipseg and task image-segmentation