Add sepreformer example#5472
Open
samanklesaria wants to merge 1 commit into
Open
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
008ac2a to
45e1324
Compare
45e1324 to
332788d
Compare
332788d to
c585e52
Compare
vfdev-5
reviewed
Jun 2, 2026
|
|
||
| # Building a Choral Source Separator with SepReformer in JAX | ||
|
|
||
| This tutorial demonstrates how to perform audio source separation using the `SepReformer` |
Collaborator
There was a problem hiding this comment.
Please put a link to SepReformer paper/project/code
| # Building a Choral Source Separator with SepReformer in JAX | ||
|
|
||
| This tutorial demonstrates how to perform audio source separation using the `SepReformer` | ||
| architecture. We'll use `flax.nnx` for the neural network, with `beartype` for runtime type checking. |
Collaborator
There was a problem hiding this comment.
If you are using any 3rd party packages, please put a line on how to install them.
| def __len__(self) -> int: | ||
| return len(self.songs) | ||
|
|
||
| dataset = JaCappellaDataset("/space/samanklesaria/data/jacappella") |
Collaborator
There was a problem hiding this comment.
Maybe, we can use some temporary folder instead of your specific folder, e.g. /tmp/data/jacappella?
| if epoch % 20 == 0: | ||
| log_audio_samples(model, loader, writer, epoch) | ||
| writer.close() | ||
| ``` |
Collaborator
There was a problem hiding this comment.
Make a conclusion section to recap the tutorial, otherwise it ends a bit weirdly
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.
This PR adds a guide showing how to use NNX for an audio task (source separation). Examples of the audio files are embedded in the notebook, as myst-nb makes it difficult to copy static files to the html build dir.