Compatible with the latest version of transformers

#18

Thanks, Xiaoxiao, amazing! This simple modification can solve their AttributeError in the config object when using transformers?

I download the models from ToT, but still get the 'Config' object has no attribute 'is_encoder_decoder' error.

Thanks for letting me know about it.
Let me merge it now. @hollydonkey , could you give me the feedback on whether this PR can solve your problem there? That help me a lot!

ZhengPeng7 changed pull request status to merged

If so, I'll make this modification on all my BiRefNet models.

I confirm it works. Thank you!

Oh, nice! Let me do the same updates to all other BiRefNet models. And many thanks to @xiaoxiao112233 !

Sign up or log in to comment