Coder Social home page Coder Social logo

Hi, I use colab for fine tune models but I run AllTalk locally. How can I add new models? I created a folder named ''trainedmodels'' but the UI doesn't recognize it about alltalk_tts HOT 1 CLOSED

erew123 avatar erew123 commented on July 24, 2024
Hi, I use colab for fine tune models but I run AllTalk locally. How can I add new models? I created a folder named ''trainedmodels'' but the UI doesn't recognize it

from alltalk_tts.

Comments (1)

erew123 avatar erew123 commented on July 24, 2024

Hi @arthuttupo

It this bit of code that's looking for an extra folder+files

##################################################
#### Check to see if a finetuned model exists ####
##################################################
# Set the path to the directory
trained_model_directory = this_dir / "models" / "trainedmodel"
# Check if the directory "trainedmodel" exists
finetuned_model = trained_model_directory.exists()
# If the directory exists, check for the existence of the required files
# If true, this will add a extra option in the Gradio interface for loading Xttsv2 FT
if finetuned_model:
    required_files = ["model.pth", "config.json", "vocab.json"]
    finetuned_model = all(
        (trained_model_directory / file).exists() for file in required_files
    )

In summary, its looking for a folder alltalk_tts\models\trainedmodel\ and within that folder it will check for these 3x files existing "model.pth", "config.json", "vocab.json"

Your model.pth will be the finetuned model and you can copy the other files from the main model folder if needed.

Thanks

from alltalk_tts.

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.