-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature/evaluation #146
base: main
Are you sure you want to change the base?
Feature/evaluation #146
Changes from 17 commits
da43468
6ffdfc5
b52945b
442c5b1
63ad200
cb4aa4e
7d57225
3bf7a06
eae51e7
c139c74
4339c35
e2c2209
c3bd2d0
4729daf
945581d
0c04e02
582b644
10e063a
75a00d2
8f59771
76a4956
051290c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Vadim Rangnau | ||
Copyright (c) 2020 Max Morrison (torchcrepe code adapted for crepe output filtering abd thresholding) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not fork crepe, move the changes there and release an package? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't sure how to give proper credit here. I would say it's up to you how to handle this and if you want to accept the code in question. The code here https://github.com/rakuri255/UltraSinger/pull/146/files#diff-7bda13ea2689179c7952b68174b8b8ea2cc2250f9b9699c5cf55939fb6c4ac7d is copied and adapted from here https://github.com/maxrmorrison/torchcrepe/blob/master/torchcrepe/loudness.py |
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Tests for UltraSinger.py""" | ||
|
||
import os | ||
import unittest | ||
import src.modules.Pitcher.pitcher as test_subject | ||
|
||
import pytest | ||
from src.modules.plot import plot | ||
|
||
|
||
class PitcherTest(unittest.TestCase): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is also in test_pitcher.py There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. resolved |
||
# @pytest.mark.skip(reason="Skipping this FUNCTION level test, can be used for manual tests") | ||
def test_get_pitch_with_crepe_file(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test can be removed. PitcherTest class is in test_pitcher.py |
||
# Arrange | ||
test_dir = os.path.dirname(os.path.abspath(__file__)) | ||
root_dir = os.path.abspath(test_dir + "/../../..") | ||
# test_file_abs_path = os.path.abspath(root_dir + "/test_input/audio_denoised.wav") | ||
test_file_abs_path = os.path.abspath(root_dir + "/test_input/test_denoised.wav") | ||
test_output = root_dir + "/test_output" | ||
|
||
# Act | ||
# pitched_data = test_subject.get_pitch_with_crepe_file(test_file_abs_path, 'full', device="cuda") | ||
# test_subject.get_pitch_with_crepe_file(test_file_abs_path, 'full', 'cpu', batch_size=1024) | ||
# plot(pitched_data, test_output, title="pitching test") | ||
|
||
print("done") | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe fork crepe an make a separate package for it? Or PR the changes to the crepe project?