leejet / stable-diffusion.cpp

Stable Diffusion in pure C/C++
MIT License
2.91k stars 233 forks source link

CPU only? #196

Open cbresciano opened 3 months ago

cbresciano commented 3 months ago

Does this version support CPU only? I execute it and closes immediately.

lustfeind commented 3 months ago

No, cuda and metal works great. Check your prompt lenght (max. 75 tokens)

leejet commented 3 months ago

Check your prompt lenght (max. 75 tokens)

Prompt longer than 75 tokens are already supported.

leejet commented 3 months ago

Does this version support CPU only? I execute it and closes immediately.

@cbresciano Can you provide more details? Including what operating system to run on, detailed output of sd executable programs, etc.

cbresciano commented 3 months ago

I use Windows 11. I don´t get any output because the windows close. I tried to use it with Auto1111 but I don´t know how to configure the interfase settings for running it. All the Auto1111 sources lack of this information

Green-Sky commented 3 months ago

@cbresciano are you aware that sd.cpp is a library and command line tool? There are gui options like https://github.com/Cyberhan123/stable-diffusion-desktop and https://github.com/fszontagh/sd.cpp.gui.wx

ziloka commented 3 months ago

I use Windows 11. I don´t get any output because the windows close. I tried to use it with Auto1111 but I don´t know how to configure the interfase settings for running it. All the Auto1111 sources lack of this information

I had this issue.

For me I checked what instruction sets extensions my cpu supported https://www.intel.com/content/www/us/en/products/sku/52213/intel-core-i72600-processor-8m-cache-up-to-3-80-ghz/specifications.html

and so i found out that my cpu only supports avx. so i downloaded the filename with avx support.

If I downloaded avx512, or the avx2 files the program would just close immediately.