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

label-studio export returns: unrecognized arguments: --path #5454

Open
Nika-St opened this issue Feb 11, 2024 · 1 comment
Open

label-studio export returns: unrecognized arguments: --path #5454

Nika-St opened this issue Feb 11, 2024 · 1 comment

Comments

@Nika-St
Copy link

Nika-St commented Feb 11, 2024

Describe the bug
label-studio export returns: unrecognized arguments: --path

To Reproduce
Steps to reproduce the behavior:

  1. in terminal, run
    label-studio export 28 JSON --path="./test.json"
  2. command retuns an error
    => Database and media directory: /home//.local/share/label-studio
    => Static URL is set to: /static/
    usage: label-studio [-h] [--version] [-b] [-db DATABASE] [--data-dir DATA_DIR] [-d] [-c CONFIG_PATH] [-l LABEL_CONFIG] [--skip-long-migrations] [--ml-backends ML_BACKENDS [ML_BACKENDS ...]]
    [--sampling {sequential,uniform,prediction-score-min}] [--log-level {DEBUG,INFO,WARNING,ERROR}] [--internal-host INTERNAL_HOST] [-p PORT] [--host HOST] [--cert CERT_FILE]
    [--key KEY_FILE] [--initial-project-description PROJECT_DESC] [--password PASSWORD] [--username USERNAME] [--user-token USER_TOKEN] [--agree-fix-sqlite]
    {version,user,init,start,reset_password,shell,calculate_stats_all_orgs,export,annotations_fill_updated_by} ...
    label-studio: error: unrecognized arguments: --path=./test.json

Expected behavior
Annotations from the project with id 28 exported in JSON format to the specified path, as described here: https://labelstud.io/guide/export.html

Environment (please complete the following information):

  • OS: Ubuntu 20.04.6 LTS
  • Label Studio Version 1.11.0

Additional context
I have many labeled projects and I'd like so export them in multiple formats, so doing that manually in the UI would take too much time. I've written a bash script to loop over projects and formats and generate descriptive filenames, but the export command doesn't work
Thanks!

@AlexanderKozhevin
Copy link

@Nika-St I think I had the same issue

    const command = `sudo docker exec studio label-studio export ${dataset_id} YOLO --export-path=/label-studio/data/tmp`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants