transformers.js
#12
by
micoworld
- opened
The last step shows an error with a string of numbers
{status: 'progress', name: 'briaai/RMBG-2.0', file: 'onnx/model_fp16.onnx', progress: 100, loaded: 513576499, …}
main.js:36 {status: 'done', name: 'briaai/RMBG-2.0', file: 'onnx/model_fp16.onnx'}
main.js:59 1045705928
(anonymous) @ main.js:59
main.js:60 undefined
cfg.model_type = "detr"
console.log(cfg)
try {
model= await AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-2.0", {
config: cfg,
dtype: "fp16",
progress_callback: progressCallback,
device: "webgpu"
});
} catch (error) {
console.error(error);
console.error(error.message);
}