AudreyBeard / AudreyBeard/netsounds

divide-by-zero in torch.ifft()

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

in `utils.activations_to_audio()`, there's a stanza for scaling the signal to the open range [-1, 1]. This stanza assumes that `signal.max() - signal.min() > 0`, and so can throw a divide-by-zero error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in utils.activations_to_audio() and inspect the signal-scaling stanza around the signal.max() - signal.min() calculation. Reproduce the constant-signal case, determine the expected output from the surrounding audio conversion behavior, and add or update a focused test so the function no longer raises a divide-by-zero error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.