Your Name 4 年之前
父节点
当前提交
7a9653e134
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apis/zhtest.py

+ 2 - 2
apis/zhtest.py

@@ -25,12 +25,12 @@ def full_task(datadict):
     os.chdir('/root/src/CMM_API/tests')
     os.chdir('/root/src/CMM_API/tests')
     os.system('python3 fonttest.py '+title)
     os.system('python3 fonttest.py '+title)
     os.system('curl -o /var/txt/tmp.jpg '+bg1)
     os.system('curl -o /var/txt/tmp.jpg '+bg1)
-    os.system('convert /var/txt/tmp.jpg -resize 1050x1050 > /var/txt/bg1.jpg')
+    os.system('convert /var/txt/tmp.jpg -resize 1050x1050  /var/txt/bg1.jpg')
     os.chdir('/home/jared/to_video')
     os.chdir('/home/jared/to_video')
     os.system('export CUDA_VISIBLE_DEVICES=0 ; python3.7 save_mel.py --face nina-no-ges.mp4 --audio /var/wav/full.wav --outfile /var/video/full.mp4 --checkpoint_path gan.pth')
     os.system('export CUDA_VISIBLE_DEVICES=0 ; python3.7 save_mel.py --face nina-no-ges.mp4 --audio /var/wav/full.wav --outfile /var/video/full.mp4 --checkpoint_path gan.pth')
     #text2mel_name="TACOTRON"
     #text2mel_name="TACOTRON"
     os.chdir('/root/src/CMM_API/tests')
     os.chdir('/root/src/CMM_API/tests')
-    os.chdir('python3 openshottest.py')
+    os.system('python3 openshottest.py')
     return "ok"
     return "ok"