fixed potential typo

Seems like it was an oversight, feel free to reject if I was wrong.
This commit is contained in:
Extraltodeus
2024-03-08 10:43:10 +01:00
committed by GitHub
parent e7c24c9fa1
commit ae230f29cf
+1 -1
View File
@@ -87,7 +87,7 @@ class CLIPTextEncodePerpWeight:
cond[i][j] = token_vector + (weight * perp)
elif (weight > 0.0) and (weight < 1.0):
cond[i][j] = weight * token_vector
elif (weight > -1.0) and (weight_g < 0.0):
elif (weight > -1.0) and (weight < 0.0):
cond[i][j] = -1 * (zero_vector + (abs(weight) * (token_vector - zero_vector)))
elif weight == -1.0:
cond[i][j] = -1 * token_vector