add progress callback, supress pretty_progress - #170
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
leejet
commented
Feb 24, 2024
Is there a specific reason to increase the size of many graphs and some reserved buffer sizes by 2 to 4 times? Additionally, |
fszontagh
commented
Feb 24, 2024
There is it: #178 But not just with the controlnet models. These errors is happened with larger file sized lora models too. I went through over my "lora collection", and tested some lora models. I modified these params while larger loras started to working.
Sorry, i don't remember what was the problem there. But the new method is required, because the original ggml_n_dims paramter type was not compatible with the type TensorStorage. If you want, i will try to reproducate the original problem. If i remember correctly, the tensor_storage.n_dims was empty or corrupt. |
fszontagh
commented
Feb 24, 2024
I reproduced the n_dims problem. If i added a lora into the prompt (hair length slider lora) the following assesrtion happened: |
leejet
commented
Feb 25, 2024
I used the latest code from the master branch and did not encounter this issue. Can you try using the latest code from the master branch and see if the problem persists? |
Cyberhan123
commented
Feb 25, 2024
I have a guess about his question. In this file: https://github.com/leejet/stable-diffusion.cpp/blob/4a8190405ac32930678ce030dff6289ed680b6fc/.gitmodules#L3C44-L3C45 |
@leejet And here is again, but with a really full fresh start: In wsl it's working fine with lora too. Tested with a 256,6MB lora :) |
Build with MSVC 2019 in vscode, and started the diffusion, but got: Please see the full command without lora it's fine |
fszontagh
commented
Feb 25, 2024
Same happening here with the auto builded release. |
Another test, with the latest. I remade my changes with lora (n_dims). Then tried to reproducate an image with embedding:
Another shot:
|
leejet
commented
Feb 26, 2024
Currently, support for very large embeddings is not available. I will add it later. |
leejet
commented
Feb 26, 2024
This issue is quite puzzling; I cannot replicate it in my local environment. |
I build on a "virgin" PC (avx512), the same happening. Then i downloaded the prebuild binary to the same PC (avx512), that's working fine. But the downloaded cuda version is failed too on my machine. Maybe the compiler causing this? In the CI that's an enterprise version, but i use community version. |
fszontagh
commented
Feb 27, 2024
@leejet i givin up on this n_dims issue thing. But the 'progress callback' feature is a good feature. Do you accept the pr as-is? |
Cyberhan123
commented
Feb 27, 2024
I feel like your problem seems like you didn't pull the correct git submodel. |
fszontagh
commented
Feb 27, 2024
@Cyberhan123 i tested with a fresh start too |
leejet
commented
Feb 27, 2024
Certainly, I'm willing to merge this PR, or we can merge the progress callback first if you prefer. |
fszontagh
commented
Feb 27, 2024
Okay. I pushed in it with removed ggml_n_dims_t method. After all, the 'progress callback' was the main point of this PR. |
leejet
commented
Mar 2, 2024
Thank you for your contribution. |

No description provided.