Skip to content

Feat new train defaults#1214

Merged
sammlapp merged 16 commits intodevelopfrom
feat_new_train_defaults
May 1, 2026
Merged

Feat new train defaults#1214
sammlapp merged 16 commits intodevelopfrom
feat_new_train_defaults

Conversation

@sammlapp
Copy link
Copy Markdown
Collaborator

No description provided.

sammlapp and others added 15 commits December 8, 2025 15:44
still has many broken tests
sample_rate is now an attribute of preprocessor, and an attribute of each AudioSample during preprocessing

therefore, sample_rate should not be a property in BasePreprocessor subclasses, and AudioClipLoader action no longer has a sample_rate key in 'params'

Co-authored-by: Copilot <copilot@github.com>
this model architecture requires lots of custom code, conditionals, and workarounds, and is never used, so I'm removing it. Users could implement based on the removed code if needed.
pass sample_rate to init

also use placeholder Identity as model.network rather than a heavy resnet18, since the OnnxModel does not use the .network attribute

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Comment thread opensoundscape/ml/dataloaders.py
"""Initialize the HopliteDataset

#TODO: to go fast, do we need to do batched retrieval?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check on up to date retrieval method for hoplite

Comment thread opensoundscape/ml/shallow_classifier.py Outdated
return emb, self.label_df.iloc[idx].values


def fit_on_hoplite_db(
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check hoplite training script and compare strategy

Comment thread opensoundscape/preprocess/overlay.py
Comment thread opensoundscape/ml/dataloaders.py Outdated
Comment thread opensoundscape/ml/cnn.py Outdated
Comment thread opensoundscape/ml/cnn.py
Comment thread opensoundscape/ml/cnn.py Outdated
…ssifier / SpectrogramModule

also update docstring for collate_fn in safeaudiodataloader

Co-authored-by: Copilot <copilot@github.com>
@sammlapp sammlapp merged commit 780f796 into develop May 1, 2026
1 check passed
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