Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stable Diffusion] Integration with stable-diffusion.cpp #225

Open
danemadsen opened this issue Dec 21, 2023 · 9 comments
Open

[Stable Diffusion] Integration with stable-diffusion.cpp #225

danemadsen opened this issue Dec 21, 2023 · 9 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@danemadsen
Copy link
Member

I'm wanting to integrate stable-diffusion.cpp into maid at some point. I'm submitting this issue as an expression of interest for anyone who wants to implement it for me.

@danemadsen danemadsen added enhancement New feature or request help wanted Extra attention is needed labels Dec 21, 2023
@danemadsen danemadsen changed the title [Stable Diffusion] [Stable Diffusion] Integration with stable-diffusion.cpp Dec 21, 2023
@RookieIndieDev
Copy link

Certainly would be interesting addition. How well does it run on mobile devices locally?

@danemadsen
Copy link
Member Author

Certainly would be interesting addition. How well does it run on mobile devices locally?

No idea. Its theoretically possible because like llama.cpp its can be run in an android terminal emulator. Its going to be a huge addition once I get around to it and there's other stuff that needs to be done to core.cpp before I cross that bridge.

@Ar57m
Copy link
Contributor

Ar57m commented Dec 24, 2023

Certainly would be interesting addition. How well does it run on mobile devices locally?

I ran sd-turbo safetensors q4_0 on stablediffusion. cpp about 88 seconds per iteration, it's too much slow

@RookieIndieDev
Copy link

That's painfully slow. Mobile GPUs/CPUs aren't good enough I guess.

@MugoSquero
Copy link

You can try implementing whisper.cpp too. It runs quite easily on my phone using the base model.

@Foul-Tarnished
Copy link

Foul-Tarnished commented Dec 29, 2023

There's an app for android already
https://github.com/ShiftHackZ/Stable-Diffusion-Android

It doesn't use sd-turbo afaik, SD1.5 ?
Pretty slow, like 2min per image on SD865 12GB (+4GB) at 512x and something like 30 steps
I don't really remember

You can't even choose another checkpoint, and it lacks a lot of settings

@Ar57m
Copy link
Contributor

Ar57m commented Dec 30, 2023

There's an app for android already https://github.com/ShiftHackZ/Stable-Diffusion-Android

It doesn't use sd-turbo afaik, SD1.5 ? Pretty slow, like 2min per image on SD865 12GB (+4GB) at 512x and something like 30 steps I don't really remember

You can't even choose another checkpoint, and it lacks a lot of settings

thanks for sharing, it runs pretty decent, I ran until 320x448 20 steps in less than 40 seconds, after that resolution it crashed(probably not enough ram)

@GameOverFlowChart
Copy link

GameOverFlowChart commented Dec 31, 2023

There's an app for android already https://github.com/ShiftHackZ/Stable-Diffusion-Android
It doesn't use sd-turbo afaik, SD1.5 ? Pretty slow, like 2min per image on SD865 12GB (+4GB) at 512x and something like 30 steps I don't really remember
You can't even choose another checkpoint, and it lacks a lot of settings

thanks for sharing, it runs pretty decent, I ran until 320x448 20 steps in less than 40 seconds, after that resolution it crashed(probably not enough ram)

It doesn't show the option for steps to me but it shows 1/8? How do you know that it's 20?

Also yeah thanks for sharing I didn't know that the app can generate locally.

Edit: nvm it shows in the details of the finished image that it's 20 steps

@danemadsen danemadsen closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
@danemadsen danemadsen reopened this Jul 7, 2024
@danemadsen danemadsen added this to the 1.3.0 milestone Jul 7, 2024
@danemadsen danemadsen modified the milestones: 1.3.0, 1.3.1, 1.3.2 Jul 30, 2024
@dsx1986
Copy link

dsx1986 commented Oct 18, 2024

I am using this for stable diffusion on ios/macos and it is working fine. https://pub.dev/packages/flutter_stable_diffusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants