Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

DDSP training fails when training finished - zip file not found[BUG] #18

Closed
LilacPeregrine opened this issue Jul 23, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@LilacPeregrine
Copy link

I was attempting to train a new instrument on 18 minutes of audio in an mp3. When completed, I expected it to output a .zip file, but it did not.
When I attempt to restart, it fails.

I completed this using Google Colab
[https://colab.research.google.com/github/magenta/ddsp/blob/main/ddsp/colab/demos/Train_VST.ipynb]
I do not know how to reproduce it, but I have tried twice with this audio, but it has worked on other audio before.

Here is the error:
Zipping Complete! Downloading... Voice.zip
You can also find your model at /content/gdrive/MyDrive/VST-DDSP/VST Voice2/ddsp-training-2022-07-23-0218/Voice


FileNotFoundError Traceback (most recent call last)

/usr/local/lib/python3.7/dist-packages/ipyfilechooser/filechooser.py in _on_select_click(self, _b)
315 if self._callback is not None:
316 try:
--> 317 self._callback(self)
318 except TypeError:
319 # Support previous behaviour of not passing self

3 frames

in run_after_select(chooser)
301 def run_after_select(chooser):
302 drive_dir = chooser.selected_path
--> 303 run_training(drive_dir=drive_dir)
304
305 fc = FileChooser(initial_dir)

in run_training(drive_dir)
375 print()
376 print('Exporting model...')
--> 377 export_and_download(model_dir)
378
379 log_event('exportMins', {'value': round((time.time() - tick) // 60)})

in export_and_download(model_dir, model_name)
254 print(f'Zipping Complete! Downloading... {zip_fname}')
255 print(f'You can also find your model at {export_path}')
--> 256 colab_utils.download(zip_fp)
257
258

/usr/local/lib/python3.7/dist-packages/google/colab/files.py in download(filename)
179 if not _os.path.exists(filename):
180 msg = 'Cannot find file: {}'.format(filename)
--> 181 raise FileNotFoundError(msg) # pylint: disable=undefined-variable
182
183 comm_manager = _IPython.get_ipython().kernel.comm_manager

FileNotFoundError: Cannot find file: /content/gdrive/MyDrive/VST-DDSP/VST Voice2/ddsp-training-2022-07-23-0218/Voice.zip

@LilacPeregrine LilacPeregrine added the bug Something isn't working label Jul 23, 2022
@LilacPeregrine
Copy link
Author

I found a fix in #11

  • the file path had a space in it, causing the issue.

If you have this issue in future, remove spaces!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant