Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2f57546

Browse files
committedMay 3, 2024
1 parent 16561b3 commit 2f57546

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
 

‎make_a_video_pytorch/make_a_video.py‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,11 @@ def __init__(
346346
dim,
347347
dim_out,
348348
kernel_size = 3,
349-
temporal_kernel_size = None,
350-
groups = 8
349+
temporal_kernel_size = None
351350
):
352351
super().__init__()
353352
self.project = PseudoConv3d(dim, dim_out, 3)
354-
self.norm = nn.GroupNorm(groups, dim_out)
353+
self.norm = RMSNorm(dim_out)
355354
self.act = nn.SiLU()
356355

357356
def forward(
@@ -376,7 +375,6 @@ def __init__(
376375
dim_out,
377376
*,
378377
timestep_cond_dim = None,
379-
groups = 8
380378
):
381379
super().__init__()
382380

@@ -388,8 +386,8 @@ def __init__(
388386
nn.Linear(timestep_cond_dim, dim_out * 2)
389387
)
390388

391-
self.block1 = Block(dim, dim_out, groups = groups)
392-
self.block2 = Block(dim_out, dim_out, groups = groups)
389+
self.block1 = Block(dim, dim_out)
390+
self.block2 = Block(dim_out, dim_out)
393391
self.res_conv = PseudoConv3d(dim, dim_out, 1) if dim != dim_out else nn.Identity()
394392

395393
def forward(

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name = 'make-a-video-pytorch',
55
packages = find_packages(exclude=[]),
6-
version = '0.3.1',
6+
version = '0.4.0',
77
license='MIT',
88
description = 'Make-A-Video - Pytorch',
99
author = 'Phil Wang',

0 commit comments

Comments
 (0)
Please sign in to comment.