Fix metadata

#17
by Xenova HF Staff - opened

The model isn't compatible with Transformers.js because it doesn't have ONNX weights.

Hi, Joshua, I have the ONNX files (BiRefNet-general-epoch_244.onnx for this model repo) in my GitHub repo's release page.
I'm very glad to improve the compatibility for it. What should I do? Thanks a lot for the clues!
Besides, if the ONNX files are added, will it enlarge the size of downloading content?

Thanks! I have made a duplicate repo which has the correct files here: https://huggingface.co/onnx-community/BiRefNet-ONNX
Pretty much the two things you need to do is:

  1. Copy the onnx subfolder from the repository to yours
  2. Update the config.json to include the key: "model_type": "birefnet"

Hi, @Xenova , very sorry for the late reply, got too many things recently.
But ONNX files are also large (tend to be a bit larger than the original weights file), will the modification cause much burden for the user to download?

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment