Giter Club home page Giter Club logo

sillytavern-launcher's Introduction

SillyTavern Launcher - (STL)

【English | Chinese | Japanese | Korean | Dutch | French | Vietnamese | Portuguese | Spanish】

GitHub Stars GitHub Forks GitHub Issues GitHub Pull Requests

πŸ”§ Installation

πŸͺŸ Windows

  1. On your keyboard: press WINDOWS + R to open Run dialog box. Then, run the following command to install git:
cmd /c winget install -e --id Git.Git
  1. On your keyboard: press WINDOWS + E to open File Explorer, then navigate to the folder where you want to install the launcher. Once in the desired folder, type cmd into the address bar and press enter. Then, run the following command:
git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher && start installer.bat

🐧 Linux

  1. Open your favorite terminal and install git
  2. Git clone the Sillytavern-Launcher with:
git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher
  1. Start the installer.sh with:
chmod +x install.sh && ./install.sh
  1. After installation start the launcher.sh with:
chmod +x launcher.sh && ./launcher.sh

🍎 Mac

  1. Open a terminal and install brew with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install git with:
brew install git
  1. Git clone the Sillytavern-Launcher with:
git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher
  1. Start the installer.sh with:
chmod +x install.sh && ./install.sh
  1. After installation start the launcher.sh with:
chmod +x launcher.sh && ./launcher.sh

✨ Features

  • Ability to automatically install Core apps with optional apps:

    • SillyTavern,
    • Extras,
    • XTTS,
    • 7-Zip,
    • FFmpeg,
    • Node.js,
    • yq,
    • Visual Studio BuildTools,
    • CUDA Toolkit
  • Ability to automaticly install Text Completion apps:

    • Text generation web UI oobabooga
    • koboldcpp
    • TabbyAPI
  • Ability to automaticly install Image Generation apps:

    • Stable Diffusion web UI
    • Stable Diffusion web UI Forge
    • ComfyUI
    • Fooocus
  • Auto update all apps

  • Backup and Restore SillyTavern

  • Switch branch

  • Module editors

  • App installer & uninstaller to manage applications

  • Troubleshooting menu to fix most common problems

Questions or suggestions?

Join our Discord community! Get support, share characters and prompts.

Screenshots

image image

sillytavern-launcher's People

Contributors

alexveebee avatar bdashore3 avatar blazzycrafter avatar blueprintcoding avatar casualautopsy avatar cohee1207 avatar deffcolony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sillytavern-launcher's Issues

Wrong dependencies for XTTS when AMD GPU is used

My OS/Hardware

OS: Linux (Ubuntu 23.10)
GPU: AMD

Problem description

When installing XTTS, the dependencies are installed using pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118.
This will install CUDA for only NVIDIA GPU. For AMD GPU this needs to be replaced to pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6.
(This is based on interactive command generator.)

Fix suggestion

For a conda environment extras there is a nice option picker for GPU. I think that this picker should be moved before XTTS installation and there should be if based on user response.

Variable `CONDA_PATH` is uninitialized

