Skip to content

nnAudio-CPU memory growth #119

@will-wiki

Description

@will-wiki

Hello, I am using nnAudio to extract the CQT features of the audio in the following way


from nnAudio import features
cqt_layer = features.CQT2010v2(sr=16000).to(torch.device('cuda'))
data, sr = librosa.load(audio_file, sr=None)
 with torch.no_grad():
        data = torch.tensor(data, dtype=torch.float32).to(torch.device('cuda'))
        cqt = cqt_layer(data)[0].cpu().numpy()

However, the problem is that when the amount of data requested is fixed, increasing concurrency causes memory to keep growing
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions