Skip to content

Commit 2971fd9

Browse files
committed
Fix sign direction.
1 parent 5e8273b commit 2971fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/txt2img/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func uniPBhUpdate(
190190
let xt_ = Functional.add(
191191
left: x, right: m0, leftScalar: sigmat / sigmas0, rightScalar: -alphat * hPhi1)
192192
if let D1 = D1 {
193-
let xt = Functional.add(left: xt_, right: D1, leftScalar: 1, rightScalar: alphat * Bh * rhosP)
193+
let xt = Functional.add(left: xt_, right: D1, leftScalar: 1, rightScalar: -alphat * Bh * rhosP)
194194
return xt
195195
} else {
196196
return xt_

0 commit comments

Comments
 (0)