mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
cosineをsineのreversedに変更
This commit is contained in:
@@ -441,7 +441,7 @@ class LoRANetwork(torch.nn.Module):
|
|||||||
def get_list(name) -> list[float]:
|
def get_list(name) -> list[float]:
|
||||||
import math
|
import math
|
||||||
if name=="cosine":
|
if name=="cosine":
|
||||||
return [math.cos(math.pi*(i/(max_len-1))/2) for i in range(max_len)]
|
return [math.sin(math.pi*(i/(max_len-1))/2) for i in reversed(range(max_len))]
|
||||||
elif name=="sine":
|
elif name=="sine":
|
||||||
return [math.sin(math.pi*(i/(max_len-1))/2) for i in range(max_len)]
|
return [math.sin(math.pi*(i/(max_len-1))/2) for i in range(max_len)]
|
||||||
elif name=="linear":
|
elif name=="linear":
|
||||||
|
|||||||
Reference in New Issue
Block a user