Giter Site home page Giter Site logo

Exported project data contains less samples than labelled tasks and 'remove duplicated tasks' does not work with case sensitive filepaths about label-studio HOT 8 CLOSED

massimodt avatar massimodt commented on September 18, 2024
Exported project data contains less samples than labelled tasks and 'remove duplicated tasks' does not work with case sensitive filepaths

from label-studio.

Comments (8)

massimodt avatar massimodt commented on September 18, 2024 1

In my case step 3 was unintentional, after labelling some images I had to split them into two projects, so I moved all images into two folders and renamed them, I also splitted the json array and renamed the task.data, unfortunately I missed a lower case letter. After importing the labels, all seemed fine until I found out that there were duplicated tasks and I was labelling images twice. In my user experience it would have helped me save some time if the front end didn't display the images having a 'wrong' case filepath.

Thank you, I didn't know about this feature to modify fields, I managed to fix filepaths in the json file directly and after reimporting it it worked fine.

As a newbie I spent some time to figure it out so I thought that if this happens to someone else this issue might be helpful.

from label-studio.

massimodt avatar massimodt commented on September 18, 2024 1

oh nice, I can filter by 'Storage filename', that is helpful too!

from label-studio.

makseq avatar makseq commented on September 18, 2024

Why do you need this step?

  1. rename local storage folder containing referenced data with different case (e.g. .\Images-> .\images)

What paths do you have in your original json file? Images or images?

Remove duplicates will work only if your task.data will be absolutely the same with other tasks. It sounds like you need to fix paths in your database, you can try running label studio this way: EXPERIMENTAL_FEATURES=1 label-studio and try to use Add or Modify Field in the data manager actions. There you can type something like replace("image", "Image") and it should rename your paths. Then you will be able to run remove duplicates.

from label-studio.

makseq avatar makseq commented on September 18, 2024

Also you could filter your tasks by path using Data manager filters and remove all images that you don't need.

from label-studio.

makseq avatar makseq commented on September 18, 2024

Is this issue solved now?

from label-studio.

massimodt avatar massimodt commented on September 18, 2024

I think it's still an issue, images should be displayed case-sensitively, it shouldn't happen to have duplicated tasks and 'remove duplicated tasks' does not remove them. Do you agree?

Would it be helpful a pull request to display images case-sensitively?

from label-studio.

massimodt avatar massimodt commented on September 18, 2024

in my opinion 'duplicated task' means that it points to the same data source, I think this is the case.

from label-studio.

massimodt avatar massimodt commented on September 18, 2024

unfortunately I don't have enough time to contribute to this project, I will close this issue. If anyone else finds useful to fix it feel free to reopen. Thanks @makseq!

from label-studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.