Skip to content

Commit 4039258

Browse files
Isotr0pyJimmy
authored andcommitted
fix typo (huggingface#3800)
1 parent 9f0e888 commit 4039258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def get_views(self, panorama_height, panorama_width, window_size=64, stride=8):
463463
panorama_height /= 8
464464
panorama_width /= 8
465465
num_blocks_height = (panorama_height - window_size) // stride + 1 if panorama_height > window_size else 1
466-
num_blocks_width = (panorama_width - window_size) // stride + 1 if panorama_height > window_size else 1
466+
num_blocks_width = (panorama_width - window_size) // stride + 1 if panorama_width > window_size else 1
467467
total_num_blocks = int(num_blocks_height * num_blocks_width)
468468
views = []
469469
for i in range(total_num_blocks):

0 commit comments

Comments
 (0)