python darknet_video.py --input 2.mp4 --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data
python darknet_video.py --input 0 --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data
python darknet_video.py --input 1 --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data
python darknet_video.py --input path/to/your/video.mp4 --out_filename processed_video.avi --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data
python darknet_video.py --input path/to/your/video.mp4 --weights path/to/your/weights.weights --config_file path/to/your/config.cfg --data_file path/to/your/data.data
--gpu_index 1
--thresh 0.3
--dont_show
--ext_output
- Right-click in console to stop video
- Left-click in console to resume
- Press 'q' key to stop video
python darknet_images.py --input dog.jpg --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu
python darknet_images.py --input train.txt --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu
python darknet_images.py --input /path/to/folder --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu
python darknet_images.py --input dog.jpg --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu --thresh 0.3
python darknet_images.py --input dog.jpg --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu --nms_thresh 0.45
python darknet_images.py --input train.txt --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu --save_labels
python darknet_images.py --input dog.jpg --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu --ext_output
python darknet_images.py --input dog.jpg --weights yolov4.weights --config_file yolov4.cfg --data_file obj.data --gpu --dont_show
- Ensure correct paths, file names, and formats.
- Use Ctrl+C to stop execution in console.
- Press
qto quit display windows.
Note:
Command usability depends on
darknet_images.pyimplementation and Darknet version.