Skip to content

Commit

Permalink
Merge pull request lucidrains#52 from AryaAftab/patch-1
Browse files Browse the repository at this point in the history
Solve issue lucidrains#26
  • Loading branch information
lucidrains authored Jun 29, 2022
2 parents 8408775 + d97bc02 commit 32657f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion denoising_diffusion_pytorch/denoising_diffusion_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@
from torchvision import transforms, utils
from PIL import Image

from tqdm import tqdm
from einops import rearrange, reduce
from einops.layers.torch import Rearrange

from ema_pytorch import EMA

import sys
if 'ipykernel' in sys.modules:
from tqdm.notebook import tqdm
else:
from tqdm import tqdm

# helpers functions

def exists(x):
Expand Down

0 comments on commit 32657f0

Please sign in to comment.