Skip to content

Commit

Permalink
use beartype
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 23, 2022
1 parent 2481331 commit 4891c02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions imagen_pytorch/imagen_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import copy
from random import random
from typing import List, Union
from beartype import beartype
from tqdm.auto import tqdm
from functools import partial, wraps
from contextlib import contextmanager, nullcontext
Expand Down Expand Up @@ -1747,6 +1748,7 @@ def __init__(self, *args, **kwargs):

# main imagen ddpm class, which is a cascading DDPM from Ho et al.

@beartype
class Imagen(nn.Module):
def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion imagen_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.16.4'
__version__ = '1.16.5'
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
],
install_requires=[
'accelerate',
'beartype',
'click',
'datasets',
'einops>=0.6',
Expand Down

0 comments on commit 4891c02

Please sign in to comment.