Spaces:
Runtime error
Runtime error
attention-refocusing
commited on
Commit
Β·
f412da9
1
Parent(s):
99d6c89
Update gligen/ldm/modules/diffusionmodules/openaimodel.py
Browse files
gligen/ldm/modules/diffusionmodules/openaimodel.py
CHANGED
@@ -208,10 +208,10 @@ class ResBlock(TimestepBlock):
|
|
208 |
# return checkpoint(
|
209 |
# self._forward, (x, emb), self.parameters(), self.use_checkpoint
|
210 |
# )
|
211 |
-
if self.use_checkpoint and x.requires_grad:
|
212 |
-
|
213 |
-
else:
|
214 |
-
|
215 |
|
216 |
|
217 |
def _forward(self, x, emb):
|
|
|
208 |
# return checkpoint(
|
209 |
# self._forward, (x, emb), self.parameters(), self.use_checkpoint
|
210 |
# )
|
211 |
+
# if self.use_checkpoint and x.requires_grad:
|
212 |
+
# return checkpoint.checkpoint(self._forward, x, emb )
|
213 |
+
# else:
|
214 |
+
return self._forward(x, emb)
|
215 |
|
216 |
|
217 |
def _forward(self, x, emb):
|