[GUIDE] Step by step guide to installing FASTSDCPU on ANDROID from scratch #123
Replies: 8 comments 2 replies
-
@patientx Nice,could you please fix typo in the title "ANDROID from stratch". |
Beta Was this translation helpful? Give feedback.
-
I wanted to tell anyone who was going to try this that there is also a way to faceswap on android natively with the same way as this. It is working very well and faster and less painless compared to fastsdcpu (requiring less resources ofc) https://github.com/facefusion/facefusion You can see my guide for that on their discord, same stuff with fastsdcpu really, just a few extra steps. QUICK TIP : On android the termux and linux stuff takes a lot of cpu power & memory making running the browser a bit slower sometimes auto closing the linux stuff because of memory errors. I found out that using a barebones browser specifically for these things (both fastsdcpu and facefusion) makes it a lot responsive and lowers the chance out of memory errors occuring. Tried a few of them on play store and finally settled on using this : https://play.google.com/store/apps/details?id=net.onecook.browser&hl=en&gl=US Of course you can use others , just use this enter the ip of facefusion save it as default page and it is very fast to open and use when you open the app compared to chrome or other big time browsers. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
you need python3.10 I suspect. You seem to have 3.11. It doesn't work even on PC with 3.11 for me. |
Beta Was this translation helpful? Give feedback.
-
apt install ffmpeg |
Beta Was this translation helpful? Give feedback.
-
UPDATE : Latest update requires "mediapipe v0.10.11" which isn't yet available in android so far, the latest version is 0.10.9. Tried with it and it is working at least with default lcm model and newest sdxs model.
1- ) Install termux from f-droid. (https://f-droid.org/packages/com.termux/)
---- Open termux & enter and execute these commands one by one
2- ) pkg update
3- ) pkg upgrade -y
4- ) termux-setup-storage
5- ) pkg install wget -y
6- ) pkg install git -y
7- ) pkg install proot -y
8- ) cd ~
9- ) git clone https://github.com/MFDGaming/ubuntu-in-termux.git
10- ) cd ubuntu-in-termux
11- ) chmod +x ubuntu.sh
12- ) ./ubuntu.sh -y
13- ) ./startubuntu.sh
---- We are in ubuntu now, you'll see that the prompt would change to root@localhost
14- ) apt update -y
15- ) apt dist-upgrade -y
16- ) apt install wget git -y
17- ) apt install python3 -y
18- ) apt install python3.10-venv -y
19- ) apt install gcc python3-dev -y
20- ) git clone https://github.com/rupeshs/fastsdcpu.git
21- ) cd fastsdcpu
22- ) chmod +x install.sh
23- ) ./install.sh --disable-gui
---- Now the app will install its required files, gonna take a while. After it is finished, use this to start the app in webui mode.
Added :::
24- ) apt-get install ffmpeg
25- ) ./start-webui.sh
---- Again, when everything is good you'll see "Running on local URL. http://127.0.0.1:7860" Then ....
26- ) Open your preferred web browser on your phone and enter the address http://127.0.0.1:7860
---- First time generating it is going to download the default model which takes around 4 GB of space so be ready spacewise and timewise ...
Annd... it is done.
On my device : (Xiaomi Red Mi Note 8 Pro) with default sd-turbo model, it takes around 45seconds for one step, also with default VAE my phone can't decode it probably not enough RAM, so I switched on "use tiny encoder on SD" in generation settings tab.
One step total time 75 seconds
Can do two images at a total time of 105 seconds. /tried 4 nope it crashed :) so two it is.
TO RUN IT AT LATER TIMES :
on termux ::
cd ubuntu-in-termux
./startubuntu.sh
then on ubuntu ::
cd fastsdcpu
./start-webui.sh
Beta Was this translation helpful? Give feedback.
All reactions