Skip to content
New issue

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

Other BiRefNet models? #1

Open
antithing opened this issue Oct 16, 2024 · 1 comment
Open

Other BiRefNet models? #1

antithing opened this issue Oct 16, 2024 · 1 comment

Comments

@antithing
Copy link

antithing commented Oct 16, 2024

Hi, and thank you very much for this code.

Would this work the same with all the models in the model zoo from birefnet?
Specifically I am looking at the portrait model.

Thanks!

..also, a problem:

when i run python pth2onnx.py

I get this error:

C:\BiRefNet\BiRefNet>python pth2onnx.py
Traceback (most recent call last):
  File "C:\BiRefNet\BiRefNet\pth2onnx.py", line 3, in <module>
    from models.birefnet import BiRefNet
  File "C:\BiRefNet\BiRefNet\models\birefnet.py", line 17, in <module>
    class BiRefNet(
TypeError: BiRefNet.__init_subclass__() takes no keyword arguments

I have copied your python to the root of BiRefNet. What am i doing wrong?

@lbq779660843
Copy link
Owner

lbq779660843 commented Jan 17, 2025

I didn't add these BiRefNet associated python libs, so you should copy both 'pth2onnx.py' and 'deform_conv2d_onnx_exporter.py' into the BiRefNet root path then run it at there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants