外破yolov5 ljp完结

main
wangchunlin 3 years ago
parent 2dc0f05163
commit 09257ac1f1

@ -24,11 +24,12 @@
<option value="2">大模型</option> <option value="2">大模型</option>
<option value="3">泛模型</option> <option value="3">泛模型</option>
</select> </select>
<select id="class", style="width: 300px; font-size:30px;"> <select id="class", style="width: 600px; font-size:30px;">
<option value="1">火焰与烟雾</option> <option value="1">火焰与烟雾</option>
<option value="2">一般物体80类</option> <option value="2">一般物体80类</option>
<option value="3">烟火与塔吊</option> <option value="3">烟火与塔吊</option>
<option value="4">外破ljp4500张四类</option> <option value="4">外破ljp4500张四类v5v3</option>
<option value="5">外破ljp4500张四类v5v7</option>
</select> </select>
</h1> </h1>
</p> </p>

@ -87,7 +87,10 @@ def upload(request):
RR = DL.run(weights=(curPath+"/yolov5/fire_smoke_towercrane.pt"), source=img_path, project=(curPath+"/static/detected")) RR = DL.run(weights=(curPath+"/yolov5/fire_smoke_towercrane.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【烟火+塔吊】"+RR+' <br/> '+mesg, 'flag': True}) return JsonResponse({'img_name':img_path_res,'code':"【烟火+塔吊】"+RR+' <br/> '+mesg, 'flag': True})
if(int(m_class)==4): if(int(m_class)==4):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp.pt"), source=img_path, project=(curPath+"/static/detected")) RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v3.0.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True})
if(int(m_class)==5):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v7.0.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True}) return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True})
@ -143,7 +146,10 @@ def dlurl(request):
RR = DL.run(weights=(curPath+"/yolov5/fire_smoke_towercrane.pt"), source=img_path, project=(curPath+"/static/detected")) RR = DL.run(weights=(curPath+"/yolov5/fire_smoke_towercrane.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【烟火+塔吊】"+RR+' <br/> '+mesg, 'flag': True}) return JsonResponse({'img_name':img_path_res,'code':"【烟火+塔吊】"+RR+' <br/> '+mesg, 'flag': True})
if(int(m_class)==4): if(int(m_class)==4):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp.pt"), source=img_path, project=(curPath+"/static/detected")) RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v3.0.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True})
if(int(m_class)==5):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v7.0.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True}) return JsonResponse({'img_name':img_path_res,'code':"【外破四类】"+RR+' <br/> '+mesg, 'flag': True})

@ -1 +1 @@
Subproject commit 526fcb2194eb30261f91e04115a671f9807dcf4e Subproject commit f6e27faf7e565f7ec35617f51e0154f88ce6e32f
Loading…
Cancel
Save