label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

File names missing when using local files

Open magicaltoast opened this issue 4 years ago • 6 comments

Describe the bug Label studio don't infer filenames from file system while using local files option

To Reproduce Steps to reproduce the behavior:

  1. Create a project
  2. Add cloud storage
  3. Storage type local files
  4. Enable Treat every bucket object as a source file
  5. Enable the filename columns in the task viewer

Expected behavior Display filename as on the filesystem

Screenshots Screenshot from 2021-12-28 23-30-37

Environment (please complete the following information):

  • OS: Ubuntu
  • Label Studio Version: I don't know I guess the latest https://github.com/heartexlabs/label-studio/issues/1880

magicaltoast avatar Dec 28 '21 22:12 magicaltoast

@magicaltoast The file path should be displayed in the data column, but the source filename makes sense when you import dataset from one json file with all tasks.

makseq avatar Dec 28 '21 23:12 makseq

To see file paths you should switch data column to str:

image

image

makseq avatar Dec 28 '21 23:12 makseq

Yes that works, also it explain bug report that my bug report that I just wrote https://github.com/heartexlabs/label-studio/issues/1883

magicaltoast avatar Dec 28 '21 23:12 magicaltoast

@magicaltoast If your problem is solved, please close the tickets ;)

makseq avatar Dec 29 '21 00:12 makseq

@magicaltoast If your problem is solved, please close the tickets ;)

mentioned issue is not solved, but explained. I don't think that ordering by image makes sense. Renaming it for order by path or removing it would solve the issue in my mind

magicaltoast avatar Dec 29 '21 01:12 magicaltoast

And then you can put that into your template using: <Header value="Filename: $image"/> if your file is an image

isarceaux avatar Jun 11 '24 12:06 isarceaux