-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RandomWordMaskingGenerator #1
Comments
Another issue in
|
Another issue in
RuntimeError: expected scalar type float but found c10::Half
|
@songkq Using len(label)+1 in the class AlignCollate and mask_idc = mask_idc + 1 in the RandomWordMaskingGenerator, because we use the mask token as separate token between visual tokens and textual tokens. |
@onealwj Hi, I'm confusing why using
len(label)+1
instead oflen(label)
here in the classAlignCollate
when generating the random word mask?Why dose the
mask_idc
need to plus 1 here in theRandomWordMaskingGenerator
?mask_idc = mask_idc + 1
Could you please give some kind advice?
The text was updated successfully, but these errors were encountered: