Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classifier app does not know about post binning #46

Closed
marcverhagen opened this issue Dec 20, 2023 · 6 comments
Closed

Classifier app does not know about post binning #46

marcverhagen opened this issue Dec 20, 2023 · 6 comments

Comments

@marcverhagen
Copy link
Contributor

Because

The classifier only works well if there is no post binning. It gets its labels from

def get_final_label_names(config):
base = FRAME_TYPES
if config and "post" in config["bins"]:
base = list(config["bins"]["post"].keys())
elif config and "pre" in config["bins"]:
base = list(config["bins"]["pre"].keys())
return base + [modeling.negative_label]

And those labels are added to the Prediction instances. If there is post binning than the labels will be out of sink with the Prediction because the scores in the Prediction are for the labels after pre binning, not post binning.

Changes needed are to Classifier.process_video() which hands over the wrong labels to the prediction, but mostly to the Stitcher, which now does not know what scores to pick.

Note to self: post binning as implemented in train.py does not involve adding probabilities on post-binned labels, instead it picks the highest score. It should not be hard to experiment with both in the stitcher.

Done when

No response

Additional context

No response

@marcverhagen
Copy link
Contributor Author

Fixed in #57

@marcverhagen
Copy link
Contributor Author

@keighrim do you know why this was reopened? CLAMS Bot gone rogue?

@keighrim
Copy link
Member

keighrim commented Feb 7, 2024

It look like the bot assigned this issue to you when you pushed 14-clamsapp-xxx branch, and as part of assigning action it reopened it. (https://github.com/clamsproject/app-swt-detection/actions/runs/7821239106/job/21337739873)

@keighrim
Copy link
Member

keighrim commented Feb 7, 2024

No that was issue 14, not this one.

@keighrim
Copy link
Member

keighrim commented Feb 7, 2024

Aha, you also pushed 46-postbinning branch around the same time (and deleted immediately), and bot caught that.

@marcverhagen
Copy link
Contributor Author

Ah, I did accidentally do a push --all in stead of a push --tags and that included many branches so that could be it. I was the one who went rogue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants