Skip to content

AllTalk Diagnostics Tool

erew123 edited this page Dec 4, 2024 · 4 revisions

The AllTalk Diagnostics Tool is crucial for troubleshooting issues, especially when you're having problems starting AllTalk. It helps identify potential problems caused by changes in 3rd party package versions or issues within your Python environment.

Key Features

  1. Generate a diagnostics.log file with detailed information about your Python environment setup.
  2. Compare your diagnostics.log file to the base basediagnostics.log to identify discrepancies.
  3. Provide semi-automated repair options for your Python environment.
  4. Your diagnostics.log file will be generated in the alltalk_tts folder e.g.
alltalk_tts/
│    ├── alltalk_environment/ 
│    ├── models/ 
│    ├── outputs/ 
│    ├── system/ 
│    ├── trainer_alltalk/ 
│    └── voices/ 
├── atsetup.bat
├── atsetup.sh
├── confignew.json
├── diagnostics.log (THIS FILE HERE)
└── etc...

Understanding the Diagnostics Output

The diagnostics.log file and on-screen output provide valuable information:

  • System Information: OS version, CPU details, RAM, and disk space.
  • Python Environment: Python version, executable path, and environment details.
  • CUDA Information: CUDA version, availability, and GPU details (if applicable).
  • Installed Packages: List of Python packages and their versions.
  • Potential Issues: Highlighted discrepancies or missing components.

Troubleshooting with Diagnostics

  1. Version Mismatches: Check for package version differences between your setup and the base configuration.
  2. Missing Components: Ensure all required components (like CUDA, C++ build tools) are installed.
  3. Environment Issues: Verify that you're using the correct Python environment.

Sharing Diagnostics for Support

When seeking help:

  1. Generate a fresh diagnostics.log file.
  2. Include this file in your support request or issue report.
  3. Mention any specific errors or behaviors you're experiencing.

Remember, the diagnostics.log file contains detailed system information. Review and redact any sensitive information before sharing.

Using the Diagnostics Tool

Start the diagnostics from the alltalk_tts folder using one of these methods:

  • Windows: Run start_diagnostics.bat
  • Linux: Execute ./start_diagnostics.sh
  • Text-generation-webui (TGWUI) users: Use TGWUI's cmd_{your_os} file
  • Other setups: Run python diagnostics.py after activating your Python environment

Generating a Diagnostics Log

  1. From the menu, select option 1 to generate your diagnostics.log file.
  2. Typically you will select requirements_standalone.txt
  3. Your diagnostics.log file will be created in the alltalk_tts folder.
  4. You can review the on-screen message for any obvious package issues.

Diagnostics Menu

Comparing Diagnostic Logs

  1. From the Diagnostic's main menu, select option 2 to open the GUI comparison tool.
  2. Drag and drop the basediagnostics.log from /alltalk_tts/system/config/ onto the Base Diagnostics File Left Hand window.
  3. Drag and drop your diagnostics.log from /alltalk_tts/ onto the Comparison Diagnostics File Right Hand window.
  4. Click Compare the Base and Comparison log files.

Diagnostics Comparison

Understanding the Comparison Results

  • The chart shows version differences between your environment and a tested working environment.
  • Windows Users: Check the top of the GUI for Windows C++ Build Tools, Windows SDK, and Espeak-ng status. These are crucial base requirements.

Using the Results

  • Organized Results: A text breakdown of the comparison chart, useful for quick assessment and issue reporting.
  • Pip Commands to align versions: You can copy these commands to manually update your Python environment or use the Run Pip commands button if you're in the AllTalk Python environment.

After Making Changes

After applying updates, re-run the diagnostics to generate a new diagnostics.log and perform the comparison again.

Limitations and Additional Troubleshooting

The diagnostics tool may not resolve or detect:

  • Corrupted packages or Python Environment: Consider deleting and recreating your Python Environment.
  • Corrupted PIP cache: Clear the PIP cache using pip cache purge before reinstalling.
  • Corrupted Conda packages: For standalone installations, manually reinstall Conda packages:
    1. Run start_environment for your OS from the alltalk_tts folder.
    2. Navigate to cd alltalk_environment/conda/scripts
    3. Run: conda.exe install -y conda-forge::ffmpeg and also conda.exe install -y pytorch::faiss-cpu
  • Other environmental factors: Some issues may be beyond the scope of the diagnostics tool.
Clone this wiki locally