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

compute input embeddings error: "no such file or directory" #30

Closed
nwesthoff opened this issue Apr 26, 2018 · 2 comments
Closed

compute input embeddings error: "no such file or directory" #30

nwesthoff opened this issue Apr 26, 2018 · 2 comments

Comments

@nwesthoff
Copy link

running $ python 01_compute_input_embeddings.py from ~/open-nsynth-super/audio/workdir to test the pipeline gives me an OSError: [Errno 2] No such file or directory

I split up the subprocess.call to get a more specific line, though I don't think that worked (it breaks on the last line regardless).

Traceback:

Traceback (most recent call last):
  File "01_compute_input_embeddings.py", line 31, in <module>
    subprocess.call(["nsynth_save_embeddings", "--checkpoint_path=%s/magenta/models/nsynth/wavenet-ckpt/model.ckpt-200000" % settings['magenta_dir'], "--source_path=%s/audio_input" % source_dir, "--batch_size=64", "--save_path=%s/embeddings_input" % source_dir])
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

all folders exist and are readable, writeable and executable by current user

I think it might have to do something with the wavenet-ckpt folder which contains checkpoint, model.ckpt-200000.data-00000-of-00001, model.ckpt-200000.index and model.ckpt-200000.meta but no model.ckpt-200000

@nwesthoff
Copy link
Author

Scratch that. I think it has trouble locating nsynth_save_embeddings, which is in ~/magenta/magenta/models/nsynth/wavenet, not inside the workdir, is this incorrect on my part? or an error in the python script? I'm also not sure what the best way is to fix it.

@nwesthoff
Copy link
Author

Reran the entire process of fetching and building magenta, that fixed it. I think that installed nsynth_save_embeddings as a general command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant