Compare commits

...
1 Commits
Author SHA1 Message Date
Phil Wang c6ecca555b allow for configuring expansion factor in convnext 2022-05-04 10:33:23 -07:00
2 changed files with 4 additions and 3 deletions
@@ -238,7 +238,8 @@ class Unet(nn.Module):
channels = 3,
with_time_emb = True,
use_convnext = False,
resnet_block_groups = 8
resnet_block_groups = 8,
convnext_mult = 2
):
super().__init__()
@@ -255,7 +256,7 @@ class Unet(nn.Module):
# resnet or convnext
if use_convnext:
block_klass = ConvNextBlock
block_klass = partial(ConvNextBlock, mult = convnext_mult)
else:
block_klass = partial(ResnetBlock, groups = resnet_block_groups)
+1 -1
View File
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'denoising-diffusion-pytorch',
packages = find_packages(),
version = '0.11.0',
version = '0.11.1',
license='MIT',
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
author = 'Phil Wang',