-
Notifications
You must be signed in to change notification settings - Fork 17
Installation Tutorial (Linux,MacOS)
(To be updated for 2.0)
- Clone the repository or download the latest release (
source code.zip
) - Go to the project folder with your favorite IDE
- Be sure to have Python installed (3.9), it is not tested and functional for other versions with conflicts between several libraries.
To setup all the libraries:
- Run these commands in a terminal opened within the project folder to install the packages (the 2nd one only if you want and can use GPU):
pip install -r requirements.txt pip install simpleaudio pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 python -m playwright install firefox
- If there was an error returned during the installation of the packages, delete the corresponding line in
requirements.txt
and dowload the package concerned manually - To download TTS (first model with Coqui AI TTS), run these commands:
git clone https://github.com/coqui-ai/TTS cd TTS pip install -e . cd ../
- To download TTS (new model with Tortoise-TTS), run these commands:
git clone https://github.com/152334H/tortoise-tts-fast cd tortoise-tts-fast pip install -e . cd ../
-
simpleaudio
or other packages might need to install Visual Studio C++ Tools too (see tutorial here), forsimpleaudio
follow this - If you want to use Pygmalion models, follow these intructions:
- To use
int8
i.e. models taking less GPU RAM withbitsandbytes
(only compatible with recent GPUs):- Download these 2 dll files from here. Move those files in your python packages folder, on Windows it is something like
C:\Users\MyName\AppData\Local\Programs\Python\Python39\Lib\site-packages\bitsandbytes
- Edit
bitsandbytes\cuda_setup\main.py
:- Change
ct.cdll.LoadLibrary(binary_path)
toct.cdll.LoadLibrary(str(binary_path))
two times in the file. - Replace the this line
if not torch.cuda.is_available(): return 'libsbitsandbytes_cpu.so', None, None, None, None
withif torch.cuda.is_available(): return 'libbitsandbytes_cuda116.dll', None, None, None, None
- Change
- Download these 2 dll files from here. Move those files in your python packages folder, on Windows it is something like
- Follow the instructions in the wiki
- To use
- For troubleshooting and other issues, don't hesitate to submit an issue
The submod is in Releases under the name Monik.A.I-game-version.zip
. To add it to your game, you have to extract it and add it in the root of your game folder (at the same location where there is already a game
folder).
Execute python main.py
for the chatbot things and fill in the window the same as for the user version. Don't launch DDLC yourself, it will open automatically (unless you check the option Launch yourself
). If you intend to use chatbots, be sure to follow the instructions on thispage beforehand.
When the browser page launches, it can happen that you have to solve the captcha yourself, use debug mode if that happens.
For voicing of the game in real time, run python voicing.py
and launch DDLC yourself when the message Waiting for connection...
appears.
To update to versions coming after 1.6.1, you'll just have to:
- Run these commands to overwrite your files with the ones on the repository:
git fetch origin
git reset --hard origin
"libs/pythonlib/python.exe" -m pip install --force-reinstall -r requirements.txt
- Download the latest
Monik.A.I-game-version.zip
inReleases
or use the Auto Updater directly in MAS.