Bin
2025-12-17 2e6c955be321cefd7e0c4a3031eab805e0a5a303
解决图片导出问题
已修改2个文件
4 ■■■■ 文件已修改
label_studio/data_export/mixins.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
label_studio/data_export/models.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
label_studio/data_export/mixins.py
@@ -352,7 +352,7 @@
            converter = Converter(
                config=self.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,
                # for downloading resource we need access to the API
                access_token=self.project.organization.created_by.auth_token.key,
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,