diff options
author | Aidan Holland <thehappydinoa@gmail.com> | 2022-10-08 19:12:24 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-08 19:42:30 +0000 |
commit | 432782163ae53e605470bcefc9a6f796c4556912 (patch) | |
tree | f2d3b66f42702599bbbe2267e6b27349ed970d1c /modules/scunet_model_arch.py | |
parent | 610a7f4e1480c0ffeedb2a07dc27ae86bf03c3a8 (diff) | |
download | stable-diffusion-webui-gfx803-432782163ae53e605470bcefc9a6f796c4556912.tar.gz stable-diffusion-webui-gfx803-432782163ae53e605470bcefc9a6f796c4556912.tar.bz2 stable-diffusion-webui-gfx803-432782163ae53e605470bcefc9a6f796c4556912.zip |
chore: Fix typos
Diffstat (limited to 'modules/scunet_model_arch.py')
-rw-r--r-- | modules/scunet_model_arch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/scunet_model_arch.py b/modules/scunet_model_arch.py index 972a2639..43ca8d36 100644 --- a/modules/scunet_model_arch.py +++ b/modules/scunet_model_arch.py @@ -40,7 +40,7 @@ class WMSA(nn.Module): Returns: attn_mask: should be (1 1 w p p), """ - # supporting sqaure. + # supporting square. attn_mask = torch.zeros(h, w, p, p, p, p, dtype=torch.bool, device=self.relative_position_params.device) if self.type == 'W': return attn_mask @@ -65,7 +65,7 @@ class WMSA(nn.Module): x = rearrange(x, 'b (w1 p1) (w2 p2) c -> b w1 w2 p1 p2 c', p1=self.window_size, p2=self.window_size) h_windows = x.size(1) w_windows = x.size(2) - # sqaure validation + # square validation # assert h_windows == w_windows x = rearrange(x, 'b w1 w2 p1 p2 c -> b (w1 w2) (p1 p2) c', p1=self.window_size, p2=self.window_size) |