Cyberhan123 / stable-diffusion-desktop

Minimalist stable-diffusion desktop application with only one executable file writen with golang ( No python ).
GNU General Public License v3.0
17 stars 1 forks source link

The app doesn't use all threads of CPU. #8

Closed JohnClaw closed 8 months ago

JohnClaw commented 8 months ago

And that makes it work much slower than cli sd.cpp.exe. You should probably add an option that will make possible to manually select amount of cpu threads used by your app.

Cyberhan123 commented 8 months ago

Ok, This is easy to solve. I will add logic and try to use golang to get the number of cores. Then I will add this logic in the settings.

Cyberhan123 commented 8 months ago

@JohnClaw This is a work in progress, I think everything will be there, it just takes some time

截屏2024-01-09 00 00 30
Amin456789 commented 8 months ago

beautiful! thanks for ur hard work

Cyberhan123 commented 8 months ago

@JohnClaw @Amin456789 try latest version

Amin456789 commented 8 months ago

just tested it, it works pretty gooooood! thank u so muuch! im free from cmd and stuff now :D can't wait for img2img too!

Amin456789 commented 8 months ago

also could u please add a preset save i mean the setting we can save so we don't need to always setting changes we made, we can load it from there

JohnClaw commented 8 months ago

try latest version

Thanks. Now it works as fast as my own SD.cpp GUI)) image

However my GUI have some advantages: 1. It can process many images. Your GUI can process only one image. If i press Generate button second time, your GUI closes. 2. My GUI has progress bar. 3. My GUI is smaller: 2,76 Mb Your GUI: 19 Mb 4. My GUI is written in twinBasic, it's a simple language. Every one will be able to edit it and add new features, when i share the code. 5. My GUI doesn't show CMD window on start. Your does, here's the prove: image

But i'm not a coder (and you possibly are), so your App will be much better than mine when you finish it. Good luck.

Cyberhan123 commented 8 months ago

You mean the program will crash? I haven't tested it on windows yet