danielgatis / rembg

Rembg is a tool to remove images background
MIT License
16.48k stars 1.84k forks source link

[FEATURE] ...Why when I use other models than "u2net" model, such as isnet-general-use" model, there will be onnxruntimec error? #463

Closed Bruce337f closed 1 year ago

Bruce337f commented 1 year ago

At this point rembg is already the latest version!!

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: input_image for the following indices index: 2 Got: 768 Expected: 1024 index: 3 Got: 768 Expected: 1024 Please fix either the inputs or the model.

Bruce337f commented 1 year ago

Does anyone know a solution, how can I go about it?