Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Errno 2] No such file or directory: 'finetune_models\\dataset\\metadata_train.csv' #85

Open
bews opened this issue Dec 14, 2024 · 5 comments

Comments

@bews
Copy link

bews commented Dec 14, 2024

Tried running the latest version and it doesn't work: after I select an audio and click "Step 1: Create dataset" it loads GPU for some time and then gives this error:

To create a public link, set `share=True` in `launch()`.
Existing language matches target language
Traceback (most recent call last):
  File "I:\TTS\xtts-finetune-webui\xtts_demo.py", line 314, in preprocess_dataset
    train_meta, eval_meta, audio_total_size = format_audio_list(audio_files, asr_model=asr_model, target_language=language, out_path=out_path, gradio_progress=progress)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\utils\formatter.py", line 184, in format_audio_list
    new_data_df = pandas.read_csv(train_metadata_path, sep="|")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\venv\Lib\site-packages\pandas\io\parsers\readers.py", line 1026, in read_csv
    return _read(filepath_or_buffer, kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\venv\Lib\site-packages\pandas\io\parsers\readers.py", line 620, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\venv\Lib\site-packages\pandas\io\parsers\readers.py", line 1620, in __init__
    self._engine = self._make_engine(f, self.engine)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\venv\Lib\site-packages\pandas\io\parsers\readers.py", line 1880, in _make_engine
    self.handles = get_handle(
                   ^^^^^^^^^^^
  File "I:\TTS\xtts-finetune-webui\venv\Lib\site-packages\pandas\io\common.py", line 873, in get_handle
    handle = open(
             ^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'I:\\TTS\\xtts-finetune-webui\\finetune_models\\dataset\\metadata_train.csv'
@bews
Copy link
Author

bews commented Dec 14, 2024

Downgrading to faster_whisper==1.0.2 solves this problem.

@IbrahimOzmen
Copy link

bro can i ask u something? do u know how can i use this model on my local device or pc? ı need to implement this model to my mobile application do u know how or do u have any documentation?

@TinyForge
Copy link

I'm running into the exact same issue as above. Downgrading my faster_whisper to 1.0.2 has not solved the problem.

@bews
Copy link
Author

bews commented Dec 21, 2024

I'm running into the exact same issue as above. Downgrading my faster_whisper to 1.0.2 has not solved the problem.

Welp what I did was:

  1. Downgraded to Dec 30, 2023 commit (it started crashing instead)
  2. Recreated the venv and did a manual clean install [pip install torch==2.1.1+cu118 torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
    pip install -r requirements.txt] with the requirements.txt from the lastest version (still was crashing)
  3. Downgraded to faster_whisper==1.0.2 (the old version started working with this combo)
  4. Updated to the latest commit - it started working too

@rock5917
Copy link

rock5917 commented Jan 19, 2025

The error you're encountering (at least in my case) is due to the absence of necessary files in the xtts-finetune-webui\base_models\v2.0.2 folder. To fix this, follow these steps:

Download the required files from the source: Hugging Face XTTS-v2.0.2.
Ensure the following files are placed in the xtts-finetune-webui/base_models/v2.0.2 directory:

  • dvae.pth
  • model.pth
  • speakers_xtts.pth
  • mel_stats.pth
  • vocab.json
  • config.json

Note: If you experience issues downloading large files via the command line, try using a browser or a download manager instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants