25 lines
1.2 KiB
Bash
25 lines
1.2 KiB
Bash
|
|
#OutVideoW=3840 OutVideoH=2160 OutVideoFps=30 source=/home/thsw2/WJ/data/video3840
|
|
#OutVideoW=1920 OutVideoH=1080 OutVideoFps=30 source=/home/thsw2/WJ/data/video1920
|
|
#OutVideoW=3840 OutVideoH=2160
|
|
OutVideoW=1920 OutVideoH=1080
|
|
OutVideoFps=30
|
|
#source='rtmp://demoplay.yunhengzhizao.cn/live/test' #address2
|
|
#source='rtmp://liveplay.yunhengzhizao.cn/live/demo' #address1
|
|
#source='rtmp://liveplay.yunhengzhizao.cn/live/demo_HD5M' #address1_HD5M
|
|
|
|
source=config/source.txt
|
|
#source='/home/thsw2/WJ/data/THexit/val/images/'
|
|
|
|
#model=runs/train/exp10/weights/best.pt
|
|
#model=weights/best_5classes.pt ###before 1228
|
|
#model=weights/best_5classes_1228.pt
|
|
model=weights/1230_last.pt
|
|
labelnames=config/labelnames.json
|
|
fpsample=720 confthres=0.4
|
|
|
|
#python detect_zhuanbo.py --weights ${model} --source ${source} --OutVideoW ${OutVideoW} --OutVideoH ${OutVideoH} --OutVideoFps ${OutVideoFps} --labelnames ${labelnames} --fpsample ${fpsample} --conf-thres ${confthres}
|
|
|
|
python detect.py --weights ${model} --source ${source} --OutVideoW ${OutVideoW} --OutVideoH ${OutVideoH} --OutVideoFps ${OutVideoFps} --labelnames ${labelnames} --fpsample ${fpsample} --conf-thres ${confthres} &
|
|
python Send_tranfer.py &
|