Fix for ValueError: operands could not be broadcast together with shapes
#53
by
tomasruiz
- opened
When we run the video chat example with transformers==4.49.0
, we get this error:
ValueError: operands could not be broadcast together with shapes (336,602,3) (3,3)
The root cause of the problem is a change in the transformers library (https://github.com/huggingface/transformers/commit/a142f161313199bcfa67afe1990d1f0f39a973bb) which changed the execution path inside of the normalize()
functions for inputs that are numpy arrays.
To fix this issue downgrade your transformers version. For us transformers==4.47.1
works fine, but a newer version might also do fine.