Giter VIP home page Giter VIP logo

android-stable-diffusion-onnx's People

Contributors

ztmidgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

android-stable-diffusion-onnx's Issues

APK界面和编译

你好,请问安装好的应用界面里分别是什么?我理解dropdown 192-512应该是生成图像大小,7.5和8分别是什么?

Can other model be used in the android apk?

Hi developer thanks for making this awesome app, i recently got to know about stable diffusion so I was curious to run it locally, I've found that it can work on pc, mac, ios but not android. I finally found it after all.

Can we use other models if so how, for example I want to use cyber realistic model.

如何生成APK

你好,想根据你提供的方法把整个app生成流程跑通。我对安卓apk部分完全是小白,能请问下载了github代码,有了模型文件后,要怎么生成apk吗?谢谢!

Sampler EulerA seed issue and a request

First of all thank you so much for the new update.
Thank you for hearing out our feedback and implementing the save button and sampler option. Kudos to the developer.

Issue :
I think something is wrong with Euler Sampler. It's giving a totally different output for the same seed and prompts.

Example

First output
Screenshot_2023-09-21-18-20-20-35_c7e96a0c09d8fd04249d1567299a7d46

Second output (same seed and prompt)
Screenshot_2023-09-21-18-20-56-34_c7e96a0c09d8fd04249d1567299a7d46

In comparison, DPMS sampler
First output
Screenshot_2023-09-21-18-18-58-67_c7e96a0c09d8fd04249d1567299a7d46

Second output (same seed and prompt)
Screenshot_2023-09-21-18-19-37-91_c7e96a0c09d8fd04249d1567299a7d46

Hoping for an update fix for this and with more samplers, imgToimg.

Suggestion1: Please add random seed to appear in seed edittext when onclick "Generate button" if "seed=null", so that we can know which seed was used and can recreate it again.
Suggestion2: To save some storage space, if possible, can you please make the app get model files directly from the phone storage while initialisation/generating instead of making a copy of the model files at app directory.

img2img实现方法

你好,现在的apk只支持txt2img,我想尝试添加img2img的功能。我理解的是img2img会把random seed的latent image改为输入图,所以是只需要修改UNet的输入就行了吗?这个部分的话在你写的Java代码里是需要在哪部分修改呢?

项目编译

你好,我尝试新建一个项目复现这个工程,就直接把代码copy到新项目里。
发现在运行的时候,点击 生成 按钮,就报错:
java.lang.UnsatisfiedLinkError: No implementation found for long ai.onnxruntime.OrtSession$SessionOptions.createOptions(long) (tried Java_ai_onnxruntime_OrtSession_00024SessionOptions_createOptions and Java_ai_onnxruntime_OrtSession_00024SessionOptions_createOptions__J) at ai.onnxruntime.OrtSession$SessionOptions.createOptions(Native Method) at ai.onnxruntime.OrtSession$SessionOptions.<init>(OrtSession.java:530) at com.xiaoguo.demo.diffusion.tokenizer.EngTokenizer.init(EngTokenizer.java:59)

请问在编译过程中,有什么需要注意的么?

Feature request

hi I have converted 6-7 models , actually I created a colab notebooks which does it automatically . Most of the model works and give some what good result but dreamlike photo real 2 doesn't work . Also how can we load models from storage rather than building it in the app itself? The feature to use different sampler and save images . Let me know if u want the models .
If you can guide me a bit I'll try to modifying the app file so loading from external storage works .

图片模糊问题

您好,博主,生成的图片都比较模糊,细节不清晰,生成的人物头像脸部变现,是提示词没写好导致的么,,

External model usage and up-to-date compiled apk

Hi there. I was successfully able to use fastsdcpu on termux to generate with android locally (rupeshs/fastsdcpu#123)

And just saw your app. First of all what is the most recent version of apk you have that is available ? The default apk you shared on the bottom just has one button on top and I presume that is move assets to memory and the other one is to generate.

And on one of the discussions you mention being able to load models externally , how would that be possible ? Where do we put them and how does the app see them ? How do we use other models ? (saw the other models on huggingface and was able to download a few of them)

Save output to gallery, seed, some model crash

Could you please add save output to gallery function.
Why does the same seed and prompt give a totally different output?
Why does some models crashes when set to 448x448 and 512X512?

原始模型转ort脚本

您好,现在的apk中的ort模型,是通过pytorch还是onnx量化和转换而来的?能合入原始模型的路径、量化和转ort脚本不? 方便扩展和新增APP功能

Crash issue while initializing on my Miui device after 2023.9.20 update

After the 2023.9.20 update I am facing crash issue while initializing on my Redmi Note 4 mido. The previous version was working without crash.

Here is the screenshot and crash report.

Screenshot_2023-09-23-15-56-13-719_com miui home


Build fingerprint: 'xiaomi/mido/mido:7.0/NRD90M/V11.0.2.0.NCFMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 25854, tid: 25898, name: pool-1-thread-1 >>> com.example.open.diffusion <<<
signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x7f608bb7fc
x0 0000007f60b811e8 x1 000000000000004d x2 0000000000000300 x3 0000000000000300
x4 0000007f3957ce80 x5 0000000000000001 x6 0000000000000001 x7 0000007f5ed6bbc0
x8 0000000000000000 x9 0000007f60b7b000 x10 0000007f60b7b000 x11 0000007f60b7b000
x12 0000007f60b7b000 x13 0000000000000000 x14 0000007f3957cef8 x15 0000000000000000
x16 0000007f60b7ccf8 x17 0000007f8071ae9c x18 0000007f7ba4c990 x19 0000007f5ed6bbc0
x20 0000000000000008 x21 0000000000000300 x22 0000000000000300 x23 000000000000004d
x24 0000007f17d90300 x25 000000000000006f x26 0000000000000001 x27 0000007f5ceed4e8
x28 0000007f60b81248 x29 0000007f5cee9f40 x30 0000007f608bd76c
sp 0000007f5cee9ef0 pc 0000007f608bb7fc pstate 0000000080000000

backtrace:
#00 pc 0000000000b107fc /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#1 pc 0000000000b12768 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#2 pc 000000000064b174 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#3 pc 0000000000a16984 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#4 pc 0000000000a16060 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#5 pc 0000000000a2d690 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#6 pc 0000000000a19588 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#7 pc 0000000000a18e14 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#8 pc 0000000000a41850 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#9 pc 0000000000a41460 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#10 pc 0000000000a42970 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#11 pc 00000000003d420c /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#12 pc 00000000003d5f20 /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#13 pc 00000000003a8acc /data/app/com.example.open.diffusion-1/base.apk (offset 0x206000)
#14 pc 000000000000d9fc /data/app/com.example.open.diffusion-1/base.apk (offset 0xfd9000)
#15 pc 000000000056cc04 /data/app/com.example.open.diffusion-1/oat/arm64/base.odex (offset 0x56a000)

Metadata on saved outputs

Hello developer, can you please add exif features in this app to automatically save metadata to the saved output images. Like the, prompt, negative prompt, sampling method, resolution, guidance scale, steps, seed, and the model name used to generate the image.

Example of a manually added metadata tag:
Screenshot_2023-09-28-20-56-28-30_e347abda5f3c62a68d70675ac35584e0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.