Skip to content

Music Extractor results not reproducible #1006

Open
@ashokkrishna94

Description

@ashokkrishna94

Hi,

I am using MusicExtractor to generate various audio features but the results are not reproducible. Each time I execute the code I get a different output. Can someone help me understand why this is happening and how can I fix it?

Sample Code:

`

fname = "10258704_084.mp4.wav"

samplerate = 44100
audio = es.MonoLoader(filename=fname, sampleRate = samplerate)()
len(audio)

duration = len(audio)/samplerate

framesize = int(len(audio)/(duration)*0.025)  # 25ms
hopsize =  int(len(audio)/(duration)*0.010)  # 10ms

kwargs = {
'analysisSampleRate': samplerate,
'lowlevelFrameSize':framesize,
'lowlevelHopSize': hopsize,
'lowlevelZeroPadding': 2048 - framesize,
'loudnessFrameSize': framesize,
'loudnessHopSize': hopsize, 
'tonalFrameSize': framesize,
'tonalHopSize': hopsize
}

profile = "audio_config.yaml"

features, features_frames = es.MusicExtractor(profile = profile)(fname)

Output:

Run1:
image

Run2:
image

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions