magenta icon indicating copy to clipboard operation
magenta copied to clipboard

t2t_datagen command not finding problem for dataset

Open jamalw opened this issue 5 months ago • 0 comments

I'm currently working on installing the magenta library, which includes the music transformer and I'm having a lot of issues with the installation process. I'm currently stuck at the point where I use t2t_datagen to generate and store the training data. Unfortunately, the command is unable to find the problem used for the data generation (score2perf_maestro_language_uncropped_aug). It seems like the t2t_datagen command does not communicate with the setup.py file or the files that are in the score2perf directory where score2perf.py seems to register the problem. I get the following traceback:

Traceback (most recent call last): File "/home/jamalw/.conda/envs/t2t_env/bin/t2t-datagen", line 28, in tf.app.run() File "/home/jamalw/.conda/envs/t2t_env/lib/python3.7/site-packages/tensorflow_core/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/home/jamalw/.conda/envs/t2t_env/lib/python3.7/site-packages/absl/app.py", line 299, in run _run_main(main, args) File "/home/jamalw/.conda/envs/t2t_env/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "/home/jamalw/.conda/envs/t2t_env/bin/t2t-datagen", line 23, in main t2t_datagen.main(argv) File "/home/jamalw/.conda/envs/t2t_env/lib/python3.7/site-packages/tensor2tensor/bin/t2t_datagen.py", line 196, in main raise ValueError(error_msg) ValueError: You must specify one of the supported problems to generate data for:

Then it proceeds to list all of the problems that are available in the registry followed by the following: TIMIT and parsing need data_sets specified with --timit_paths and --parsing_path.

I'm am currently running gcloud and I have successfully ran all of the instructions up to this point.

Does anyone have solutions for getting the t2t_datagen command to work or are there any workarounds that have been used successfully?

jamalw avatar Sep 18 '24 14:09 jamalw