openai / glide-text2im

GLIDE: a diffusion-based text-conditional image synthesis model
MIT License
3.53k stars 500 forks source link

Question about generating masks #38

Open Vanint opened 2 years ago

Vanint commented 2 years ago

Hi, thanks for your great work. I have a question related to mask generation in "bpe.py".

image

As shown in the above figure, it seems that len(tokens) = text_ctx, and then padding = 0. Does this mean there is no padding mask?

Best wishes,