If you cannot download the file, you can create it manually by saving the following list into a plain text file named coco.names . Ensure each object is on a and exactly matches the 80 standard COCO classes:
person, bicycle, car, motorbike, aeroplane, bus, train, truck, boat, traffic light, ... (80 total classes) Use code with caution. Option 3: Automate with Python how to download coco.names
Download full annotations from cocodataset.org to extract custom class names if needed. COCO dataset If you cannot download the file, you can
For large-scale projects, you can use libraries like FiftyOne or pycocotools to extract class names directly from official JSON annotations. Option 3: Automate with Python Download full annotations
Ultralytics uses a YAML format ( coco.yaml ) rather than .names . You can download it from the Ultralytics cfg folder . Option 2: Manual Creation