HumanSignal / HumanSignal/label-studio
在windwos 中存在"?d"不被解释问题
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
# 复现方式
- windows+ venv环境
- 1.23.0版本
- 选择读取文件夹内容,不管有没有中文
- 打标后选择导出 YOLOv8 with images
- 出现temp文件夹 eos
> 具体文件 label_studio_sdk - converter - converter.py
> 函数名称 ` convert_to_yolo` 1022行 `filename = os.path.splitext(os.path.basename(image_path))[0]`
> 无法解析 ? 具体表现为 {"image":"\/data\/local-files\/?d=mainJPG%5C057b7937-84.png"}, [Errno 22] Invalid argument: 'C:\\Users\\why\\AppData\\Local\\Temp\\tmp2lxawj2l\\labels\\?d=mainJPG%5C00eb7553-28.txt.tmp'
---
# Windows + venv environment
- Label Studio version: 1.23.0
- Select "Read folder contents" (with or without Chinese characters in the path)
- After labeling, choose to export: YOLOv8 with images
- Issue: A "temp" folder with "eos" is generated
### Error Details
**File Path**: label_studio_sdk/converter/converter.py
**Function**: `convert_to_yolo`
**Line 1022**: `filename = os.path.splitext(os.path.basename(image_path))[0]`
**Issue**: Failed to parse the file path correctly
**Full Error Message**:
{"image":"\/data\/local-files\/?d=mainJPG%5C057b7937-84.png"}, [Errno 22] Invalid argument: 'C:\\Users\\why\\AppData\\Local\\Temp\\tmp2lxawj2l\\labels\\?d=mainJPG%5C00eb7553-28.txt.tmp'
Contributor guide
Assessment
This issue has not been assessed yet.