Keep current VC independent of official tree
Browse files- configs/config.json +1 -1
- tests/test_hf_entrypoint.py +10 -0
configs/config.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
"uvr5_model": "HP2_all_vocals",
|
| 38 |
"uvr5_agg": 10,
|
| 39 |
"uvr5_format": "wav",
|
| 40 |
-
"use_official":
|
| 41 |
"demucs_model": "htdemucs_ft",
|
| 42 |
"demucs_shifts": 10,
|
| 43 |
"demucs_overlap": 0.5,
|
|
|
|
| 37 |
"uvr5_model": "HP2_all_vocals",
|
| 38 |
"uvr5_agg": 10,
|
| 39 |
"uvr5_format": "wav",
|
| 40 |
+
"use_official": false,
|
| 41 |
"demucs_model": "htdemucs_ft",
|
| 42 |
"demucs_shifts": 10,
|
| 43 |
"demucs_overlap": 0.5,
|
tests/test_hf_entrypoint.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import ast
|
|
|
|
| 2 |
import unittest
|
| 3 |
from pathlib import Path
|
| 4 |
|
|
@@ -42,6 +43,15 @@ class HuggingFaceEntrypointTests(unittest.TestCase):
|
|
| 42 |
self.assertIn("audio-separator[cpu]==0.44.1", requirements)
|
| 43 |
self.assertIn("huggingface_hub>=0.19.0,<1.0", requirements)
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
if __name__ == "__main__":
|
| 47 |
unittest.main()
|
|
|
|
| 1 |
import ast
|
| 2 |
+
import json
|
| 3 |
import unittest
|
| 4 |
from pathlib import Path
|
| 5 |
|
|
|
|
| 43 |
self.assertIn("audio-separator[cpu]==0.44.1", requirements)
|
| 44 |
self.assertIn("huggingface_hub>=0.19.0,<1.0", requirements)
|
| 45 |
|
| 46 |
+
def test_cover_current_default_does_not_require_untracked_official_tree(self):
|
| 47 |
+
config = json.loads(
|
| 48 |
+
(REPO_ROOT / "configs" / "config.json")
|
| 49 |
+
.read_text(encoding="utf-8")
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
self.assertEqual(config["cover"]["vc_pipeline_mode"], "current")
|
| 53 |
+
self.assertFalse(config["cover"]["use_official"])
|
| 54 |
+
|
| 55 |
|
| 56 |
if __name__ == "__main__":
|
| 57 |
unittest.main()
|