We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have been building an app using the briaai/RMBG-2.0 model. Everything is working fine but I am getting one error.
Error: Unsupported model type: null
And, If I use a previous version of the model like briaai/RMBG-1.4 Error: Unsupported model type: SegformerForSemanticSegmentation
Model Initialization
state.model = await AutoModelForImageSegmentation.from_pretrained(MODEL_ID, { device: "auto", progress_callback: (progress: ProgressInfo) => { if (callback) { callback(progress); } }, });
Next Config
import type { NextConfig } from "next"; import path from "path"; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const nextConfig: NextConfig = { webpack: (config) => { config.resolve.alias["@huggingface/transformers"] = path.resolve( __dirname, "node_modules/@huggingface/transformers" ); config.resolve.alias = { ...config.resolve.alias, sharp$: false, "onnxruntime-node$": false, }; return config; }, }; export default nextConfig;
Packages "@huggingface/transformers": "^3.2.1", "next": "15.1.1", "react": "^19.0.0",
The model is loaded correctly but not initialized.
Try to load model briaai/RMBG-2.0 in a Nextjs project on the client side.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
System Info
Hi,
I have been building an app using the briaai/RMBG-2.0 model. Everything is working fine but I am getting one error.
Error: Unsupported model type: null
And, If I use a previous version of the model like briaai/RMBG-1.4
Error: Unsupported model type: SegformerForSemanticSegmentation
Model Initialization
Next Config
Packages
"@huggingface/transformers": "^3.2.1",
"next": "15.1.1",
"react": "^19.0.0",
Environment/Platform
Description
The model is loaded correctly but not initialized.
Reproduction
Try to load model briaai/RMBG-2.0 in a Nextjs project on the client side.
The text was updated successfully, but these errors were encountered: