Google colab ? #54
-
Could anyone train RAVE on a google colab ?
when running train_rave.py Would be neat to use colab for it when not having a powerful GPU at home |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 33 replies
-
full error output :
|
Beta Was this translation helpful? Give feedback.
-
Hey @CarloCattano, I tried and it worked for me around a month ago (latest commit was 5eb5a1b). Not sure what causes the error you see.
After this you just run commands from the helper output. In my case files were served from Google drive
Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
Still no luck , I get the same error as before , but with a new mention to "Missing logger folder"
|
Beta Was this translation helpful? Give feedback.
-
Thanks to this comment of @raniczny I just realized it was working all the time , just my dataset was too small . I intended to test the dev enviroment first with dummy audios that were very short and not so many (facepalm) thats why the dataset was so tiny that was triggering a weird "divided by zero" |
Beta Was this translation helpful? Give feedback.
-
For future readers , here are the modifications to use in colab including tensorboard setup # check that the gpu is assigned
import subprocess
!nvidia-smi
-----------------------------------
# mount google drive
from google.colab import drive
drive.mount('/content/drive')
------------------------------------
# Clone repo and install requirements
%cd /content/drive/MyDrive
!git clone https://github.com/acids-ircam/RAVE.git
%cd /content/drive/MyDrive/RAVE
!pip install -r requirements.txt
------------------------------------
#Resample and augment samples folder
!resample --input /content/drive/MyDrive/samplesFolder --augment --sr 48000 --output /content/drive/MyDrive/Augmented
------------------------------------
!python cli_helper.py
------------------------------------
#setup colab tensorboard
%load_ext tensorboard
%tensorboard --logdir . --bind_all
------------------------------------
# train the model
%cd /content/drive/MyDrive/RAVE
!python train_rave.py -c small --name modelName --wav /content/drive/MyDrive/Augmented/out_48000 --preprocessed /content/drive/MyDrive/temp/modelName/rave --capacity=4 --ckpt /content/drive/MyDrive/RAVE/runs/modelName/rave/version_x
------------------------------------
!python export_rave.py --run runs/modelName/rave --cached true --name modelName_rt
|
Beta Was this translation helpful? Give feedback.
-
I'm curious how many steps you can actually log with Google Collab even with a small dataset considering the resource constraint of 12 hours... are people hitting <1-million steps? |
Beta Was this translation helpful? Give feedback.
-
I do see this warning , using Colab Pro but Im not aware of the limitations or workarounds UserWarning: This DataLoader will create 8 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary. |
Beta Was this translation helpful? Give feedback.
-
Also this is weird on resuming from a last-v1.ckpt : model_checkpoint.py:343: UserWarning: The dirpath has changed from 'runs/bulgarianvoices/rave/version_0/checkpoints' to 'runs/bulgarianvoices/rave/version_1/checkpoints', therefore `best_model_score`, `kth_best_model_path`, `kth_value`, `last_model_path` and `best_k_models` won't be reloaded. Only `best_model_path` will be reloaded.
f"The dirpath has changed from {dirpath_from_ckpt!r} to {self.dirpath!r}, |
Beta Was this translation helpful? Give feedback.
-
Shared some newbie questions on pyTorch forums : |
Beta Was this translation helpful? Give feedback.
-
I quitted my colab subscription. Was not happy how they disconnect you and the additional hassles with storage etc. For now I will try to run it on a humble machine or wait for other services. Suggestions welcome alternatives to Google colab |
Beta Was this translation helpful? Give feedback.
Thanks to this comment of @raniczny I just realized it was wo…