Explorar o código

Script for video face swapping(You can choose to add or not add a watermark )

NNNNAI %!s(int64=4) %!d(string=hai) anos
pai
achega
d2af8165f2
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      test_video_swapmutil.py
  2. 1 1
      test_video_swapsingle.py

+ 1 - 1
test_video_swapmutil.py

@@ -68,5 +68,5 @@ if __name__ == '__main__':
     latend_id = model.netArc(img_id_downsample)
     latend_id = F.normalize(latend_id, p=2, dim=1)
 
-    video_swap(opt.video_path, latend_id, model, app, opt.output_path,temp_results_dir=opt.temp_path)
+    video_swap(opt.video_path, latend_id, model, app, opt.output_path,temp_results_dir=opt.temp_path,no_simswaplogo=opt.no_simswaplogo)
 

+ 1 - 1
test_video_swapsingle.py

@@ -68,5 +68,5 @@ if __name__ == '__main__':
     latend_id = model.netArc(img_id_downsample)
     latend_id = F.normalize(latend_id, p=2, dim=1)
 
-    video_swap(opt.video_path, latend_id, model, app, opt.output_path,temp_results_dir=opt.temp_path)
+    video_swap(opt.video_path, latend_id, model, app, opt.output_path,temp_results_dir=opt.temp_path,no_simswaplogo=opt.no_simswaplogo)