Skip to content

New tasks are created when syncing again after export , When using the s3 cloud storage of Label Studio #8838

@chunxueer

Description

@chunxueer

Describe the bug
New tasks are created when syncing again after export , When using the s3 cloud storage of Label Studio

To Reproduce
Steps to reproduce the behavior:

  1. Create a project, import images, and annotate them
Image

2.Configure S3 cloud storage, export first and then import
Image

3.There is an additional task in the task list that cannot be annotated, and there are differences in its attributes
Image

4.The files exported from S3 cloud storage are numbered and do not have a. json file suffix

Image

Expected behavior

  1. I hope that the number of tasks after exporting and importing remains unchanged.
  2. Annotations and images can also be displayed normally.
  3. The file name exported from S3 cloud storage data files is not just a number, but a JSON file with the same name as the image.

Environment (please complete the following information):

-- docker-compose.yml

services:
  sti-label-studio:
    stdin_open: true
    tty: true 
    image: heartexlabs/label-studio:latest
    restart: unless-stopped
    expose:
      - "8000"
    ports:
      - "35001:8000" 
    environment:
      - DJANGO_DB=default
      - POSTGRE_NAME=${POSTGRE_NAME}
      - POSTGRE_USER=${POSTGRE_USER}
      - POSTGRE_PASSWORD=${POSTGRE_PASSWORD}
      - POSTGRE_PORT=${POSTGRE_PORT}
      - POSTGRE_HOST=${POSTGRE_HOST}
      - LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-}
      
      - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
      - AWS_STORAGE_BUCKET_NAME=${AWS_STORAGE_BUCKET_NAME}
      - AWS_S3_ENDPOINT_URL=${AWS_S3_ENDPOINT_URL}
      - AWS_S3_REGION_NAME=${AWS_S3_REGION_NAME}
      - AWS_DEFAULT_ACL=${AWS_DEFAULT_ACL}
      - USE_S3_STORAGE=${USE_S3_STORAGE}
      
      - JSON_LOG=1
    #      - LOG_LEVEL=DEBUG
    volumes:
      - /data/sti/label-studio/data:/label-studio/data:rw
    command: label-studio-uwsgi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions