Skip to content

Comments

added simple inference script for binary classifier#13

Open
ericlyfan wants to merge 1 commit intomainfrom
edevelop
Open

added simple inference script for binary classifier#13
ericlyfan wants to merge 1 commit intomainfrom
edevelop

Conversation

@ericlyfan
Copy link
Collaborator

@ericlyfan ericlyfan commented Jan 31, 2026

We ran into issues that stemmed from the fact that the model was trained on cropped bounding boxes of the target class but ran inference on full resized images, causing a train/inference mismatch and significant amount of false positives.

Fixed by adding a sliding window approach (128, 256 px). Also noticed potential issues with the data imbalance, so I balanced the training data to just the "target" class + one other class (instead of the full 19 classes), this produces very decent results.

@ericlyfan ericlyfan requested a review from a team as a code owner January 31, 2026 20:40
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