Model fails to load using Transformers 4.49.0

#20
by alexsafayan - opened

Using Transformers 4.49.0, model = AutoModelForImageSegmentation.from_pretrained('briaai/RMBG-2.0', trust_remote_code=True) results in this error:

AttributeError: 'Config' object has no attribute 'get_text_config'

It works on Transformers 4.48.0.

@alexsafayan - Thank you so much for posting this πŸ€— - was driving me insane. 4.48.0 worked like you said.

thanks you so much - was driving me crazy too

BRIA AI org

thanks @alexsafayan , it is fixed now.

Sign up or log in to comment