|
@@ -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:
|