mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-03 07:26:31 +08:00
percent_to_sigma now returns a float instead of a tensor.
This commit is contained in:
@@ -67,11 +67,11 @@ class ModelSamplingDiscreteLCM(torch.nn.Module):
|
||||
|
||||
def percent_to_sigma(self, percent):
|
||||
if percent <= 0.0:
|
||||
return torch.tensor(999999999.9)
|
||||
return 999999999.9
|
||||
if percent >= 1.0:
|
||||
return torch.tensor(0.0)
|
||||
return 0.0
|
||||
percent = 1.0 - percent
|
||||
return self.sigma(torch.tensor(percent * 999.0))
|
||||
return self.sigma(torch.tensor(percent * 999.0)).item()
|
||||
|
||||
|
||||
def rescale_zero_terminal_snr_sigmas(sigmas):
|
||||
|
Reference in New Issue
Block a user