所以我训练了一个yolov4微型模型,并使用此命令对图像进行了完美的预测:
<v-list style="width: 400px;"> <!-- Add specific width to the parent -->
<v-list-item ... >
<div class="... d-flex" style="width: 100%"> <!-- Add d-flex and width: 100% here -->
<v-row ... >
<v-col ... >...</v-col>
<v-col ... >...</v-col>
<v-col ... >...</v-col>
</v-row>
</div>
</v-list-tem>
</v-list>
现在我想对视频进行预测,但是我可以设法找出正确的命令。
答案 0 :(得分:0)
要对视频文件运行检测,请运行detector demo
。就您而言:
!.darknet detector demo build/darknet/x64/cfg/custom-yolov4-tiny-detector.cfg build/darknet/x64/backup/custom-yolov4-tiny-detector_final.weights -ext_output build/darknet/x64/data/obj/your_video.mp4 -dont_show
如果您想查看视频的预测,请添加-out_filename your_video.mp4
因此命令变为:
!.darknet detector demo build/darknet/x64/cfg/custom-yolov4-tiny-detector.cfg build/darknet/x64/backup/custom-yolov4-tiny-detector_final.weights -ext_output build/darknet/x64/data/obj/your_video.mp4 -out_filename detection_results_your_video.mp4 -dont_show