Explorar el Código

add swap face test

ming hace 3 años
padre
commit
727eb30301
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      util/swap_face.py

+ 2 - 1
util/swap_face.py

@@ -18,10 +18,11 @@ class swap_face():
         except:
             return '圖片錯誤'
         
-        x = threading.Thread(target=runthreadswap, args=(src_img,sv_path))
+        x = threading.Thread(target=self.runthreadswap, args=(src_img,sv_path))
         x.start()
         
         return '生成中請稍候'
+
     def runthreadswap(self,src_img,sv_path):
         os.system('python3 FaceSwap/main_video.py --src_img '+src_img+' --video_path FaceSwap/nina_noGesture_adj.mp4 --correct_color --save_path '+sv_path)    
         while True: