# CSV annotation files don't work

**URL:** <https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765>\
**Category:** 🤝  Community Help\
**Created:** [March 11, 2024, 12:59pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765 "2024-03-11T12:59:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [March 11, 2024, 12:59pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/1 "2024-03-11T12:59:28Z")

</div>

Hello,  
i have a dataset to do object detection, then i will convert it into coco format using roboflow

I’m new to Roboflow and trying to import a bunch of images and a CSV annotation file.

The image was uploaded successfully, but when I uploaded the annotated CSV nothing happened and the image was not annotated

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

My CSV file contains the following structure:
track_id,frame_id,x,y,w,h,label
_xfiat5odq,1,265,346,43,82,DHelmet
_xfiat5odq,2,258,346,42,80,DHelmet
_xfiat5odq,3,250,345,42,80,DHelmet
...
_z2c597kgo,1,348,352,65,117,DHelmet
_z2c597kgo,2,333,351,64,115,DHelmet
_z2c597kgo,3,318,350,63,112,DHelmet
...

one CSV annotation file contains annotation data for 100 images

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!

```

---

<div class="post-metadata">

**Author:** ![Lenny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lenny/32/2383_2.png) [@Lenny](https://discuss.roboflow.com/u/Lenny)\
**Post date:** [March 11, 2024, 1:01pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/2 "2024-03-11T13:01:32Z")

</div>

Hello,

Based on the information provided, it seems like you’re trying to upload a CSV file with annotations for your images in Roboflow. However, it’s important to note that the CSV file format you’re using might not be compatible with Roboflow’s expected format.

Roboflow supports the Open Images data format, where you receive a large CSV file containing all of the annotations in the entire dataset along with a class map. You also receive `.txt` files for annotations for each image. Roboflow recommends using the `.txt` files for annotations ([source](https://blog.roboflow.com/custom-open-images-datasets#the-open-images-query-tool)).

If you’re having trouble with the CSV file, you might want to consider converting your annotations into a format that Roboflow supports. You can do this by creating a free account with Roboflow and using their data conversion tool ([source](https://blog.roboflow.com/custom-open-images-datasets#the-open-images-query-tool)).

If your annotations have errors, Roboflow will alert you. For example, if some of the annotations improperly extend 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](https://blog.roboflow.com/getting-started-with-roboflow#adding-data)).

If you’re still having trouble, I recommend checking out Roboflow’s documentation or reaching out to their 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.**

---

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [March 12, 2024, 2:45am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/3 "2024-03-12T02:45:22Z")

</div>

I have converted my annotations, from .csv to .xml or .txt, but when I upload the annotation file it still doesn’t read, is this a problem with the data structure in it?

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [March 17, 2024, 4:19am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/4 "2024-03-17T04:19:17Z")

</div>

Hey @Habib

I see that @Lenny inferred a Open Images format, could you should share the specific dataset format that you are trying to upload? A CSV is a file format, and we support the dataset formats listed on [our formats page](https://roboflow.com/formats).

---

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [March 18, 2024, 12:38pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/5 "2024-03-18T12:38:26Z")

</div>

> [@leo](#):
>
> I see that @Lenny inferred a Open Images format, could you should share the specific dataset format that you are trying to upload? A CSV is a file format, and we support the dataset formats listed on [our formats page](https://roboflow.com/formats).

sure, where do I send it?

---

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [March 20, 2024, 5:17pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/6 "2024-03-20T17:17:53Z")

</div>

sorry, you can get the dataset at [https://drive.google.com/open?id=14xE5ldzlM3W7gFORaWAVYnEiT1ycr3DA&usp=drive\_copy](https://drive.google.com/open?id=14xE5ldzlM3W7gFORaWAVYnEiT1ycr3DA&usp=drive_copy)

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [March 28, 2024, 3:53am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/7 "2024-03-28T03:53:55Z")

</div>

Hey @Habib

Sorry for the miscommunication, I meant: Could you tell me the structure or format type that the annotation files are in? (For example, the [Google Cloud AutoML CSV format](https://roboflow.com/formats/cloud-automl-vision-csv) or the [OpenImages CSV format](https://roboflow.com/formats/openimages-csv))

The formats page links to all the annotation formats that we support imports for. If your CSV isn’t in that format, you might have to convert to a supported format.

Also, I couldn’t open the Google Drive link since I didn’t have access.

---

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [March 28, 2024, 4:18am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/8 "2024-03-28T04:18:55Z")

</div>

I think the annotation is RetinaNet CSV format based on what I read in the paper’s publication

Sorry about Gdrive Access, I’ve updated it

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [April 4, 2024, 5:02pm UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/9 "2024-04-04T17:02:07Z")

</div>

Hey @Habib

That format isn’t currently supported for import into Roboflow. You will need to convert it to [one of our supported formats](https://roboflow.com/formats) before you upload the annotation files.

---

<div class="post-metadata">

**Author:** ![Habib](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/habib/32/3942_2.png) [@Habib](https://discuss.roboflow.com/u/Habib)\
**Post date:** [April 6, 2024, 3:38am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/10 "2024-04-06T03:38:16Z")

</div>

OK, thanks for the help and answers, I think I will not use that data set again, because it takes up too much time

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [April 13, 2024, 3:39am UTC](https://discuss.roboflow.com/t/csv-annotation-files-dont-work/4765/11 "2024-04-13T03:39:04Z")

</div>

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