Deep Learning, Machine Learning, Data Science, Computer Vision, Yolo.
ax in enumerate(axes.flatten()): image_path = os.path.join(valid_images_path, selected_images[i]) results = best_model.predict(source=image_path, imgsz=640) annotated_image = results[0].plot() annotated_image_rgb = cv2.cvtColor(annotated_image, cv2.COLOR_BGR2RGB) ax.imshow(annotated_image_rgb)