Giter Site home page Giter Site logo

Comments (5)

RMSnow avatar RMSnow commented on July 16, 2024

Hi @mysxs, thanks for your attention!

It seems that your provided train.json is not generated by Amphion's code. Our instruction of CustomSVCDataset means that you can prepare your wavs as the following format:

[Your Custom Dataset Path]
 ┣ singer1
 ┃ ┣ song1
 ┃ ┃ ┣ utterance1.wav
 ┃ ┃ ┣ utterance2.wav
 ┃ ┃ ┣ ...
 ┃ ┣ song2
 ┃ ┣ ...
 ┣ singer2
 ┣ ...

After that, you need to specify your custom dataset name and its path ([Your Custom Dataset Path]) in the exp_config.json:

    "dataset": [
        "[Exisiting Dataset Name]",
        //...
        "[Your Custom Dataset Name]"
    ],
    "dataset_path": {
        "[Exisiting Dataset Name]": "[Exisiting Dataset Path]",
        //...
        "[Your Custom Dataset Name]": "[Your Custom Dataset Path]"
    },
    "use_custom_dataset": [
        "[Your Custom Dataset Name]"
    ],

After that, when you preprocess the custom dataset (--stage 1), the Amphion will automatically produce the train.json and test.json for you (see this line), where the generated json files will have the Duration key.

You can follow the steps above. If there are still any bugs, feel free to let us know.

from amphion.

mysxs avatar mysxs commented on July 16, 2024

Hi RMSnow, thanks for your reply!
okok, it turns out that train.json is automatically generated by Amphion. I just found that the directory of my data set is one level higher than CustomSVCDataset. I will modify it and try again~

from amphion.

mysxs avatar mysxs commented on July 16, 2024

Hi RMSnow, thanks for your attention!
I reorganized my dataset according to the CustomSVCDataset format. I added two pictures to illustrate my dataset, but the previous error was still reported. Amphion did not automatically generate train.json.
the format of my dataset:
image

exp_config.json:
image

error:
image

from amphion.

viewfinder-annn avatar viewfinder-annn commented on July 16, 2024

Hi @mysxs !

Seeing your provided screenshots, I came up with two possible reasons:

  1. You are not specifying use_custom_dataset field in your config.json file. You need to add a field like this if you havn't done it:
"dataset_path": [
    "ESD": ...
]
"use_custom_dataset": [
    "ESD"
],
  1. You are setting the processed_dir same as your raw audio dir. It's recommended not to do so. During the preprocess stage a dir with the name of your dataset name will be created in the processed_dir path. In this case it will create another "/egs/ESD" dir which may cause overide of your original files. You can try to set this field default("data").

from amphion.

mysxs avatar mysxs commented on July 16, 2024

Hi @RMSnow @viewfinder-annn,thank you for your response. Following your advice, I corrected my dataset path, and I successfully resolved the issue. Thank you!

from amphion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.