# Annotations misplaced

**URL:** <https://discuss.roboflow.com/t/annotations-misplaced/679>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [July 12, 2022, 9:56am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679 "2022-07-12T09:56:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Supratim\_Chatterjee](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/supratim_chatterjee/32/411_2.png) [@Supratim\_Chatterjee](https://discuss.roboflow.com/u/Supratim_Chatterjee)\
**Post date:** [July 12, 2022, 9:56am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/1 "2022-07-12T09:56:41Z")

</div>

The annotations are getting misplaced after generating the version from dataset. It seems that the images are getting rotated automatically and the corresponding annotations are not(Auto orient has been disabled in pre processing step).Kindly resolve this bug as it affects model training.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/564d4b087c1684bb202e6b6944f23d462652bde4.jpeg)

---

<div class="post-metadata">

**Author:** ![ARUN\_slcm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ARUN\_slcm](https://discuss.roboflow.com/u/ARUN_slcm)\
**Post date:** [July 12, 2022, 4:31pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/2 "2022-07-12T16:31:42Z")

</div>

Same issue i reported but to no avail …

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [July 12, 2022, 8:49pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/3 "2022-07-12T20:49:23Z")

</div>

Hi @ARUN_slcm @Supratim_Chatterjee - have you tried generating a version with Auto-Orient applied?

> **[When Should I Auto-Orient My Images?](https://blog.roboflow.com/exif-auto-orientation/)**
>
> The short answer: almost always.

Does the same issue occur in that case?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [July 12, 2022, 8:53pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/4 "2022-07-12T20:53:43Z")

</div>

@ARUN_slcm I’m seeing your other report as well: [Training directory empty - #28 by ARUN\_slcm](https://discuss.roboflow.com/t/training-directory-empty/623/28)

I’ll take a look into it to see if I can reproduce the issue and get a report filed for a fix if the bug persists.

---

<div class="post-metadata">

**Author:** ![machado.davy](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/machado.davy/32/545_2.png) [@machado.davy](https://discuss.roboflow.com/u/machado.davy)\
**Post date:** [July 12, 2022, 10:48pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/5 "2022-07-12T22:48:47Z")

</div>

Same issue. The images are getting rotated automatically in a version, but labels are not, even without any preprocessing or augmentation step.

---

<div class="post-metadata">

**Author:** ![Supratim\_Chatterjee](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/supratim_chatterjee/32/411_2.png) [@Supratim\_Chatterjee](https://discuss.roboflow.com/u/Supratim_Chatterjee)\
**Post date:** [July 13, 2022, 4:12am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/6 "2022-07-13T04:12:09Z")

</div>

Yes @Mohamed even with auto orient the same problem occurs.

---

<div class="post-metadata">

**Author:** ![ARUN\_slcm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ARUN\_slcm](https://discuss.roboflow.com/u/ARUN_slcm)\
**Post date:** [July 13, 2022, 4:44am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/7 "2022-07-13T04:44:20Z")

</div>

No not that issue  
this one

> [@Annotation misplaced after generating a new version](https://discuss.roboflow.com/t/annotation-misplaced-after-generating-a-new-version/669):
>
> this issue started this week Project: [Sign in to Roboflow](https://app.roboflow.com/chana/desi/) + more the annotations change ( actually. some thing happens with image ) after a new version is created. this was working till 2/3 days back fine i tried with and with out auto orientation, same issue Now we are blocked We cant even download the data set, the only thing we have is to re-annotate all images off line using some other tool Regds Arun

---

<div class="post-metadata">

**Author:** ![ARUN\_slcm](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ARUN\_slcm](https://discuss.roboflow.com/u/ARUN_slcm)\
**Post date:** [July 14, 2022, 4:13am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/8 "2022-07-14T04:13:39Z")

</div>

@Mohamed were you able to reproduce the issue ?

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [August 10, 2022, 3:51pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/9 "2022-08-10T15:51:47Z")

</div>

The issue was resolved, I’ve been trying to track down the posts referencing it, and replying to them all - this one was from about two weeks ago. Apologies for missing this one:

> [@Downloaded dataset only include README.dataset.txt and README.roboflow.txt](https://discuss.roboflow.com/t/downloaded-dataset-only-include-readme-dataset-txt-and-readme-roboflow-txt/646/6):
>
> This bug itself was fixed last week. If you delete the versions that were affected and regenerate the dataset, the export should include everything. I did also see your other report: ["Generate New Version" Problem in Instance segmentation project - #2 by Mohamed](https://discuss.roboflow.com/t/generate-new-version-problem-in-instance-segmentation-project/739/2) I’m looking into that one.

---

<div class="post-metadata">

**Author:** ![ashley.noronha](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@ashley.noronha](https://discuss.roboflow.com/u/ashley.noronha)\
**Post date:** [December 16, 2022, 2:46pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/10 "2022-12-16T14:46:48Z")

</div>

@Mohamed Hi. I am facing the same issue with my annotations as well. The annotations get rotated but not my images even after trying auto-orient. help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [January 3, 2023, 7:52pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/11 "2023-01-03T19:52:21Z")

</div>

@ashley.noronha were your images all labeled within Roboflow? Or were they labeled elsewhere and then imported to the platform?

Additionally, what project type?

---

<div class="post-metadata">

**Author:** ![ashley.noronha](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@ashley.noronha](https://discuss.roboflow.com/u/ashley.noronha)\
**Post date:** [January 3, 2023, 8:31pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/12 "2023-01-03T20:31:33Z")

</div>

@Mohamed the images were labelled using CVAT. I am using it for object detection with BB

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [January 6, 2023, 6:10pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/13 "2023-01-06T18:10:33Z")

</div>

For the annotation files, what format did you export in?

If it was a COCO JSON format export, can you check to see if the `width` and `height` properties are “reversed” compared to the `width` and `height` dimensions of the original images you uploaded to Robofow? [What is the COCO JSON Annotation Format?](https://roboflow.com/formats/coco-json)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/4/446837dad2c6716b5ac61bd6c9c86939e9b53fc2.png)  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/b/ba699b962bf6720bea154454c7882f2aa3037c22.png)

If so, I believe that may be the issue.

If that turns out to not be the issue, please add Roboflow Support to the workspace so we can take a deeper look, and comment here when you’ve done so.

- [Sharing a Workspace with Roboflow Support - Roboflow](https://docs.roboflow.com/support/sharing-a-workspace-with-roboflow-support)

---

<div class="post-metadata">

**Author:** ![ashley.noronha](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@ashley.noronha](https://discuss.roboflow.com/u/ashley.noronha)\
**Post date:** [January 7, 2023, 2:47pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/14 "2023-01-07T14:47:09Z")

</div>

@Mohamed I do not think the height and widht are reversed. i just granted access to roboflow Support. Could you please take a look? Thank You

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [January 9, 2023, 4:04pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/15 "2023-01-09T16:04:38Z")

</div>

I’ll take a look at that today and get a response back to you once I run some tests, and learn what has occurred.

Additionally, I’ll email you now to receive a copy of the original files you uploaded, as this will be helpful for the debugging process.

---

<div class="post-metadata">

**Author:** ![ashley.noronha](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@ashley.noronha](https://discuss.roboflow.com/u/ashley.noronha)\
**Post date:** [January 10, 2023, 6:24pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/16 "2023-01-10T18:24:45Z")

</div>

@Mohamed Hi. i just emailed you the files 🙂

---

<div class="post-metadata">

**Author:** ![Manthano](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/manthano/32/1294_2.png) [@Manthano](https://discuss.roboflow.com/u/Manthano)\
**Post date:** [April 10, 2023, 4:50pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/17 "2023-04-10T16:50:16Z")

</div>

@ashley.noronha @Mohamed Did you find a solution to that problem? In my case the issue is reproducible the following way:

1. Create dataset on roboflow
2. Annotate data on roboflow and create new dataset version → error already shows up but can’t be corrected since its only a version
3. Export the data in coco format
4. Upload to different project on Roboflow → Annotations are actually wrongly saved

Please advise since I am stuck here.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/b/b79f03e77671ec0ace282f65a61b9032fcc2b44e.jpeg)

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [April 20, 2023, 4:27am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/18 "2023-04-20T04:27:16Z")

</div>

@Manthano can you try:

1. delete all versions with the issue
2. any future versions you generate, ensure `Auto-Orient` is added a preprocessing setting

Let me know if the issue persists after this. I just uploaded an affected image, and found that so long as I kept `Auto-Orient` as a setting, the images turned out fine, and were fine when re-importing.

This is why you want to use Auto-Orient:

- [When Should I Auto-Orient My Images?](https://blog.roboflow.com/exif-auto-orientation/)

---

<div class="post-metadata">

**Author:** ![Manthano](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/manthano/32/1294_2.png) [@Manthano](https://discuss.roboflow.com/u/Manthano)\
**Post date:** [April 23, 2023, 7:45pm UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/19 "2023-04-23T19:45:47Z")

</div>

Hey @Mohamed, the solution was actually to turn on auto-orient. Whats really strange to me is that Roboflow internally rotates the images without giving notice to the user. Nevertheless, that was the solution thanks for the help 🙂 Wish you a nice day.

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [April 24, 2023, 12:05am UTC](https://discuss.roboflow.com/t/annotations-misplaced/679/20 "2023-04-24T00:05:02Z")

</div>

Hi @Manthano - glad to hear that worked! And we actually abide by the information present within the image. Your photos or video were captured with the camera “rotated” vertically or horizontally compared to having the camera pointing “regularly.” What this does is embeds EXIF data in your images.

The Auto-Orient feature removed the EXIF data so your images and labels remain in the correct orientation no matter where you export to train, or choose to train, next.

I will add, the images being rotated on top of each other during generation is not intentional for situations where Auto-Orient is not present. I reported a bug on that, so our team will investigate further to ensure that is resolved.

In the meantime, Auto-Orient should continue to solve the issue.

[Next page](https://discuss.roboflow.com/t/annotations-misplaced/679.md?page=2)
