From 2e6c955be321cefd7e0c4a3031eab805e0a5a303 Mon Sep 17 00:00:00 2001
From: Bin <bin.zheng@slooong.com>
Date: 星期三, 17 十二月 2025 12:00:39 +0800
Subject: [PATCH] 解决图片导出问题
---
label_studio/data_export/models.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/label_studio/data_export/models.py b/label_studio/data_export/models.py
index 81e034a..9dabd51 100644
--- a/label_studio/data_export/models.py
+++ b/label_studio/data_export/models.py
@@ -159,7 +159,7 @@
converter = Converter(
config=project.get_parsed_config(),
project_dir=None,
- upload_dir=os.path.join(settings.MEDIA_ROOT, settings.UPLOAD_DIR),
+ upload_dir='/data', # 指向 /data 以匹配任务数据中的 /data/upload/ 路径
download_resources=download_resources,
access_token=project.organization.created_by.auth_token.key,
hostname=hostname,
--
Gitblit v1.9.3