Bin
2025-12-17 dcf780a91c16b6be28635b6e2e0e702060ee19f2
label_studio/data_export/api.py
@@ -208,11 +208,6 @@
        download_resources = query_serializer.validated_data['download_resources']
        interpolate_key_frames = query_serializer.validated_data['interpolate_key_frames']
        
        # COCO 格式特殊处理:强制下载资源并规范化图片URL
        if export_type == 'COCO':
            download_resources = True
            logger.debug(f'COCO export: forced download_resources=True')
        tasks_ids = request.GET.getlist('ids[]')
        logger.debug('Get tasks')
@@ -702,11 +697,6 @@
        serializer.is_valid(raise_exception=True)
        export_type = serializer.validated_data['export_type']
        download_resources = serializer.validated_data.get('download_resources')
        # COCO 格式特殊处理:强制下载资源
        if export_type == 'COCO':
            download_resources = True
            logger.debug(f'COCO export conversion: forced download_resources=True')
        converted_format, created = ConvertedFormat.objects.exclude(
            status=ConvertedFormat.Status.FAILED