Skip to content

Commit ddc31bc

Browse files
committed
trust paper
1 parent e872ec3 commit ddc31bc

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,13 @@ sampled_seq.shape # (4, 32, 128)
248248
volume = {abs/2207.12598}
249249
}
250250
```
251+
252+
```bibtex
253+
@article{Sunkara2022NoMS,
254+
title = {No More Strided Convolutions or Pooling: A New CNN Building Block for Low-Resolution Images and Small Objects},
255+
author = {Raja Sunkara and Tie Luo},
256+
journal = {ArXiv},
257+
year = {2022},
258+
volume = {abs/2208.03641}
259+
}
260+
```

denoising_diffusion_pytorch/denoising_diffusion_pytorch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ def Upsample(dim, dim_out = None):
8686
)
8787

8888
def Downsample(dim, dim_out = None):
89-
return nn.Conv2d(dim, default(dim_out, dim), 4, 2, 1)
89+
return nn.Sequential(
90+
Rearrange('b c (h p1) (w p2) -> b (c p1 p2) h w', p1 = 2, p2 = 2),
91+
nn.Conv2d(dim * 4, default(dim_out, dim), 1)
92+
)
9093

9194
class WeightStandardizedConv2d(nn.Conv2d):
9295
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'denoising-diffusion-pytorch',
55
packages = find_packages(),
6-
version = '0.31.1',
6+
version = '0.32.0',
77
license='MIT',
88
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)