tsi-org commited on
Commit
9f1c8f8
·
1 Parent(s): 161514d

Update roop/core.py

Browse files
Files changed (1) hide show
  1. roop/core.py +1 -1
roop/core.py CHANGED
@@ -2,7 +2,7 @@
2
 
3
  import os
4
  import sys
5
- # os.environ["CUDA_VISIBLE_DEVICES"] = ""
6
  # single thread doubles cuda performance - needs to be set before torch import
7
  if any(arg.startswith('--execution-provider') for arg in sys.argv):
8
  os.environ['OMP_NUM_THREADS'] = '1'
 
2
 
3
  import os
4
  import sys
5
+ os.environ["CUDA_VISIBLE_DEVICES"] = "0"
6
  # single thread doubles cuda performance - needs to be set before torch import
7
  if any(arg.startswith('--execution-provider') for arg in sys.argv):
8
  os.environ['OMP_NUM_THREADS'] = '1'