Skip to content

Tiled Spectrograms#193

Closed
BryonLewis wants to merge 17 commits intomainfrom
tiled-spectrograms
Closed

Tiled Spectrograms#193
BryonLewis wants to merge 17 commits intomainfrom
tiled-spectrograms

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Jun 17, 2025

resolves #171

  • Creates A script for debugging and generating tiled spectrograms
    • If a generated spectrogram is larger than 65000 pixels (bigger than JPEG supports) it will be split into multiple files using a {filename}.XX_of_XX.jpg format to indicate the order of the images
  • Decided on creating a new model SpectrogramImage that has a generic foriegn key that will be used in Spectrogram, CompressedSpectrogram, NABatSpectrogram and NABatCompressedSpectrogram.
    • Spectrogram Image will store each recording images under /{recordingId}/{type}/image_{index}.jpg or similar to this
    • Removed Large Image Support by removing mixins and the installation of dependencies
    • Restructure ./task.py to utilize new /utils/spectrogram.py utility functions

TODO:

  • Finalize the removal of the image_file from Spectrogram and CompressedSpectrogram
  • Update all endpoints and relationships so they don't use image_file
  • Update logic for spectrogram generation to utilize new /utils/spectrogram.py functions by using temporary directories
    • Spectrogram creation will be centralized
    • Prediction running is also centralized to this code
  • Create a migration that will move any existing 'image_file' into a 'SpectrogramImage with the proper type and relationships
  • Remove Base64 references (still needs some for processing APIToken)
  • Remove Colormap references
  • Test Migration (have base BatAI recordings and synthetic NABat Recordings)
    • Ensure the migration works to create new SpectrogramImage Elements
    • Check the Admin interface for these updated SpectrogramImages
  • Test Spectrogram Creation
    • BatAI spectrogram creation
    • BatAI prediction
    • NABat spectrogram creation using apiToken
    • NaBat prediction
  • Client needs to be updated to tile images side by side for the spectrograms that are created.
    • Update types for spectrograms
    • Update the rendering to tile images
    • Make sure the same functionality works for NABat

Split up PR:

@BryonLewis
Copy link
Collaborator Author

closing because all sub PR's based on this have been merged and reviewed.

@BryonLewis BryonLewis closed this Jul 30, 2025
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.

Spectrogram Creation Size Limits

1 participant