Skip to content

Commit 6a4b973

Browse files
committed
make style
1 parent dddba27 commit 6a4b973

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/community/rerender_a_video.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
from diffusers.pipelines.controlnet.pipeline_controlnet_img2img import StableDiffusionControlNetImg2ImgPipeline
3131
from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
3232
from diffusers.schedulers import KarrasDiffusionSchedulers
33-
from diffusers.utils import is_torch_xla_available, BaseOutput, deprecate, logging
33+
from diffusers.utils import BaseOutput, deprecate, is_torch_xla_available, logging
3434
from diffusers.utils.torch_utils import is_compiled_module, randn_tensor
3535

36+
3637
if is_torch_xla_available():
3738
import torch_xla.core.xla_model as xm
3839

@@ -42,6 +43,7 @@
4243

4344
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
4445

46+
4547
def coords_grid(b, h, w, homogeneous=False, device=None):
4648
y, x = torch.meshgrid(torch.arange(h), torch.arange(w)) # [H, W]
4749

@@ -1104,7 +1106,7 @@ def denoising_loop(latents, mask=None, xtrg=None, noise_rescale=None):
11041106
progress_bar.update()
11051107
if callback is not None and i % callback_steps == 0:
11061108
callback(i, t, latents)
1107-
1109+
11081110
if XLA_AVAILABLE:
11091111
xm.mark_step()
11101112

0 commit comments

Comments
 (0)