mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix #1184, scheduler noise bug during merge madness
This commit is contained in:
parent
9440a50c95
commit
7cdd164d77
@ -92,6 +92,7 @@ class Scheduler:
|
||||
|
||||
def _is_apply_noise(self, t) -> bool:
|
||||
"""Return True if scheduler in noise range."""
|
||||
apply_noise = False
|
||||
if self.noise_range_t is not None:
|
||||
if isinstance(self.noise_range_t, (list, tuple)):
|
||||
apply_noise = self.noise_range_t[0] <= t < self.noise_range_t[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user