Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +2 -2
min_dalle/min_dalle.py
CHANGED
@@ -238,7 +238,7 @@ class MinDalle:
|
|
238 |
for i in range( IMAGE_TOKEN_COUNT ):
|
239 |
if(st.session_state.page != 0):
|
240 |
break
|
241 |
-
st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
|
242 |
|
243 |
torch.cuda.empty_cache()
|
244 |
|
@@ -254,7 +254,7 @@ class MinDalle:
|
|
254 |
token_index=token_indices[[i]]
|
255 |
)
|
256 |
|
257 |
-
torch.cuda.empty_cache()
|
258 |
|
259 |
with torch.cuda.amp.autocast(dtype=torch.float16):
|
260 |
if ((i + 1) % 16 == 0 and progressive_outputs) or i + 1 == 256:
|
|
|
238 |
for i in range( IMAGE_TOKEN_COUNT ):
|
239 |
if(st.session_state.page != 0):
|
240 |
break
|
241 |
+
#st.session_state.bar.progress(i/IMAGE_TOKEN_COUNT)
|
242 |
|
243 |
torch.cuda.empty_cache()
|
244 |
|
|
|
254 |
token_index=token_indices[[i]]
|
255 |
)
|
256 |
|
257 |
+
#torch.cuda.empty_cache()
|
258 |
|
259 |
with torch.cuda.amp.autocast(dtype=torch.float16):
|
260 |
if ((i + 1) % 16 == 0 and progressive_outputs) or i + 1 == 256:
|