EveryDream2trainer/doc/SETUP.md

54 lines
1.6 KiB
Markdown
Raw Normal View History

## For Runpod/Vast instructions see [Cloud Setup](/doc/CLOUD_SETUP.md)
2023-02-09 17:56:14 -07:00
## For Google Colab see [Train_Colab.ipynb](/Train_Colab.ipynb)
2022-12-17 20:32:48 -07:00
## Install Python
2022-12-18 11:03:44 -07:00
Install Python 3.10 from here if you do not already have Python 3.10.x installed.
2022-12-17 20:32:48 -07:00
https://www.python.org/downloads/release/python-3109/
https://www.python.org/ftp/python/3.10.9/python-3.10.9-amd64.exe
Download and install Git from [git-scm.com](https://git-scm.com/).
or [Git for windows](https://gitforwindows.org/)
2022-12-17 23:21:35 -07:00
Make sure Python 3.10 shows on your command window:
python --version
2022-12-18 11:03:44 -07:00
You should see ```Python 3.10.something```. 3.10.5, 3.10.9, etc. It needs to be 3.10.x.
2022-12-17 23:21:35 -07:00
If you have Python 3.10.x installed but your command window shows another version (3.8.x, 3.9.x) ask for assistance in the discord.
2022-12-18 11:03:44 -07:00
...or you can try setting the path to the 310 binaries before running the windows_setup.cmd if you know what you're doing.
2022-12-17 23:21:35 -07:00
SET PYTHON=C:\Python310\python.exe
2022-12-18 11:03:44 -07:00
*(you'll have to locate python 310 on your system on your own if you)*
2022-12-17 23:21:35 -07:00
2022-12-17 20:32:48 -07:00
## Clone this repo
Clone the repo from normal command line then change into the directory:
2022-12-18 11:03:44 -07:00
git clone https://github.com/victorchall/EveryDream2trainer
Then change into the folder:
2022-12-17 20:32:48 -07:00
2022-12-18 11:03:44 -07:00
cd EveryDream2trainer
2022-12-17 20:32:48 -07:00
## Windows
2022-12-18 11:03:44 -07:00
While still in the command window, run windows_setup.cmd to create your venv and install dependencies.
2022-12-17 20:32:48 -07:00
2022-12-17 20:38:39 -07:00
windows_setup.cmd
2022-12-17 20:32:48 -07:00
2022-12-17 23:21:35 -07:00
Double check your python version again after setup by running these two commands:
activate_venv.bat
python --version
2022-12-18 11:03:44 -07:00
Again, this should show 3.10.x
2023-03-31 09:49:54 -06:00
## Docker container
`docker run -it -p 8888:8888 -p 6006:6006 --gpus all -e JUPYTER_PASSWORD=test1234 -t ghcr.io/victorchall/everydream2trainer:nightly`