Description:
In the current implementation, the function log_snr_to_alpha_bar in diffusion.py attempts to call cos_log_snr(t), but this function does not exist in the codebase.
Current code:
def log_snr_to_alpha_bar(t):
return sigmoid(cos_log_snr(t))
Error produced:
NameError: name 'cos_log_snr' is not defined
Root Cause:
The function is actually defined as cosine_log_snr. There is no cos_log_snr.
Proposed Fix:
The call should be updated to match the exact function name:
def log_snr_to_alpha_bar(t):
return sigmoid(cosine_log_snr(t))
Description:
In the current implementation, the function
log_snr_to_alpha_barin diffusion.py attempts to callcos_log_snr(t), but this function does not exist in the codebase.Current code:
Error produced:
Root Cause:
The function is actually defined as
cosine_log_snr. There is nocos_log_snr.Proposed Fix:
The call should be updated to match the exact function name: