imseldrith commited on
Commit
bd1a77c
1 Parent(s): be505d9

Update roop/core.py

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