Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ketos ketos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • ketosketos
  • Issues
  • #91

Closed
Open
Created Apr 15, 2020 by Bruno Padovese@bpadoveseOwner

MelSpectrogram compute spectrogram error

I'm receiving an error when trying to create a MelSpectrogram using the from_wav method. On the spec_color_map branch.

Using the bare minimum parameters I am receiving the following error:

spec = MelSpectrogram.from_wav(knock_filepath, window=0.256, step=0.032)

~/Meridian/ketos/ketos/audio/spectrogram.py in from_wav(cls, path, window, step, channel, rate, window_func, num_filters, num_ceps, cep_lifter, offset, duration, resample_method, id) 1287 1288 # compute spectrogram -> 1289 cls(audio=audio, seg_args=seg_args, window_func=window_func) 1290 1291 return spec

TypeError: init() missing 5 required positional arguments: 'data', 'filter_banks', 'time_res', 'freq_min', and 'freq_max'

I might also add that the doctest for the MelSpctrogram Class is wrong. It is using MagSpectrogram.

Do you have some idea what the issue is here? @fsfrazao @kirsebom

Edited Apr 15, 2020 by Bruno Padovese
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking