加入外破m模型,加入gitignore

main
wangchunlin 3 years ago
parent 78bdd134aa
commit d50a1b8ef3

2
.gitignore vendored

@ -0,0 +1,2 @@
learn/static/
__pycache__

@ -30,7 +30,8 @@
<option value="3">烟火与塔吊</option>
<option value="4">外破ljp4500张四类v5v3</option>
<option value="5">外破ljp4500张四类v5v7</option>
<option value="6">绝缘子缺陷ljp2000张两类v5v7</option>
<option value="6">外破ljp4500张四类v5v7m</option>
<option value="7">绝缘子缺陷ljp2000张两类v5v7</option>
</select>
</h1>
</p>

@ -93,6 +93,9 @@ def upload(request):
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})
if(int(m_class)==6):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v7.0m.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)==7):
RR = DL.run(weights=(curPath+"/yolov5/birdpecked_unnormal_version1.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【绝缘子两类】"+RR+' <br/> '+mesg, 'flag': True})
@ -155,6 +158,9 @@ def dlurl(request):
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})
if(int(m_class)==6):
RR = DL.run(weights=(curPath+"/yolov5/vehicle_4class_ljp_v7.0m.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)==7):
RR = DL.run(weights=(curPath+"/yolov5/birdpecked_unnormal_version1.pt"), source=img_path, project=(curPath+"/static/detected"))
return JsonResponse({'img_name':img_path_res,'code':"【绝缘子两类】"+RR+' <br/> '+mesg, 'flag': True})

@ -1 +1 @@
Subproject commit f6e27faf7e565f7ec35617f51e0154f88ce6e32f
Subproject commit aded49418b7c23dc1dcf7e62fcdaeef7f3feea5b
Loading…
Cancel
Save