Unverified Commit 6a05b274 authored by M. Tolga Cangöz's avatar M. Tolga Cangöz Committed by GitHub
Browse files

Fix Typos (#7325)

* Fix PyTorch's convention for inplace functions

* Fix import structure in __init__.py and update config loading logic in test_config.py

* Update configuration access

* Fix typos

* Trim trailing white spaces

* Fix typo in logger name

* Revert "Fix PyTorch's convention for inplace functions"

This reverts commit f65dc4afcb57ceb43d5d06389229d47bafb10d2d.

* Fix typo in step_index property description

* Revert "Update configuration access"

This reverts commit 8d44e870b8c1ad08802e3e904c34baeca1b598f8.

* Revert "Fix import structure in __init__.py and update config loading logic in test_config.py"

This reverts commit 2ad5e8bca25aede3b912da22bd57285b598fe171.

* Fix typos

* Fix typos

* Fix typos

* Fix a typo: tranform -> transform
parent 98d46a3f
......@@ -82,7 +82,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
......@@ -79,7 +79,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
......@@ -81,7 +81,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
......@@ -75,7 +75,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
......@@ -61,7 +61,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -191,7 +191,7 @@ class DEISMultistepScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -61,7 +61,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -282,7 +282,7 @@ class DPMSolverMultistepScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -61,7 +61,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -217,7 +217,7 @@ class DPMSolverMultistepInverseScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -110,7 +110,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -233,7 +233,7 @@ class DPMSolverSDEScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -63,7 +63,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -252,7 +252,7 @@ class DPMSolverSinglestepScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -143,7 +143,7 @@ class EDMDPMSolverMultistepScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -111,7 +111,7 @@ class EDMEulerScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -82,7 +82,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -228,7 +228,7 @@ class EulerAncestralDiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -82,7 +82,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -248,7 +248,7 @@ class EulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -57,7 +57,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -174,7 +174,7 @@ class HeunDiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -61,7 +61,7 @@ class IPNDMScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -58,7 +58,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -151,7 +151,7 @@ class KDPM2AncestralDiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -57,7 +57,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -151,7 +151,7 @@ class KDPM2DiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -84,7 +84,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
......@@ -79,7 +79,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......@@ -180,7 +180,7 @@ class LMSDiscreteScheduler(SchedulerMixin, ConfigMixin):
@property
def step_index(self):
"""
The index counter for current timestep. It will increae 1 after each scheduler step.
The index counter for current timestep. It will increase 1 after each scheduler step.
"""
return self._step_index
......
......@@ -59,7 +59,7 @@ def betas_for_alpha_bar(
return math.exp(t * -12.0)
else:
raise ValueError(f"Unsupported alpha_tranform_type: {alpha_transform_type}")
raise ValueError(f"Unsupported alpha_transform_type: {alpha_transform_type}")
betas = []
for i in range(num_diffusion_timesteps):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment