同事大佬給我介紹了bash腳本(也就是shell腳本,格式是.sh)怎麼快捷使用。感謝!
在使用中注意sys與argparse參數輸入時不要重複,這倆庫用一個,似乎不能一起使用,它懵逼,分不清到底是給誰的參數。
在win下創建sh腳本後上傳Linux注意使用sed去掉\r
步驟如下:sh腳本
nohup python server.py --gpu_id=0 &
nohup python server.py --gpu_id=1 &
上傳linux後
chmod a+x server.sh
sed -i 's/\r//' server.sh
然後linux下即可執行
./server.sh
For Video Recommendation in Deep learning QQ Group 277356808
For Speech, Image, Video in deep learning QQ Group 868373192
I'm here waiting for you