Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +1 -1
min_dalle/min_dalle.py
CHANGED
@@ -243,7 +243,7 @@ class MinDalle:
|
|
243 |
#torch.cuda.empty_cache()
|
244 |
#torch.cpu.empty_cache()
|
245 |
#with torch.cuda.amp.autocast(dtype=self.dtype):
|
246 |
-
|
247 |
settings=settings,
|
248 |
attention_mask=attention_mask,
|
249 |
encoder_state=encoder_state,
|
|
|
243 |
#torch.cuda.empty_cache()
|
244 |
#torch.cpu.empty_cache()
|
245 |
#with torch.cuda.amp.autocast(dtype=self.dtype):
|
246 |
+
image_tokens[i + 1], attention_state = self.decoder.forward(
|
247 |
settings=settings,
|
248 |
attention_mask=attention_mask,
|
249 |
encoder_state=encoder_state,
|