Commit 72ebbb9
feat: add option to preserve class ordering during model deployment
Add DISABLE_CLASS_SORTING configuration option to prevent automatic
alphabetical sorting of class names during YOLO model deployment.
Users can set ROBOFLOW_DISABLE_CLASS_SORTING=true to maintain custom
class ordering from model checkpoints.
- Add DISABLE_CLASS_SORTING to config.py (defaults to false)
- Update model_processor.py to conditionally apply sorting
- Include warning comment about user responsibility for proper class ordering
- Maintain backwards compatibility with default behavior
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent 107fb34 commit 72ebbb9
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| |||
0 commit comments