GithubHelp home page GithubHelp logo

Comments (8)

makseq avatar makseq commented on June 6, 2024

Could you show LS and LS-converter version you are using?

from label-studio-converter.

rm-data-viz avatar rm-data-viz commented on June 6, 2024

Im using the below docker version of LS.

docker run -it -p 8080:8080 -v pwd/mydata:/label-studio/data heartexlabs/label-studio:latest

from label-studio-converter.

dallidalli avatar dallidalli commented on June 6, 2024

I'm having the same issue. Pascal VOC export is working fine, COCO gives me above error.

According to pip freeze, these are the used versions:

label-studio==1.0.0.post3 label-studio-converter==0.0.26

I installed it under Windows, Python 3.8 using pip install -U label-studio.

from label-studio-converter.

makseq avatar makseq commented on June 6, 2024

@dallidalli Could you try release/1.0.1 branch? I hope it's fixed there.
HumanSignal/label-studio#681

from label-studio-converter.

dallidalli avatar dallidalli commented on June 6, 2024

@makseq I tried to do so, but maybe it wasn't the right way. I tried the following:

  • uninstall the current label-studio installation via pip uninstall label-studio
  • install the mentioned branch using pip install git+https://github.com/heartexlabs/label-studio.git@release/1.0.1

The issue still persists, plus label-studio doesn't look so neat anymore, so I guess I did something wrong when trying the mentioned branch.

Anyways here is a more complete Traceback:

Traceback (most recent call last):
  File "c:\users\dalli\desktop\python_labelling\venv\lib\site-packages\label_studio_converter\converter.py", line 374, in convert_to_coco
    image_path = download(image_path, output_image_dir, project_dir=self.project_dir, return_relative_path=True)
  File "c:\users\dalli\desktop\python_labelling\venv\lib\site-packages\label_studio_converter\utils.py", line 95, in download
    upload_dir = _get_upload_dir(project_dir, upload_dir)
  File "c:\users\dalli\desktop\python_labelling\venv\lib\site-packages\label_studio_converter\utils.py", line 86, in _get_upload_dir
    raise FileNotFoundError("Can't find upload dir: either LS_UPLOAD_DIR or project should be passed to converter")
FileNotFoundError: Can't find upload dir: either LS_UPLOAD_DIR or project should be passed to converter

from label-studio-converter.

makseq avatar makseq commented on June 6, 2024

@dallidalli Could you please clone and install label-studio-converter from the master branch and check - is it working for you now?
https://github.com/heartexlabs/label-studio-converter

git clone https://github.com/heartexlabs/label-studio-converter.git
cd label-studio-converter
pip install -e .

from label-studio-converter.

dallidalli avatar dallidalli commented on June 6, 2024

@makseq thanks for providing the commands.

That did the trick, export to COCO works now. (Except (of course) for the warning during installation regarding an incompatible label-studio-converter version, as label-studio requires 0.0.26)

from label-studio-converter.

makseq avatar makseq commented on June 6, 2024

(Except (of course) for the warning during installation regarding an incompatible label-studio-converter version, as label-studio requires 0.0.26)

It's not a problem 🙂

Thank you very much for your help! I hope we can close this issue. Feel free to reopen if you have these problems again.

from label-studio-converter.

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.