diffusers
0a151115 - Fix #12116: preserve boolean dtype for attention masks in ChromaPipeline (#12263)

Commit
38 days ago
Fix #12116: preserve boolean dtype for attention masks in ChromaPipeline (#12263) * fix: preserve boolean dtype for attention masks in ChromaPipeline - Convert attention masks to bool and prevent dtype corruption - Fix both positive and negative mask handling in _get_t5_prompt_embeds - Remove float conversion in _prepare_attention_mask method Fixes #12116 * test: add ChromaPipeline attention mask dtype tests * test: add slow ChromaPipeline attention mask tests * chore: removed comments * refactor: removing redundant type conversion * Remove dedicated dtype tests as per feedback --------- Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
Author
Parents
Loading