ubuntu使用 fifty 下载Coco2017 数据集 进行YoloV5_nano训练

安装依赖库

  1. pip3 install fiftyone

测试代码

import fiftyone as fo
import fiftyone.zoo as foz

# reference: https://voxel51.com/docs/fiftyone/tutorials/evaluate_detections.html

datasets = foz.list_zoo_datasets()
print("available datasets:", datasets)

dataset = foz.load_zoo_dataset("coco-2017", split="validation", dataset_name="evaluate-detections-tutorial")
dataset.persistent = True
session = fo.launch_app(dataset)

# print some information about the dataset
print("dataset info:", dataset)

# print a ground truth detection
sample = dataset.first()
print("ground truth:", sample.ground_truth.detections[0])

session.wait()

你可能感兴趣的:(ubuntu,YOLO,python)