We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab24e9 commit b149946Copy full SHA for b149946
swift/StableDiffusion/pipeline/TextEncoderT5.swift
@@ -91,7 +91,7 @@ public struct TextEncoderT5: TextEncoderT5Model {
91
92
let attentionMaskName = "attention_mask"
93
var attentionMask: [Int] = inputIds.map { token in
94
- token == padToken ? maskToken : padToken
+ token == padToken ? padToken : maskToken
95
}
96
attentionMask[0] = bosToken
97
0 commit comments