JMalott commited on
Commit
e38321c
1 Parent(s): 5629479

Update min_dalle/min_dalle.py

Browse files
Files changed (1) hide show
  1. 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(False)
16
- torch.set_num_threads(os.cpu_count())
17
- torch.backends.cudnn.enabled = False
18
- torch.backends.cudnn.allow_tf32 = False
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