Skip to content

Conversation

@sammlapp
Copy link
Collaborator

Only review the diff after we merge #1174 , since this branch has spec_refactor branch as the base

Implements TorchSpectrogramPreprocessor and save CNNs to onnx

The init method now allows specifying several common options such as
- bandpassing (crop spec)
- mel scale
- rescaling
- changing lower db limit
- spectrogram parameters
- image resizing

I added documentation of how to customize preprocessing as examples in SpectrogramPreprocessor.save_onnx() docstring
…fig())

Fixes #1171

also add wandb tests with pytest.skip option for both SpectrogramClassifier and LightningSpectrogramClassifier
@sammlapp
Copy link
Collaborator Author

I checked that onnx model outputs match pytorch model up to small differences. I didn't add a test for this as it would require adding onnx and onnxruntime to the development environment - this might be worth doing in the future?

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.

2 participants