OS: Linux (Ubuntu 23.10)

  1. If variable CONDA_PATH is set, then it is checked if path is (correct)[https://github.com/SillyTavern/SillyTavern-Launcher/blob/8ec79f07837932ebe123e9b4f68ef251b303672b/install.sh#L82].
    But if the variable is not set, then there is an error when installing conda. The first error comes from miniconda installer. The error complain about missing argument for -p.

    As a workaround, I changed code to this:

    if [ -n "$CONDA_PATH" ]; then
        CONDA_PATH="$(find_conda)"
    else
        SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
        CONDA_PATH="$SCRIPT_DIR/miniconda"
        echo "CONDA_PATH set to $CONDA_PATH"
    fi
  2. I think that another bad thing is not aborting when something goes wrong. For example, an error when installing conda does not stop further processing, which results in another errors. I propose setting set -e flag. Or at least manually check errors. This is important especially when a console is cleaned, because then no error is seen by the user. WARNING: there will be more errors from command like git (for already cloned repos), mkdir (xtts folder is created at two places), etc.

  3. After successful conda installation, the next error is miniconda_path. Probably this should be changed to CONDA_PATH. Maybe this is related to launcher.sh, but the docs say that install.sh script should be run first.

  4. Also, as far as I know git remember executable flag, so maybe these permissions should be added to git instead of explicitly in the run command (readme: chmod +x install.sh && ./install.sh). Actually, install.sh script has already this permission, but launcher.sh is missing that.

[BUG] Launcher.bat actually clears User's Path variable

Environment

Windows

System

Windows 11 - 23H2

Describe the problem

I noticed after using the Launcher, I noticed that quite a few of my programs broke. Investigating it, I realised my User Path variable was now empty! Using Process Monitor, I eventually found Silly Tavern Launcher to be the culprit.

The exact section is near the start, used to append paths to the current User Path, if they are missing,

rem Append the new paths to the current PATH only if they don't exist
if %ff_path_exists% neq 0 (
set "new_path=%current_path%;%winget_path%"
rem Update the PATH value in the registry
reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "%new_path%" /f
rem Update the PATH value for the current session
setx PATH "%new_path%" > nul
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%winget added to PATH.%reset%
) else (
set "new_path=%current_path%"
echo %blue_fg_strong%[INFO] winget already exists in PATH.%reset%

The expected behaviour of the Launcher.bat Batch file is to append Winget current Path value, if it is not found and save it, however, due to Batch evaluation, the actual behaviour saves an empty string.

Additional info

Demo video
LauncherClear-sml.mp4

The bug originates from not accounting for Batch evaluates variables in brackets. Batch performs replacement before execution, so new_path is never set when it is used. You can try this with the following snippet:

@echo off

if 1 neq 0 (
    set foo=test
    rem Expect 'foo' to be 'test'
    echo '%foo%'
)
exit
Snippet demo

image

The correct way would be to use setlocal enabledelayedexpansion and replace any %var%s which are assigned a value within blocks with !var!, like so:

setlocal enabledelayedexpansion

[...]

rem Append the new paths to the current PATH only if they don't exist
if %ff_path_exists% neq 0 (
    set "new_path=%current_path%;%winget_path%"
    ECHO "current_path is '%current_path%'"
    ECHO "winget_path is '%winget_path%'"
    ECHO "new_path is '!new_path!'"

    rem Update the PATH value in the registry
    reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "!new_path!" /f

    rem Update the PATH value for the current session
    setx PATH "!new_path!" > nul
    echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%winget added to PATH.%reset%
) else (
    set "new_path=%current_path%"
    echo %blue_fg_strong%[INFO] winget already exists in PATH.%reset%
)
ECHO "USER'S PATH WAS JUST UPDATED CORRECTLY!"
PAUSE

image

This bug probably also exists in other areas, causing other problems, but this is probably the most crucial one to fix.

Please tick the boxes

-extras installer: conda, python, pip, OpenSUSE package installer

The installer does not check for version conflicts when attempting to install miniconda.

At time of writing, the current release of miniconda requires Python v3.11.5. The miniconda website has installers for python3 versions older than v3.11.5. On Ubuntu LTS 22.04, for example, the latest python3 package is v3.10.12. A python3.11 package (binary called with python3.11) is v3.11.0rc1. Lots of other distros in the wild also don't have near-bleeding-edge Python in their repositories.

Unless you're planning to automate the process of version checking and installing the matching miniconda, the script should fail gracefully with a nice friendly notice that it doesn't know how to install miniconda on user's system and would user please go read the -extras README for instructions on how to manually install, with particular attention to visiting the miniconda website to learn about system requirements and download a miniconda installer that will work with user's system.


Also, pip should probably be called as pip3 to avoid calling the python2 pip where python2 may still exist alongside python3. Dunno about other distros, but pip3 exists on Debian/Ubuntu, Fedora, OpenSUSE, Arch.


Also, OpenSUSE packager zypper is not supported at all. zypper install [packagename] or zypper in [packagename]

[BUG] "The system cannot find the path specified" on opening launcher.bat

Environment

Windows

System

Win 11 22H2 build 22621.3007 (current)

Describe the problem

I installed the launcher as specified in the windows instructions. When I open launcher.bat and type 1, it returns as in the screenshot consistently. Not sure what went on here. The path it shows is the same path that it is installed in. Sorry if this has an obvious fix, I'm not great with this kind of thing.

Additional info

Screenshot 2024-03-18 180258

Please tick the boxes

Win10 ═ and winget epic fails

Environment

Windows

System

OS Name Microsoft Windows 10 Pro Version 10.0.19045 Build 19045

Describe the problem

  • ═ chars break the script in windows 10
    image

  • winget is so gross ... I feel like you could use powershell to download everything or if i had time to rewrite the entire thing in powershell I would .. you can install all the winget stuff with just powershell the windows I kill edge and the windows app store stuff on all my builds ... it looks like some places you use curl to

Additional info

No response

Please tick the boxes

[BUG] Error: Failed to activate Conda environment: xtts

Environment

🍎 Mac

System

Sonoma 14.3.1 (23D60)

Describe the problem

When installing ST+Extra+XTTS I'm hit by an error when the script want to activate the conda env for xtts. I've reinstalled Miniconda, Anaconda. Script work great when just installing ST or Extra.
Heres the entire terminal output.



/ Installer
-------------------------------------
What would you like to do?
1. Install SillyTavern + Extras + XTTS
2. Install SillyTavern
3. Install Extras
4. Install XTTS
5. Support
0. Exit
Choose Your Destiny (default is 1): 1














/ Installer / SillyTavern + Extras + XTTS
---------------------------------------------------------------
What is your GPU?
1. NVIDIA
2. AMD
3. None (CPU-only mode)
0. Cancel install
./install.sh: line 310: lspci: command not found

╔════ GPU INFO ═════════════════════════════════════════════════════════════╗
β•‘                                                                           β•‘
β•‘*                                                                          β•‘
β•‘                                                                           β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Enter number corresponding to your GPU: 3
[10:05:11] [INFO] Using CPU-only mode
[10:05:11] [INFO] Installing SillyTavern + Extras + XTTS
This may take a while. Please be patient.
[10:05:11] [INFO] Installing SillyTavern...
fatal: destination path 'SillyTavern' already exists and is not an empty directory.
[10:05:11] [INFO] SillyTavern installed successfully.
[10:05:11] [INFO] Installing Extras...
[10:05:11] [INFO] Cloning SillyTavern-extras repository...
fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory.
[10:05:11] [INFO] Installing XTTS...
[10:05:11] [INFO] Activating Miniconda environment...
./install.sh: line 381: /bin/activate: No such file or directory
[10:05:11] [INFO] Creating Conda environment: xtts
Channels:
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/homebrew/Caskroom/miniconda/base/envs/xtts

  added / updated specs:
    - git
    - python=3.10


The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/osx-arm64::bzip2-1.0.8-h80987f9_5 
  c-ares             pkgs/main/osx-arm64::c-ares-1.19.1-h80987f9_0 
  ca-certificates    pkgs/main/osx-arm64::ca-certificates-2024.3.11-hca03da5_0 
  curl               pkgs/main/osx-arm64::curl-8.5.0-h02f6b3c_0 
  expat              pkgs/main/osx-arm64::expat-2.5.0-h313beb8_0 
  gdbm               pkgs/main/osx-arm64::gdbm-1.18-h8fe7016_4 
  gettext            pkgs/main/osx-arm64::gettext-0.21.0-h13f89a0_1 
  git                pkgs/main/osx-arm64::git-2.40.1-pl5340h6cf2078_1 
  icu                pkgs/main/osx-arm64::icu-73.1-h313beb8_0 
  krb5               pkgs/main/osx-arm64::krb5-1.20.1-hf3e1bf2_1 
  libcurl            pkgs/main/osx-arm64::libcurl-8.5.0-h3e2b118_0 
  libcxx             pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 
  libedit            pkgs/main/osx-arm64::libedit-3.1.20230828-h80987f9_0 
  libev              pkgs/main/osx-arm64::libev-4.33-h1a28f6b_1 
  libffi             pkgs/main/osx-arm64::libffi-3.4.4-hca03da5_0 
  libiconv           pkgs/main/osx-arm64::libiconv-1.16-h1a28f6b_2 
  libnghttp2         pkgs/main/osx-arm64::libnghttp2-1.57.0-h62f6fdd_0 
  libssh2            pkgs/main/osx-arm64::libssh2-1.10.0-h02f6b3c_2 
  libxml2            pkgs/main/osx-arm64::libxml2-2.10.4-h0dcf63f_1 
  llvm-openmp        pkgs/main/osx-arm64::llvm-openmp-14.0.6-hc6e5704_0 
  ncurses            pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 
  openssl            pkgs/main/osx-arm64::openssl-3.0.13-h1a28f6b_0 
  pcre2              pkgs/main/osx-arm64::pcre2-10.42-hb066dcc_0 
  perl               pkgs/main/osx-arm64::perl-5.34.0-h1a28f6b_2 
  pip                pkgs/main/osx-arm64::pip-23.3.1-py310hca03da5_0 
  python             pkgs/main/osx-arm64::python-3.10.14-hb885b13_0 
  readline           pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 
  setuptools         pkgs/main/osx-arm64::setuptools-68.2.2-py310hca03da5_0 
  sqlite             pkgs/main/osx-arm64::sqlite-3.41.2-h80987f9_0 
  tk                 pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 
  tzdata             pkgs/main/noarch::tzdata-2024a-h04d1e81_0 
  wheel              pkgs/main/osx-arm64::wheel-0.41.2-py310hca03da5_0 
  xz                 pkgs/main/osx-arm64::xz-5.4.6-h80987f9_0 
  zlib               pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0 



Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate xtts
#
# To deactivate an active environment, use
#
#     $ conda deactivate

[10:05:21] [INFO] Activating Conda environment: xtts
./install.sh: line 389: activate: No such file or directory
[10:05:21] [ERROR] Failed to activate Conda environment: xtts
[10:05:21] [INFO] Press Enter to try again otherwise close the installer and restart.
Press Enter to try again...

Additional info

No response

Please tick the boxes

[BUG] <Failed to activate Conda environment: extras>

Environment

Linux

System

Distributor ID: Pop Description: Pop!_OS 22.04 LTS Release: 22.04 Codename: jammy

Describe the problem

Error during installation of Sillytavern + extras from scratch.

/ Installer / SillyTavern + Extras
---------------------------------------------------------------
What is your GPU?
1. NVIDIA
2. AMD
3. None (CPU-only mode)
0. Cancel install

╔════ GPU INFO ═════════════════════════════════════════════════════════════╗
β•‘                                                                           β•‘
β•‘*  NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (rev a1)     β•‘
β•‘                                                                           β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Enter the number corresponding to your GPU: 1
[20:20:06] [INFO] GPU choice set to NVIDIA
[20:20:06] [INFO] Installing SillyTavern + Extras...
This may take a while. Please be patient.
[20:20:06] [INFO] Installing SillyTavern...
fatal: destination path 'SillyTavern' already exists and is not an empty directory.
[20:20:06] [INFO] SillyTavern installed successfully.
[20:20:06] [INFO] Installing Extras...
[20:20:06] [INFO] Cloning SillyTavern-extras repository...
fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory.
--2024-03-20 20:20:06--  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8303, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 144041912 (137M) [application/octet-stream]
Saving to: β€˜/tmp/Miniconda3-latest-Linux-x86_64.sh.1’

Miniconda3-latest-L 100%[===================>] 137.37M  15.3MB/s    in 9.4s    

2024-03-20 20:20:16 (14.7 MB/s) - β€˜/tmp/Miniconda3-latest-Linux-x86_64.sh.1’ saved [144041912/144041912]

/tmp/Miniconda3-latest-Linux-x86_64.sh: option requires an argument -- p
ERROR: did not recognize option '?', please try -h
[20:20:16] [INFO] Activating Miniconda environment...
./install.sh: line 379: /etc/profile.d/conda.sh: No such file or directory
[20:20:16] [INFO] Disabling conda auto activate...
./install.sh: line 383: conda: command not found
./install.sh: line 384: conda: command not found
[20:20:16] [INFO] Creating Conda environment extras...
./install.sh: line 387: conda: command not found
[20:20:16] [INFO] Activating Conda environment extras...
./install.sh: line 390: conda: command not found
[20:20:16] [ERROR] Failed to activate Conda environment: extras
[20:20:16] [INFO] Press Enter to try again otherwise close the installer and restart.
Press Enter to try again

only option is to press enter and the script just try to download again the miniconda package in /tmp (adding an incremental numeration each time and failing all the time.

Additional info

No response

Please tick the boxes

Cannot launch start SillyTavern with Extras

OS: Linux (Ubuntu 23.10)

  1. I believe that this code is incorrect:

    exec "$detected_terminal" -e "cd $(dirname "$0")./SillyTavern && ./start.sh" &
    exec "$detected_terminal" -e "cd $(dirname "$0")./SillyTavern-extras && ./start.sh" &

    According to bash manual, exec will replace current shell with specified subcommand.
    This will only launch the first of these commands.

  2. Not sure about all the supported terminals, but in case of konsole there is an error: "Could not find binary: " "cd".
    This is probably because konsole try to run specified command exactly as a new program. There is also used bash syntax (&&), so it should be wrapped in bash caommnad.

  3. Also, probably the path is wrong. In my case, this command is run: konsole -e 'bash -c '\''cd [...]/SillyTavern-Launcher./SillyTavern && ./start.sh'\''' (Note unnecessary . character after Launcher word).

I used this code as a workaround:

            "$detected_terminal" -e "bash -c 'cd $(dirname "$0")/SillyTavern && ./start.sh'" &
            "$detected_terminal" -e "bash -c 'cd $(dirname "$0")/SillyTavern-extras && ./start.sh'" &
  1. In SillyTavern-extras project, there are missing execute permissions for start.sh file. This may be fixed by launcher or maybe bettor to report and fix in that project?

  2. Script start.sh in SillyTavern-extras should use exactly the same conda environment which was configured in launcher (install.sh). According to code in https://github.com/SillyTavern/SillyTavern-Extras/blob/main/start.sh this is configured by setting $CONDA_PATH environment variable. This should be done in laucher.sh.

[BUG] Unable to download, Getting remote disconected.

Environment

Windows

System

Windows

Describe the problem

Whenever it starts to download, it just keeps getting cut off remotely.

Additional info

[12:23:49.67] [INFO] Installing SillyTavern...
[12:23:49.67] [INFO] Cloning SillyTavern repository...
Cloning into 'SillyTavern'...
remote: Enumerating objects: 40885, done.
remote: Counting objects: 100% (3191/3191), done.
remote: Compressing objects: 100% (835/835), done.
error: RPC failed; curl 16 Error in the HTTP2 framing layer/s
error: 7129 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
[12:24:41.71] [INFO] SillyTavern installed successfully.
image

Please tick the boxes

[BUG] Error: Failed to execute child process β€œcd”: Failed to execve: No such file or directory

Environment

🐧 Linux

System

Arch Linux 6.8.4-arch1-1

Describe the problem

I installed on Arch, KDE Plasma following the commands. When I run launcher.sh i get:

Choose Your Destiny: # Option β€œ-e” is deprecated and might be removed in a later version of gnome-terminal.
# Use β€œ-- ” to terminate the options and put the command line to execute after it.
# Error: Failed to execute child process β€œcd”: Failed to execve: No such file or directory

Additional info

No response

Please tick the boxes

[BUG] silly tavern fails to launch

Environment

🐧 Linux

System

Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

Describe the problem

On Kubuntu 2022.04 LTS, the launcher fails. After selecting "Start SillyTavern", the following messages appear
in the console

Choose Your Destiny: kf.config.core: "KConfigIni: In file /home/andreas/.local/share/color-schemes/Matrix-Dark.colors, line 1: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/andreas/.local/share/color-schemes/Matrix-Dark.colors, line 2: " Invalid entry (missing '=')
"Could not find binary: " "cd"
"Could not find binary: " "cd"

I believe the kf.config.core messages to be a red herring - similar messages are given by programs that successfully launch. cd is only a builtin, i.e. which cd does not return anything.

Additional info

No response

Please tick the boxes

No module named "TTS" Error at starting Extras via SillyTavern-Launcher

I use Windows 11, I installed SillyTavern and the extras via the Launcher. I didn't install (I chose "N") coqui as it asked me if I want or not.

When I start SillyTavern with extras, then I get an error in the Extras Shell:

Using torch device: cpu
Initializing talkinghead pipeline in cpu mode....
Using the separable_float model.
Initializing an image captioning model...
Loading the eyebrow decomposer ... DONE!!!
Loading the eyebrow morphing conbiner ... DONE!!!
Loading the face morpher ... DONE!!!
Loading the face-body rotator ... DONE!!!
Loading the combiner ... DONE!!!
Initializing a text summarization model...
Initializing ChromaDB
ChromaDB is running in-memory with persistence. Persistence is stored in .chroma_db. Can be cleared by deleting the folder or purging db.
Successfully pinged ChromaDB! Your client is successfully connected.
Setting MAX_CONTENT_LENGTH to 1000 Mb
Initializing RVC voice conversion (from ST request file)
Increasing server upload limit
RVC saving file option detected, input/output audio will be savec into data/tmp/ folder
2023-11-26 02:12:31 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX
2023-11-26 02:12:31 | INFO | faiss.loader | Loading faiss with AVX2 support.
2023-11-26 02:12:31 | INFO | faiss.loader | Could not load library with AVX2 support due to:
ModuleNotFoundError("No module named 'faiss.swigfaiss_avx2'")
2023-11-26 02:12:31 | INFO | faiss.loader | Loading faiss.
2023-11-26 02:12:31 | INFO | faiss.loader | Successfully loaded faiss.
<RVC module> Checking RVC models folder: data/models/rvc/
> Searching for pth files
> Searching for index files
<RVC module> RVC model folder checked.
Initializing Coqui TTS client in GPU mode
Traceback (most recent call last):
  File "C:\AITools\SillyTavern-Launcher\SillyTavern-extras\server.py", line 399, in <module>
    import modules.text_to_speech.coqui.coqui_module as coqui_module
  File "C:\AITools\SillyTavern-Launcher\SillyTavern-extras\modules\text_to_speech\coqui\coqui_module.py", line 22, in <module>
    from TTS.api import TTS
ModuleNotFoundError: No module named 'TTS'

Component locations

SillyTavern and extras are installed under the installer folder, which makes it inconvenient to share instances.

It is better to install them on the same level.

jail breaker not working for image generate[FEATURE_REQUEST] <title>

Have you searched for similar requests?

Yes

Is your feature request related to a problem? If so, please describe.

jail breaker only works on chatting. I got cencored every time when i want to send a request to my stable diffusion server.

Describe the solution you'd like

add jail breaker to image generation

Describe alternatives you've considered

No response

Additional context

No response

Priority

Medium (Would be very useful)

Is this something you would be keen to implement?

Yes!

`./launcher.sh: line 258: exec: x-terminal-emulator: not found`

System info:

$ uname -a
Linux toolbox 6.5.12-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 20 22:12:09 UTC 2023 x86_64 GNU/Linux

(Running in a toolbox on fedora silverblue)

Latest version of the launcher, just cloned today.

I am using GNOME, but currently I am SSHed into my PC. Although, even when I do it on the PC itself i get the same result.

start_command error when launching SillyTavern + Extra on Windows

Hello guys,

With SillyTavern 1.11.1 'release' (736223a8), I encountered a bug when launching SillyTavern Extras using launcher.bat, specifically with command 3. The CMD window would open but then end with an error related to the start_command not being defined. I noticed that the SillyTavern launcher.bat was sourcing the modules.txt not from the "SillyTavern-extras" folder but from the SillyTavern root folder. Moreover, even the modules.txt in the SillyTavern folder doesn't seem to work on Windows, as it lacks the "start_command" at the beginning, as well as the server.py. The parsing intended by the code doesn't seem to function.

I resolved this on my end by editing the modules.txt file in the root folder and adding the complete API server launch command with the start_command:
start_command=python server.py --enable-modules=chromadb --listen (in my case, I only want listen and chromadb).

Did I miss something on my end, or is this a problem encountered by others as well? Thank you.

[BUG] install.sh is looping

Environment

Linux

System

Arch-Linux

Describe the problem

The install.sh is looping. I looked up the script and here:

install_st_extras_post() {
    # Activate the extras environment
    log_message "INFO" "Activating Conda environment extras..."
    conda activate extras

    # Navigate to the SillyTavern-extras directory
    cd "$PWD/SillyTavern-extras"

    # Use the GPU choice made earlier to install requirements for extras
    if [ "$GPU_CHOICE" == "1" ]; then
        log_message "INFO" "Installing modules for NVIDIA from requirements.txt in extras"
        pip3 install -r requirements.txt
        conda install -c conda-forge faiss-gpu -y
        install_st_extras_post
    elif [ "$GPU_CHOICE" == "2" ]; then
        log_message "INFO" "Installing modules for AMD from requirements-rocm.txt in extras"
        pip3 install -r requirements-rocm.txt
        install_st_extras_post
    elif [ "$GPU_CHOICE" == "3" ]; then
        log_message "INFO" "Installing modules for CPU from requirements-silicon.txt in extras"
        pip3 install -r requirements-silicon.txt
        install_st_extras_post
    fi

... it just keeps itself invoking. It doenst get any further. Is this the issue or is it something else why my installation is looping here?

Additional info

No response

Please tick the boxes

[BUG] Unexpected behavior on --listen option.

Environment

Windows

System

Windows 10 Version 21H2 (OS Build 19044.3086)

Describe the problem

When using the launcher, I activated the XTTS option and the --listen option. However, when I run it, XTTS server runs under localhost and I am unable to connect to it from my phone. The Extras server listens fine and binds to the LAN address, but I would expect to be able to listen to XTTS as well if its enabled. I am unsure of how to manually enable this yet, but it should not be needed to mess with the configs.

Additional info

The is no information as far as I can tell on the docs on how to manually enable the binding to LAN using either launcher or config files.

Please tick the boxes

[BUG] installer removes items from path

Environment

πŸͺŸ Windows

System

Windows 11

Describe the problem

I noticed that trying to use the installer, it kept trying to download winget and add it to path, winget was already installed though.

After more digging, I found that it was removing the windows store record %userprofile%\AppData\Local\Microsoft\WindowsApps\ in the path everytime, making it so after it asked you to restart the installer it would just try to reinstall it.

Then the same happened with conda. Which I also manually readded. %userprofile%\miniconda3\condabin

I commented out lines 61-80 and 119-138 (the sections messing with the PATH for conda and winget) and that seemed to get me to the next step at least.

Additional info

No response

Please tick the boxes

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.