question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NotImplementedError: "Cannot load filter definition for sinc_fastest"

See original GitHub issue

Describe the bug When running any model in UVR-V5GUI, NotImplementedError is thrown, saying that it β€œcannot load filter definition for sinc_fastest”

To Reproduce

  1. Selected settings: GPU Conversion: ON Post-process: OFF TTA: OFF Output Image: OFF Model Test Mode: OFF Model: HP2_3BAND_44100_MSB2.pth, HP_KAROKEE_4BAND_44100_SN.pth, & HP2_4BAND_44100.pth (appears to happen for any model I choose)

  2. See error

lib_v5/modelparams/3band_44100_msb2.json
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 102/102 [03:31<00:00,  2.07s/it]
  File "D:\Software\Utilities\UVR-V5GUI_4_7_22\inference_v5.py", line 386, in main
    wav_instrument = spec_utils.cmb_spectrogram_to_wave(y_spec_m, mp, input_high_end_h, input_high_end_)
  File "D:\Software\Utilities\UVR-V5GUI_4_7_22\lib_v5\spec_utils.py", line 310, in cmb_spectrogram_to_wave
    wave = librosa.resample(spectrogram_to_wave(spec_s, bp['hl'], mp.param['mid_side'], mp.param['mid_side_b2'], mp.param['reverse']), bp['sr'], sr, res_type="sinc_fastest")
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\librosa\core\audio.py", line 547, in resample
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=-1)
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\resampy\core.py", line 109, in resample
    interp_win, precision, _ = get_filter(filter, **kwargs)
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\resampy\filters.py", line 167, in get_filter
    '{}'.format(name_or_function))

NotImplementedError Cannot load filter definition for sinc_fastest
Traceback Error: "  File "D:\Software\Utilities\UVR-V5GUI_4_7_22\inference_v5.py", line 386, in main
    wav_instrument = spec_utils.cmb_spectrogram_to_wave(y_spec_m, mp, input_high_end_h, input_high_end_)
  File "D:\Software\Utilities\UVR-V5GUI_4_7_22\lib_v5\spec_utils.py", line 310, in cmb_spectrogram_to_wave
    wave = librosa.resample(spectrogram_to_wave(spec_s, bp['hl'], mp.param['mid_side'], mp.param['mid_side_b2'], mp.param['reverse']), bp['sr'], sr, res_type="sinc_fastest")
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\librosa\core\audio.py", line 547, in resample
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=-1)
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\resampy\core.py", line 109, in resample
    interp_win, precision, _ = get_filter(filter, **kwargs)
  File "C:\Users\pfsax\AppData\Local\Programs\Python\Python37\lib\site-packages\resampy\filters.py", line 167, in get_filter
    '{}'.format(name_or_function))
"
NotImplementedError: "Cannot load filter definition for sinc_fastest"
File: D:/Downloads/test.flac
Please contact the creator and attach a screenshot of this error with the file and settings that caused it!

Expected behavior I expected the program to finish the extraction and place the file in the export directory.

Desktop:

  • OS: Windows 10

Additional context All dependencies are installed as delineated by the README. For whatever it’s worth, V4 works fine.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Anjok07commented, Apr 7, 2022

The repository has been updated with all of the correct packages and the instructions have been updated as all.

1reaction
bubbleggcommented, Apr 7, 2022

edit requirements.txt

Pillow tqdm==4.45.0 librosa==0.8.0 resampy==0.2.2 opencv-python numba==0.53.0 numpy==1.21.0 samplerate SoundFile soundstretch

pip install --no-cache-dir -r requirements.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot load filter definition for kaiser_best - Google Groups
I'm trying to run train.py for a WaveNet implementation. I get a NotImplementedError as below. More details on my errors at https://github.com/Β ...
Read more >
resampy/filters.py at main - GitHub
`resampy` provides two pre-computed resampling filters which are tuned for either ... raise NotImplementedError('Cannot load filter definition for '.
Read more >
2029027 - Can't load filters for '<template ... - SAP Support Portal
After opening the configtool, every-time you try to select the template or instance entry, there's the following error: From the latest configtool.
Read more >
Can the filter definition from interactive filters be extracted
Hi Community, does anybody know if you can extract (and further use) the filter definitions output of Interactive Value Filters?
Read more >
Invalid filter rules and how to fix them - Anapedia
A filter rule on a worksheet or card becomes invalid when: a line item can't be found, usually because it has been deleted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found