To use SDXS you'll need to have Termux, this app allows you to use a linux distro in your mobile phone. Download Termux and install it on your phone.
pkg install proot-distro -y
proot-distro install debian
Note: the distro will be located at /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/root
.
Allow Termux to make a storage mount next to $HOME (wiki).
apt upgrade -y
termux-setup-storage
proot-distro login debian --shared-tmp
apt update -y
apt install git git-lfs vim python3 python3-pip python3-venv -y
git clone https://github.com/self-destruction/sdxs-cli
cd sdxs-cli/
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py --prompt "A majestic goat with a realistic sunset and a blue lake, very detailed, a masterpiece"
Params:
--prompt # prompt string
--large_vae # (optional) not exist by default, takes 4 times longer
To get access the generated pictures, you have to exit the linux dist (exit
command) and copy the contents of the generation folder to mount with the following command:
cp -r /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/root/sdxs-cli/output $HOME/storage/downloads
Note: now the output folder with generations can be found in the file manager in the root folder Download
.
proot-distro login debian --shared-tmp
cd sdxs-cli/ && source venv/bin/activate
python app.py --prompt "A majestic goat with a realistic sunset and a blue lake, very detailed, a masterpiece"
Don't forget to sync output folder to the mounted one.
Testing was done on the Snapdragon 8 gen 3. 12+8 gb ram.