feature(): Adding reset parameters - usefull for transfer learnings#31
Open
Rondineli wants to merge 1 commit intoOpenSportsLab:mainfrom
Open
feature(): Adding reset parameters - usefull for transfer learnings#31Rondineli wants to merge 1 commit intoOpenSportsLab:mainfrom
Rondineli wants to merge 1 commit intoOpenSportsLab:mainfrom
Conversation
Rondineli
commented
Jan 17, 2026
| # in case of a event not in EVENT_DICTIONARY move with the evaluation | ||
| # as label maybe None it wont evaluate for all classes | ||
| # but only the ones configured in the config model file | ||
| label = EVENT_DICTIONARY.get(event) |
Author
There was a problem hiding this comment.
This was failing if you set only limited classes to the dataset it tries to evaluate everything but the dictionary will contain only the limited list of classes.
Rondineli
commented
Jan 17, 2026
| cont = False | ||
|
|
||
| # Initializing label var in case the cont is False dont thrown an error | ||
| label = None |
Author
There was a problem hiding this comment.
same here, it would fail as cont = False the label will not be declared, causing the code to crash.
Rondineli
commented
Jan 17, 2026
|
|
||
| # Adding reset_backbone, reset_neck and freeze_backbone will allow | ||
| # in case of transfer learning domains | ||
| if getattr(cfg.model, "freeze_backbone", False): |
Author
There was a problem hiding this comment.
added freeze_backbone, freeze_neck and reset_head usefull features for transfer learning scenarios, not sure this is ok from the maintainers to add this feature but thought to do it just in case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
** Fixed couple of issues I ran into when working with a limited number of classes