Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

android termux #205

sl33pyC01E started this conversation in Ideas
Mar 18, 2024 · 3 comments · 6 replies
Discussion options

Hello, is there an easy way to port this to termux on android?
(I haven't begun attempting yet)

You must be logged in to vote

Replies: 3 comments 6 replies

Comment options

Yes, I got this to work on termux on android on a Samsung galaxy s23 by just following the README without doing anything special and it just worked.

At default settings I'm getting ~70s/it for 20 iterations of stable diffusion so this'll take about 20-25 minutes to generate a single image. Assuming this is not leveraging the GPU with my current settings.

You must be logged in to vote
1 reply
Comment options

i have gotten it to complete an image in 97 seconds with 512x512 sdt lcm

Comment options

GUIDE FROM ZERO ON AN ANDROID PHONE - TERMUX AND WHOLE SETUP

For someone coming from zero on an android phone 👍

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- ) termux-setup-storage
4- ) pkg install git cmake -y
5- ) git clone --recursive https://github.com/leejet/stable-diffusion.cpp
6-) cd stable-diffusion.cpp
7-) curl -L -O https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
or just download any fp16 model which are a lot of huggingface and only 2gb instead of default 4gb
8-) mkdir build
9-) cd build
10-) cmake ..
11-) cmake --build . --config Release

and run.

You must be logged in to vote
3 replies
Comment options

can termux packages by installed in offline mode?
it have access to whole (no root) filesystem with no root?

Comment options

From the termux webpage ::

You can access Termux home directory ($HOME) from the file manager using Storage Access Framework and capable of accessing drives like USB or external SD-card in read-write mode.

Few recommended file managers which can access Termux home directory:

FX File Explorer: https://play.google.com/store/apps/details?id=nextapp.fx
Material Files: https://play.google.com/store/apps/details?id=me.zhanghai.android.files

300px-FX_Termux_Home

I am using material files and yes it is very easy to copy paste move ... files from there to normal phone memory or just view output etc.

Comment options

hmm wine root directory can't be accessed in this way?

Comment options

can termux packages by installed in offline mode? it have access to whole (no root) filesystem with no root?

it "emulates" root, so no it won't have access to whole system but the apps you install over it are made to be believe they are doing that. for example you can install proot in it and install ubuntu over it too. And I don't think you can do installs in offline mode.

You must be logged in to vote
2 replies
Comment options

it won't have access to whole system

i'm about user files
can it run own apps, for example, from sdcard root folder?
and
is it's "root files" stored in accessible folder?
for copying preinstalled packages

also why not make prebuild SD for only copying it to termux?

Comment options

i post my prebuilt binary
#231
for less advanced users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /