# infer results on validation set CONFIDENCE = 0.4 !sed -i "s/inferer = Inferer(source, weights, device, yaml, img_size, half)/inferer = Inferer(source, False, None, weights, device, yaml, img_size, half)/g" ./tools/infer.py !python tools/infer.py --weights ./runs/train/exp/weights/best_ckpt.pt --source "{project_location}/images/val" --conf-thres $CONFIDENCE