Spaces:
Build error
Build error
Update roop/core.py
Browse files- roop/core.py +1 -1
roop/core.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
import os
|
4 |
import sys
|
5 |
-
|
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'
|