Skip to content

Enhance single channel denoiser and WaveformNode - #4673

Merged
alejoe91 merged 11 commits into
SpikeInterface:mainfrom
alejoe91:denoiser
Sep 15, 2026
Merged

alejoe91 merged 11 commits into
SpikeInterface:mainfrom
alejoe91:denoiser

Conversation

@alejoe91

@alejoe91 alejoe91 commented Jul 9, 2026

Copy link
Copy Markdown
Member

Extend flexibility of WaveformNode and single channel denoiser. Now testing against toy and yass models here: https://huggingface.co/SpikeInterface/waveform_denoiser

@alejoe91 alejoe91 added the sortingcomponents Related to sortingcomponents module label Jul 9, 2026
@chrishalcrow chrishalcrow added the Edinburgh hackathon 2026 PRs from Edinburgh hackathon 2026 label Jul 10, 2026
@alejoe91 alejoe91 added this to the 0.105.0 milestone Jul 15, 2026
spike_size = waveform_node.nbefore + waveform_node.nafter
# Load model
self.denoiser = self.load_model()
self.denoiser, model_relative_path = self.load_model(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Move it to a separate function and have the node accept the instantiated model

parents: Optional[List[PipelineNode]] = None,
model_folder: Optional[str] = None,
repo_id: Optional[str] = None,
model_name: Optional[str] = None,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should be able to give the model directly in this signature and skip the autoload when we want.

@samuelgarcia

Copy link
Copy Markdown
Member

OK for me but for noes we should always have the possibility to give the model directly and skip the laod mechanism

@alejoe91

Copy link
Copy Markdown
Member Author

OK for me but for noes we should always have the possibility to give the model directly and skip the laod mechanism

then you cannod check the model_info. The idea is you can pass a fodler with the weights and the model_info.json. Isn't that enough?

@samuelgarcia

Copy link
Copy Markdown
Member

If the model is given we can skip tests.

@alejoe91

Copy link
Copy Markdown
Member Author

@samuelgarcia done in last commit. Also when you pass an external model it checks the last layer dimentions

@alejoe91
alejoe91 merged commit 1d2cf33 into SpikeInterface:main Sep 15, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Edinburgh hackathon 2026 PRs from Edinburgh hackathon 2026 sortingcomponents Related to sortingcomponents module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants