Janus icon indicating copy to clipboard operation
Janus copied to clipboard

AttributeError: 'tuple' object has no attribute 'get_seq_length'

Open SimonYS001 opened this issue 11 months ago • 3 comments

Hi,

When I ran the JanusFlow model, it had the error "AttributeError: 'tuple' object has no attribute 'get_seq_length'". How to solve it?

Thanks,

Regards,

Simon

SimonYS001 avatar Jan 29 '25 20:01 SimonYS001

reinstall transformers==4.38.2

fifthbeatles avatar Jan 29 '25 23:01 fifthbeatles

reinstall transformers==4.38.2

Thanks! It works for me.

Purshow avatar Feb 03 '25 07:02 Purshow

i got a fix without having to reinstall transformers

https://github.com/deepseek-ai/Janus/issues/77#issuecomment-2634147660

scifisatan avatar Feb 04 '25 14:02 scifisatan