Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backward slash is appearing in the file_name field of the exported COCO json file on Ubuntu #4473

Closed
roshansinghbisht opened this issue Jul 5, 2023 · 1 comment
Assignees
Labels
community:reviewed Issue has been reviewed by the Label Studio Community Team.

Comments

@roshansinghbisht
Copy link

Description
When exporting annotations in the COCO format, a backward slash appears in the file_name field of the exported COCO JSON file.

To Reproduce

Steps to reproduce the behavior:

  1. I had a pre-annotated COCO json file (generated by the model), and I wanted to refine the bounding boxes.
  2. I followed the steps mentioned over here, and I was able to import the annotations.
  3. I have set 'Local files' as my Source storage type, and my absolute path is: /home/roshan/images
  4. Now, when I export my tasks in the COCO file format, the project gets downloaded and I get the images and result.json in my Downloads folder.
  5. [ISSUE: ] In the result.json file, the file_name field is in the following format: /home/roshan/images/image_name.jpg

Expected behavior
The file_name field should be in this format: /home/roshan/images/image_name.jpg

Screenshots
label-studio-slash

Environment:

  • OS: Ubuntu 22.04.2 LTS
  • Label Studio Version: 1.8.0
@hogepodge
Copy link
Contributor

JSON requires that special characters be escaped to render properly. The \/ is an escape sequence that represents /.

@hogepodge hogepodge added the community:reviewed Issue has been reviewed by the Label Studio Community Team. label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community:reviewed Issue has been reviewed by the Label Studio Community Team.
Projects
None yet
Development

No branches or pull requests

3 participants