Skip to content

Commit 9daf78e

Browse files
committed
cleanup karras unet file
1 parent bb7a9be commit 9daf78e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

denoising_diffusion_pytorch/karras_unet.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import math
22
from math import sqrt, ceil
3-
from random import random
43
from functools import partial
54

65
import torch
76
from torch import nn, einsum
87
from torch.nn import Module, ModuleList
9-
from torch.cuda.amp import autocast
108
import torch.nn.functional as F
119

12-
from einops import rearrange, reduce, repeat, pack, unpack
13-
from einops.layers.torch import Rearrange
10+
from einops import rearrange, repeat, pack, unpack
1411

1512
from denoising_diffusion_pytorch.attend import Attend
1613

0 commit comments

Comments
 (0)