# Mainline Kaggle

Last update: Oct 23, 2024


image

# Introduction

  • Kaggle is a cloud platform for using AI apps, powered by virtual machines with powerful GPU's.

  • It's a great alternative for training RVC voice models through the cloud, since it has the best GPUs.

# Pros & Cons

✔️ PROS:
CONS
  • Has good GPU's
  • Has 30 GPU hours
  • Fast
  • TensorBoard included
  • You can leave training unsupervised.
  • Takes some time to set up.
  • Doesn't have Mangio-Crepe

#

# How to Setup

#

# 1. Set up account.

  1. Start by making an account here.

    image
  2. Verify your acount with a phone number so you can turn on the "internet" option.

image
#

# 2. Clone notebook and setup.

  1. Go to Hina's mainline notebook and click "Copy and Edit"

    image
  2. Under session settings in the sidebar turn on "internet". Make sure persistance is on for both files and varibles.

    image
  3. Turn on T4 X2 GPUs in accelerator.

    image

d: (Optional) Turn on headless mode so you can run so you can run the GPU on all sessions and save your progress. Go to the top right and click "Save version" then open the advanced dropdown.

image


#

# 3. Ngrok.

  1. Scroll down to the fifth cell and you should see a section where you put your ngrok token. If you dont have a ngrok acount sign up here.

    2. Once you have an acount you can authenticate your ngrok tunnel agent here: https://dashboard.ngrok.com/get-started/your-authtoken

  2. put the Ngrok token in the quotation marks like so:

    image

#

# 3. Starting the Cells.

  1. From top to bottom execute all the cells. With first being:
image
  1. The second cell will take ~5 minutes to load.
image
  • when its finished it will look like this:
image
  1. If you want to use a pretrain now is the time to download it. Add a new code cell and type this in then run it:
image

#

!wget LINK TO PRETRAIN

  1. Run the third cell.
image
  1. Once you run the final cell it will give you three links.
image

RVC url: is to open RVC's gui.

File url: is to open Imjoy Elfinder gui.

Tensorboard: is to open the Tensorboard.


# The Imjoy Elfinder WebGUI

The interface should look like this with your D and G files being located here. Here you can manage your files within Kaggle. Whenever you want to download files from the Imjoy GUI just double click. Downloading files uses up the Ngrok bandwith data.

image
#

# Starting RVC

#

# 1. Click the RVC link.

It should take you to the GUI where you can then go to the top and click the 'Train' tab.

image

# 2. Setup.

  1. Run through the normal RVC setup with setting your model name, sample rate and such. If you are unable to see the 32k sample rate click on V1 then swap back to V2.
  1. In the file manager create a folder named dataset anywhere then drag and drop your dataset in it. Then continue with normal RVC setup and training

# 3. Syncing Graphs.

  1. For syncing graphs you need to train however many epochs you have set you save frequency then go into the file manager and find your model which should be in assest/weights, in its name it should have a step count and epoch count like this: model_name_e(number)_s(number).
  1. Once you know how many steps the model trained for stop training the model by stopping the cell.
image
  1. Then start the same cell and open the file manager and navigate to assest/weights and delete all of your previous models.
image
  1. Then navigate to the 32k.json file which is located in the V2 folder of /configs and download it by double clicking it, then delete it.
image
  1. Open the file you have just downloaded in notepad and edit log_interval to the amount of steps your model took, save it then replace the old 32k.json file.
image
  1. Now go to your /logs/ folder and do the same thing. Modify the log interval of the config.json with your step count. Delete the config.json that's already in the /logs/ folder and replace it with your copy.
image
  1. Now delete Eval folder, tf-events file, G & D_23333333 files and train log file in /logs/ folder.

# 4. Resuming Training.

  1. Do not process and feature extract again because those files are already in the /logs/ folder. Use the same model name, sample rate, batch size, pretrain, and save frequency to train the model again in the RVC GUI.

# ‎ ‎

# You have reached the end.

Report Issues