harlanhong commited on
Commit
7504615
1 Parent(s): d8320b4
Files changed (2) hide show
  1. demo_dagan.py +1 -1
  2. requirements.txt +2 -2
demo_dagan.py CHANGED
@@ -55,7 +55,7 @@ def find_best_frame(source, driving, cpu=False):
55
  return kp
56
 
57
  fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=True,
58
- device='cpu' if cpu else 'cuda')
59
  kp_source = fa.get_landmarks(255 * source)[0]
60
  kp_source = normalize_kp(kp_source)
61
  norm = float('inf')
 
55
  return kp
56
 
57
  fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._2D, flip_input=True,
58
+ device='cpu')
59
  kp_source = fa.get_landmarks(255 * source)[0]
60
  kp_source = normalize_kp(kp_source)
61
  norm = float('inf')
requirements.txt CHANGED
@@ -28,8 +28,8 @@ sklearn==0.0
28
  tensorboard==1.15.0
29
  threadpoolctl==3.1.0
30
  tifffile==2021.11.2
31
- torch==1.10.1+cu111
32
- torchvision==0.11.2+cu111
33
  tqdm==4.64.0
34
  typing_extensions==4.2.0
35
  Werkzeug==2.1.1
 
28
  tensorboard==1.15.0
29
  threadpoolctl==3.1.0
30
  tifffile==2021.11.2
31
+ torch
32
+ torchvision
33
  tqdm==4.64.0
34
  typing_extensions==4.2.0
35
  Werkzeug==2.1.1