Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +4 -4
min_dalle/min_dalle.py
CHANGED
@@ -12,10 +12,10 @@ from .models import DalleBartEncoder, DalleBartDecoder, VQGanDetokenizer
|
|
12 |
import streamlit as st
|
13 |
import time
|
14 |
|
15 |
-
torch.set_grad_enabled(
|
16 |
-
torch.set_num_threads(
|
17 |
-
torch.backends.cudnn.enabled =
|
18 |
-
torch.backends.cudnn.allow_tf32 =
|
19 |
|
20 |
MIN_DALLE_REPO = 'https://huggingface.co/kuprel/min-dalle/resolve/main/'
|
21 |
IMAGE_TOKEN_COUNT = 256
|
|
|
12 |
import streamlit as st
|
13 |
import time
|
14 |
|
15 |
+
torch.set_grad_enabled(True)
|
16 |
+
torch.set_num_threads(1)
|
17 |
+
torch.backends.cudnn.enabled = True
|
18 |
+
torch.backends.cudnn.allow_tf32 = True
|
19 |
|
20 |
MIN_DALLE_REPO = 'https://huggingface.co/kuprel/min-dalle/resolve/main/'
|
21 |
IMAGE_TOKEN_COUNT = 256
|