mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-14 06:30:04 +08:00
Satisfy ruff
This commit is contained in:
parent
9a53594029
commit
594498ab84
@ -1,11 +1,9 @@
|
||||
import torch
|
||||
|
||||
class EpsilonScaling:
|
||||
"""
|
||||
Implements the Epsilon Scaling method from 'Elucidating the Exposure Bias in Diffusion Models'
|
||||
Implements the Epsilon Scaling method from 'Elucidating the Exposure Bias in Diffusion Models'
|
||||
(https://arxiv.org/abs/2308.15321v6).
|
||||
|
||||
This method mitigates exposure bias by scaling the predicted noise during sampling,
|
||||
This method mitigates exposure bias by scaling the predicted noise during sampling,
|
||||
which can significantly improve sample quality. This implementation uses the "uniform schedule"
|
||||
recommended by the paper for its practicality and effectiveness.
|
||||
"""
|
||||
@ -59,4 +57,4 @@ class EpsilonScaling:
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"Epsilon Scaling": EpsilonScaling
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user