# Mainline

Last update: Mar 8, 2024


#

# Introduction ‎

  • Mainline RVC is the base, original, & unmodified version of RVC. Made by the RVC-Project team.

  • It has less features compared to other forks, but still has the necessary tools to do a decent job.

  • It's specially liked because it's a little faster than other forks, as it's less bloated in a way.

  • Its actual name is not "Mainline", but it was given by the public to properly distinguish it from the other versions.

# Pros & Cons

✔️ PROS
CONS
  • Easy to install.
  • Simpler to use.
  • A bit faster compared w/ other forks.
  • Has less features.
  • Doesn't include Mangio-Crepe.
  • Manual model upload.

#

# Installing & Opening

#
  1. Go to their download page here

  2. Click the Download word. RVC will begin to download.

    image

  3. Once it's done, unzip the folder.

  4. Open RVC's folder, find the "go-web.bat" file and execute it.

    image

    It will then open a console, & after a moment your default web browser with RVC ready to be used. ‎

    image

  5. (Optional) To access RVC more easily, make a shortcut of the go-web file.


#

# Inference

#

# 1. Upload voice model.

  1. Open RVC's folder, go to the assets folder and put your model's .PTH file inside the weights folder.

    image

  2. Return to the previous folder & put the model's .INDEX file in the logs folder.

    image

#

# 2. Select voice model.

  1. In RVC, click the Refresh voice list and index path button.

    image

  2. In its left, click Inferencing voice & select your model.

    image

#

# 3. Select vocals.

In Enter the path of the audio file paste the path file of your audio. Ensure the path doesn't include spaces or special characters.

image
#

# 4. Modify settings. (optional)

If you wish, modify the inference settings on display accordingly for better results.


#

# 5. Convert.

Click the long Convert button at the bottom & it will begin to convert.

The processing time will mainly depend on your specs, length of audio, & the algorithm picked.


#

# 6. Download output.

Once it's done processing, a playable audio will pop up in the Export audio box.
To download, click the three dots on the right & hit Download.

image


#

# Training

#
#

# Step 1

#

# 1. Go to training area.

Open RVC & head over to the Train tab.

image
#

# 2. Name the model.

In Enter the experiment name you insert a name for your model. Don't include special characters or spaces.

image
#

# 3. Select Target Sample Rate.

In Target sample rate select the number that matches your datasets' sample rate.
Inputting an incorrect one might screw up the final quality.

image
#

# Step 2a

#

# 4. Select dataset.

In Enter the path of the training folder paste the path file of your dataset.
Ensure the path doesn't include special characters/spaces.

image


#

# 5. Process data.

Click the Process Data button on the center.

RVC will process the previous criteria for the training.
But also the dataset file, which might take a moment depending on how big it is.

image

It'll finish when the output box on the right says end preprocess.


#

# Step 2b

#

# 6. Select GPUs.

In Enter the GPU index(es) determine which GPU(s) you'll use for training, by indicating the index followed by the dash (e.g: 0).

image
#

# 7. Select pitch extraction algorithm.

  1. At the right select the Pitch extraction algorithm.
    Only use RMVPE_GPU or Crepe, as the rest are obsolete.

    image

#
  1. Now click the Feature extraction button on the right.

    image


    It'll finish when the output says all-feature-done.

    image

#

# 8. Create .INDEX.

Press Train feature index at the bottom center.
This will create the .INDEX file.

image

It'll finish when the output box says something like this:

image
#

# Step 3

#

# 9. Select save frequency.

Frequency of the saving checkpoints, based on the epochs.

If you are a newbie, simply leave it at 15.

E.g: with a value of 10, they will be saved after the epoch 10, 20, 30, etc.


image


#

# 10. Input epochs amount.

In Total training epochs you determine the total amount of epochs (training cycles) for the model.

But since we'll use TensorBoard, use an arbitrarily large value like 2000.

image
#

# 11. Select batch size.

Leave Batch size per GPU at 8 if you aren't familiar with it.

If your dataset is short (around 2 minutes or less), use 4 instead.

image
#

# 12. Launch TensorBoard.

Now before you start training, open TB.

If you haven't already, start reading about it here here.


#

# 13. Begin training.

Start training the model by clicking Train model.

image


Remember to monitor TB, & also the console just in case.
The latter will show you errors if they happen, and information about the epochs & checkpoints.

image


#

# 14. Stop training.

When you are very sure of overtraining, you can stop training by pressing the Stop training button where Train model used to be.


#

# 15. Gather model's files.

  1. Create a new folder anywhere named as your model.

  2. Open RVC's folder, go to logs, and open the folder named with the model.
    Select the .INDEX named added_ & move it to your newly made folder.

    image

  1. Now go to the weights folder. Here you'll find the model's checkpoints.

    Select the one closest to before the overtraining point, and move it to the new folder

    These files will be organized with this format: ModelName_Epoch_Step.pth
    Example: kalomaze_e60_s120.pth

    image

    And that's all. Have fun with your model.
    To test the model, do a normal inference as usual.


#

# Resuming

#

If the training finished but the model still needed training, you don't have to start from scratch.
Follow this procedure:

  • Simply enter the same settings and criteria that you previously inserted. Model name, sample rate, dataset, batch size, etc. You don't have to press Process Data or train the .INDEX again.

  • You can change the save frequency, or increase the epochs amount in case you didn't input enough before.

  • Begin training again & remember to monitor TB & console like before.


#

# Troubleshooting

#
#
  • If it's lower than 32k: select 32k.
  • If it's 32k: on the right in Version, press v1 & press v2 again. Ensure you leave it as v2. You should be able to see a 32k option now.
  • If it's 44.1k: select 40k.
  • If i'ts higher than 48k: select 48k.
#
  • This a phenomenon called artifacting. To fix it, read here.
  • This is a common bug. Close the console to stop RVC entirely.
#
  • Report your issue here.

#

# You have reached the end.

Report Issues