Open zhangyhdgut opened 11 months ago
Can you share your cloud storage configuration screen for Label Studio? We will need to see that to verify that this isn't a misconfiguration on the LS side.
First, thanks for your comment.
It also has the same problem when I use the local mode.
The VSCode launch.json
is configured as follows:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: MinIO",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/label_studio/manage.py",
"args": [
"runserver",
"0.0.0.0:9080"
],
"env": {
"DJANGO_DB": "default",
"POSTGRE_NAME": "postgres",
"POSTGRE_USER": "postgres",
"POSTGRE_PASSWORD": "",
"POSTGRE_PORT": "5432",
"POSTGRE_HOST": "127.0.0.1",
"JSON_LOG": "1",
"LOG_LEVEL": "DEBUG",
"MINIO_STORAGE_ACCESS_KEY": "label_minio",
"MINIO_STORAGE_SECRET_KEY": "label_minio",
"MINIO_STORAGE_BUCKET_NAME": "data",
"MINIO_STORAGE_ENDPOINT": "http://10.0.201.52:9000",
},
"django": true,
"justMyCode": true
}
]
}
If I edit the base.py:621 AWS_S3_URL_PROTOCOL
as follows, then the images can be displayed, but the MinIO must have a Public Access Policy):
But when I export the labeled datasets, the export zip file doesn't contain the image files, only the annotation file, result.json.
So, I continue to debug the code, I edit label_studio\data_export\serializers.py:77
, then I can export the image files.
The MinIO configuration:
Last, those fixes may be wrong, because I am not good at Python and Django. I am looking forward to your professional answer, Thanks ~
Describe the bug I use the MinIO as the Label Studio Data Storage, and the label images were successfully uploaded using Minio, but they cannot be displayed on the page.
In Label Studio Project Web Page, I found the 'image' filed in task is erro.
The MinIO Console information:
To Reproduce The 'docker-compose.yml':
Expected behavior Successfully displayed on the page.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):