-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add local download command to datasets, add command for downloading d…
…atasets by name to setup.cfg, update repo name for import in test_pipeline, add cache files to gitignore, modified dataset loading in train.py to use lowercase names for easier / more uniform writing.
- Loading branch information
Showing
12 changed files
with
106 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,3 +148,7 @@ junit.xml | |
|
||
# intellij | ||
.idea/ | ||
|
||
# cache | ||
*_set_cache_*.index | ||
*_set_cache_*.data* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import argparse | ||
|
||
from basic_pitch.dataset import commandline | ||
from basic_pitch.dataset.guitarset import main as guitarset_main | ||
from basic_pitch.dataset.ikala import main as ikala_main | ||
from basic_pitch.dataset.maestro import main as maestro_main | ||
from basic_pitch.dataset.medleydb_pitch import main as medleydb_pitch_main | ||
from basic_pitch.dataset.slakh import main as slakh_main | ||
|
||
dataset_dict = { | ||
'guitarset': guitarset_main, | ||
'ikala': ikala_main, | ||
'maestro': maestro_main, | ||
'medleydb_pitch': medleydb_pitch_main, | ||
'slakh': slakh_main | ||
} | ||
|
||
def main(): | ||
dataset_parser = argparse.ArgumentParser() | ||
dataset_parser.add_argument("dataset", choices=list(dataset_dict.keys()), help="The dataset to download / process.") | ||
dataset = dataset_parser.parse_args().dataset | ||
|
||
print(f'got the arg: {dataset}') | ||
cl_parser = argparse.ArgumentParser() | ||
commandline.add_default(cl_parser, dataset) | ||
commandline.add_split(cl_parser) | ||
known_args, pipeline_args = cl_parser.parse_known_args() # sys.argv) | ||
|
||
dataset_dict[dataset](known_args, pipeline_args) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.