Spaces:
Runtime error
Runtime error
- openaimodel.py +2 -2
openaimodel.py
CHANGED
|
@@ -8,7 +8,7 @@ import torch as th
|
|
| 8 |
import torch.nn as nn
|
| 9 |
import torch.nn.functional as F
|
| 10 |
|
| 11 |
-
from
|
| 12 |
checkpoint,
|
| 13 |
conv_nd,
|
| 14 |
linear,
|
|
@@ -17,7 +17,7 @@ from ldm.modules.diffusionmodules.util import (
|
|
| 17 |
normalization,
|
| 18 |
timestep_embedding,
|
| 19 |
)
|
| 20 |
-
from
|
| 21 |
|
| 22 |
|
| 23 |
# dummy replace
|
|
|
|
| 8 |
import torch.nn as nn
|
| 9 |
import torch.nn.functional as F
|
| 10 |
|
| 11 |
+
from util2 import (
|
| 12 |
checkpoint,
|
| 13 |
conv_nd,
|
| 14 |
linear,
|
|
|
|
| 17 |
normalization,
|
| 18 |
timestep_embedding,
|
| 19 |
)
|
| 20 |
+
from attention import SpatialTransformer
|
| 21 |
|
| 22 |
|
| 23 |
# dummy replace
|