fixed potential typo
Seems like it was an oversight, feel free to reject if I was wrong.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user