Unable to upload a CSV annotation file with images

Hello,
I am new to Roboflow and I am trying to import a set of images and a CSV annotation file.
My directory structure is the following:

Root Folder
├── testing_images
│   ├── image1.jpg
│   ├── image2.jpg
│   └── ...
├── training_images
│   ├── image10.jpg
│   ├── image11.jpg
│   └── ...
└── bounding_boxes.csv

My CSV file contains the following structure:
image,xmin,ymin,xmax,ymax
image1.jpg,0.1,0.2,0.4,0.5
image2.jpg,0.2,0.3,0.5,0.6
...
image10.jpg,0.1,0.2,0.3,0.4
image11.jpg,0.2,0.3,0.4,0.5
...

When I upload data and select the root folder, the images are added but they are not annotated using the info on the CSV file.

Thanks!

Based on the information provided in the extracts, it seems like you’re trying to upload your images and annotations to Roboflow. Here are the steps you can follow:

  1. Create a new project on Roboflow. You can do this by going back to the Roboflow dashboard and clicking “Create New Project”. Choose the “Guided Tour” option. Set a name for your dataset and specify what object you will be detecting. Leave the project type as the default “Object Detection” option since your model will be identifying objects. Click “Create Public Project” to continue. source

  2. Now, you need to upload your images and annotations. Click and drag the folder from your local machine onto the highlighted upload area. Once you drop the folder into Roboflow, the images and annotations are processed for you to see them overlayed. source

  3. If any of your annotations have errors, Roboflow alerts you. For example, if some of the annotations improperly extended beyond the frame of an image, Roboflow intelligently crops the edge of the annotation to line up with the edge of the image and drops erroneous annotations that lie fully outside the image frame. source

If you’re still having trouble with the annotations, it might be due to the format of your CSV file. Roboflow supports most annotation formats, including VGG Image Annotator CSV. You can convert your CSV file to a supported format using Roboflow’s conversion tools. source

If the issue persists, it might be a bug or a temporary issue with the platform. In such cases, it’s recommended to reach out to Roboflow’s support for further assistance.


Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.

Hi @Jeronimo_Bertran - does this work if you locate the csv in each subfolder (e.g., testing_images or training_images)?

You can see all of our formats here. If your format is coming from a popular service or dataset we can make changes to support input.

Hi Jacob,
I copied the CSV file to the folders but the result is the same, no image is annotated. The CSV file contains only:

image,xmin,ymin,xmax,ymax

Here are the first few lines of the CSV.  The image name is a valid image file in the folder.

image,xmin,ymin,xmax,ymax
vid_4_1000.jpg,281.2590449,187.0350708,327.7279305,223.225547
vid_4_10000.jpg,15.16353111,187.0350708,120.3299566,236.4301802
vid_4_10040.jpg,239.1924747,176.7648005,361.9681621,236.4301802
vid_4_10020.jpg,496.4833575,172.3632561,630.0202605,231.5395753
vid_4_10060.jpg,16.63096961,186.5460103,132.5586107,238.3864221

Thanks again!

Where are you getting the annotation format from? It would be helpful to know the source or the name of the format.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.