magenta / ddsp-vst

Realtime DDSP Neural Synthesizer and Effect
Apache License 2.0
724 stars 72 forks source link

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

Closed LilacPeregrine closed 2 years ago

LilacPeregrine commented 2 years ago

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 commented 2 years ago

I found a fix in https://github.com/magenta/ddsp-vst/issues/11

If you have this issue in future, remove spaces!