Skip to content

Conversation

@josteng
Copy link

@josteng josteng commented May 30, 2025

This PR fixes several issues in the training dataset and corrects some problems in the annotation GUI that were responsible for causing them.

Fixed training data issues

Videos with swapped axes
training_020, training_058, training_076, training_078, training_079, training_082, training_083, training_089

Inconsistent annotations (wrong number of hexbugs)

  • training049: frame 1 had 4 hexbugs instead of 1
  • training064: frame 100 was missing one hexbug
  • training072: frame 100 was missing one hexbug
  • training088: frame 100 was missing one hexbug

Out-of-bounds coordinates

  • training016: frame 79 had a value slightly out of bounds, adjusted to be inside the image
  • training061:
    • frame 56 had negative coordinates; removed the entry
    • frames 54 and 55 also had out-of-frame hexbug heads; removed both entries

Verified missing entries (no fix needed)

  • training001: frames 27, 71–73 with hexbug head not visible
  • training017: frame 3 with one hexbug head not visible

Annotation GUI fixes

  • CSV export: fixed coordinate order from (y, x) to correct (x, y) format
  • ROI logic: fixed accidental overwrite of first-frame ROIs when clicking on timeline / scrollbar
  • Export format: enforced consistent key order in CSV exports

josteng added 5 commits May 30, 2025 14:10
Corrected swapped X/Y axes for the following videos:
- training_020
- training_058
- training_076
- training_078
- training_079
- training_082
- training_083
- training_089
The CSV export in the annotation GUI labeled coordinates as (x, y),
but the actual values were written in (y, x) order. This mismatch
led to interchanged axes during training. The export now correctly
writes (x, y) to match the labels and expected format.
Add guard in the ROI mouse-press handler to ignore clicks outside the image viewport, which were previously mistaken for ROI drags on the very first frame. This also prevents assigning out-of-bounds positions for hexbugs.
Resolved multiple issues in training CSV files:

Corrected inconsistent annotations:
- training049: frame 1 had 4 hexbugs instead of 1
- training064: frame 100 missing one hexbug
- training072: frame 100 missing one hexbug
- training088: frame 100 missing one hexbug

Out-of-bounds coordinates:
- training016: frame 79 had one value out of bounds, adjusted to be inside frame
- training061: frame 56 had negative coordinates; removed entry (hexbug head not visible);
  frames 54 and 55 also had out-of-frame hexbug heads and were removed

Verified missing entries due to hexbug head being out of frame (no fix needed):
- training001: missing frames 27, 71–73
- training017: frame 3 missing one hexbug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant