Commit fcd7819
Improve dataset handling with adaptive folder detection and better test dataset fallback
- Add adaptive val/valid folder detection to support both YOLO (val) and COCO (valid) dataset structures
- Implement fallback mechanism for test dataset since most datasets don't include test split
- Reduce the need for manual dataset modification by automatically handling different folder naming conventions
- Add proper error handling with FileNotFoundError for missing validation folders
- Convert Chinese comments to English for better internationalization
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 24ce179 commit fcd7819
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
241 | 252 | | |
242 | 253 | | |
243 | | - | |
244 | | - | |
| 254 | + | |
245 | 255 | | |
246 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
247 | 264 | | |
248 | 265 | | |
249 | 266 | | |
| |||
0 commit comments