Repository navigation
Commit c97587a
authored
Rename variable 'bboxes' to 'in_bboxes' in example to Fix `bboxes` being overwritten before use in `prepare_example`
**Problem**
In `prepare_example`, `objects["bbox"]` is assigned to `bboxes`, and a few lines
later `bboxes, cats, areas, ids = [], [], [], []` rebinds the same name to an
empty list. `zip(bboxes, categories)` then iterates over nothing, so every example
is returned with an empty `bbox` list and the `filter(len(...) > 0)` step drops
the whole dataset (train/validation sizes print as 0).
**Check**
After the change, `Train: <N>, Validation: <M>` prints non-zero sizes.
1 parent e03c353 commit c97587a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments