!python train.py --batch 4 --epochs 10 --data 'data/coco.yaml' --cache_images disk --cfg 'cfg/yolov7-tiny.yaml' --device dml:0 --imgsz 640
dml:0 to set dml device (windows), cuda:0 to set cuda device, cache-images for faster training disk/ram/nopython export.py --weights "yolov7.pt" --include tfjs/onnx/saved_model/openvino/tflite
for more information
python export.py --help
tfjs model can be used with makesense.ai
🔥Actions -> Run AI locally -> YOLOv5 object detection using rectangles -> and import all files from *_web_model folder
also you can follow this step to use (from https://github.com/Hyuto/yolov5-tfjs)
.onnx can be used with python.exe detect.py --weights "yolov7-w6.onnx" --nosave --source 0 --view-img 1 (use 0 to freeze screen)