8000 [Type hint] PNDM schedulers (#335) · huggingface/diffusers@6756d18 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6756d18

Browse files
dasparthonatolambert
authored andcommitted
[Type hint] PNDM schedulers (#335)
* [Type hint] PNDM Schedulers * ran make style * updated timesteps type hint * apply suggestions from code review * ran make style * removed unused import
1 parent 0ee8661 commit 6756d18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/diffusers/schedulers/scheduling_pndm.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ class PNDMScheduler(SchedulerMixin, ConfigMixin):
7272
@register_to_config
7373
def __init__(
7474
self,
75-
num_train_timesteps=1000,
76-
beta_start=0.0001,
77-
beta_end=0.02,
78-
beta_schedule="linear",
75+
num_train_timesteps: int = 1000,
76+
beta_start: float = 0.0001,
77+
beta_end: float = 0.02,
78+
beta_schedule: str = "linear",
7979
trained_betas=None,
80-
tensor_format="pt",
81-
skip_prk_steps=False,
80+
tensor_format: str = "pt",
81+
skip_prk_steps: bool = False,
8282
):
8383
if trained_betas is not None:
8484
self.betas = np.asarray(trained_betas)

0 commit comments

Comments
 (0)
0