label-studio
label-studio copied to clipboard
label-studio export returns: unrecognized arguments: --path
Describe the bug label-studio export returns: unrecognized arguments: --path
To Reproduce Steps to reproduce the behavior:
- in terminal, run label-studio export 28 JSON --path="./test.json"
- 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!