PKUWilliamYang commited on
Commit
426dd72
1 Parent(s): bd04a87

Update vtoonify_model.py

Browse files
Files changed (1) hide show
  1. vtoonify_model.py +2 -1
vtoonify_model.py CHANGED
@@ -18,6 +18,7 @@ from model.encoder.align_all_parallel import align_face
18
  import gc
19
  import huggingface_hub
20
  import os
 
21
 
22
  MODEL_REPO = 'PKUWilliamYang/VToonify'
23
 
@@ -217,7 +218,7 @@ class Model():
217
  else:
218
  s_w = instyle.clone()
219
  s_w[:,:7] = exstyle[:,:7]
220
- for i in range(num):
221
  success, frame = video_cap.read()
222
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
223
  batch_frames += [self.transform(frame).unsqueeze(dim=0).to(self.device)]
 
18
  import gc
19
  import huggingface_hub
20
  import os
21
+ from tqdm import tqdm
22
 
23
  MODEL_REPO = 'PKUWilliamYang/VToonify'
24
 
 
218
  else:
219
  s_w = instyle.clone()
220
  s_w[:,:7] = exstyle[:,:7]
221
+ for i in tqdm(range(num)):
222
  success, frame = video_cap.read()
223
  frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
224
  batch_frames += [self.transform(frame).unsqueeze(dim=0).to(self.device)]