Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite the codebase to be high quality #36

Merged
merged 14 commits into from
Dec 27, 2022

Conversation

hmartiro
Copy link
Member

@hmartiro hmartiro commented Dec 27, 2022

This PR overhauls the codebase to move it from a hack to a proper
foundation to build upon.

Some of the changes:

  • Refactor code into modules and classes
  • More heavily lean on pydub as a great audio library
  • Introduce ruff, black, and mypy and make them pass
  • Test suite
  • Apple MPS support (with CPU fallback for unsupprted stuff)
  • Support stereo spectrogram images (prototype)
  • Support embedding parameters into image metadata as EXIF
  • Add tools for easily comparing parameters and running albations
  • Improve the readme

Topic: clean_rewrite

@hmartiro
Copy link
Member Author

hmartiro commented Dec 27, 2022

Reviews in this chain:
#36 Rewrite the codebase to be high quality

@hmartiro
Copy link
Member Author

hmartiro commented Dec 27, 2022

# head base diff date summary
0 bb810784 cae8a389 diff Dec 26 17:41 PM 44 files changed, 1962 insertions(+), 575 deletions(-)
1 d820e1fe cae8a389 diff Dec 26 17:47 PM 0 files changed

This PR overhauls the codebase to move it from a hack to a proper
foundation to build upon.

Some of the changes:
 * Refactor code into modules and classes
 * More heavily lean on pydub as a great audio library
 * Introduce ruff, black, and mypy and make them pass
 * Test suite
 * Apple MPS support (with CPU fallback for unsupprted stuff)
 * Support stereo spectrogram images (prototype)
 * Support embedding parameters into image metadata as EXIF
 * Add tools for easily comparing parameters and running albations
 * Improve the readme

Topic: clean_rewrite
Topic: clean_rewrite
Topic: clean_rewrite
This class is a helper to convert between spectrogram tensors and
audio.

Topic: clean_rewrite
This class converts between spectrogram images and audio. Uses
SpectrogramConverter internally, which only deals with tensors.

Topic: clean_rewrite
 * Bunch of cleanup and typing
 * Move prompt_weighting to be marked as external
 * Add helpers for loading the checkpoint and traced unet

Topic: clean_rewrite
No longer needed, it's broken up into cleaner pieces.

Topic: clean_rewrite
With the new clean module structure, make it so the two servers
share all the important code. This makes the baseten integration
very small and simple, and paves the way for more integrations.

Topic: clean_rewrite
* Adds a pyproject.toml
* Update requirements and dev requirements
* Add a CITATION file
* Add details to the README

Topic: clean_rewrite
Add riffusion.cli tool for common operations. Add a test for
each one.

Topic: clean_rewrite
This fels good!

Topic: clean_rewrite
Topic: clean_rewrite
@hmartiro hmartiro changed the title Add a unittest base class and some test data Rewrite the codebase to be high quality Dec 27, 2022
@hmartiro hmartiro force-pushed the hayk.mart/revup/main/clean_rewrite branch from bb81078 to d820e1f Compare December 27, 2022 01:47
@hmartiro hmartiro merged commit d0fe85a into main Dec 27, 2022
@hmartiro hmartiro deleted the hayk.mart/revup/main/clean_rewrite branch December 27, 2022 01:50
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