Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase efficiency of IoU scores (#15) #129

Merged
merged 18 commits into from
Jul 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing small issue in IsoAutio for the case where window_size for ste…
…inberg is smaller than time_per_score / 2
  • Loading branch information
pranjalc1 committed Jul 8, 2022

Verified

This commit was signed with the committer’s verified signature.
leplatrem Mathieu Leplatre
commit 487bab5125e1e3863263b6feff439f790db4529e
2 changes: 1 addition & 1 deletion PyHa/IsoAutio.py
Original file line number Diff line number Diff line change
@@ -307,7 +307,7 @@ def steinberg_isolate(

entry['MANUAL ID'] = np.full(entry['OFFSET'].shape, manual_id)
else:
entry['OFFSET'] = np.where(thresh_scores == 1)[0] * samples_per_score - int(isolation_parameters["window_size"] / 2 * SAMPLE_RATE)
entry['OFFSET'] = np.where(thresh_scores == 1)[0] * samples_per_score / SAMPLE_RATE - isolation_parameters["window_size"] / 2
entry['DURATION'] = np.full(entry['OFFSET'].shape, isolation_parameters["window_size"] * 1.0)
if (entry['OFFSET'] < 0):
entry['OFFSET'][0] = 0