yerang commited on
Commit
95cf2dd
·
verified ·
1 Parent(s): 4af26af

Update stf/stf-api-alternative/src/stf_alternative/preprocess_dir/utils/crop_with_fan.py

Browse files
stf/stf-api-alternative/src/stf_alternative/preprocess_dir/utils/crop_with_fan.py CHANGED
@@ -4,7 +4,7 @@ import pdb
4
  from glob import glob
5
  from pathlib import Path
6
 
7
- import cv2
8
  import face_alignment
9
  import imageio
10
  import imageio_ffmpeg
 
4
  from glob import glob
5
  from pathlib import Path
6
 
7
+ import cv2; cv2.setNumThreads(0); cv2.ocl.setUseOpenCL(False)
8
  import face_alignment
9
  import imageio
10
  import imageio_ffmpeg