Stable-Diffusion-NCNN icon indicating copy to clipboard operation
Stable-Diffusion-NCNN copied to clipboard

Stable Diffusion inference in pure C++

Results 10 Stable-Diffusion-NCNN issues
Sort by recently updated
recently updated
newest added

int* token_ptr = token_mat; float* multiplier_ptr = multiplier_mat;

[( *u_ptr ) = ( *u_ptr ) + 7 * ( ( *c_ptr ) - ( *u_ptr ) );] https://github.com/fengwang/Stable-Diffusion-NCNN/blob/e3ba9d807c0c40197c8b13be2d94c690b52f7045/stable_diffusion.hpp#L385 why?

How could an initial latency space be generated to make img2img?

``` g++ -o test test.cpp -funsafe-math-optimizations -Ofast -flto=auto -funroll-all-loops -pipe -march=native -std=c++20 -Wall -Wextra `pkg-config --cflags --libs ncnn` -lstdc++ -pthread -Wl,--gc-sections -flto -fopt-info-vec-optimized ParserError: Line | 1 | … tra...

大佬你好,在win平台怎么用gpu加速呀?

发现一个针对SD的[onnx的int8量化脚本](https://github.com/LowinLi/stable-diffusion-streamlit/blob/main/src/stable-diffusion-streamlit/pages/model/quantization.py)和[量化好的库](https://drive.filen.io/f/2d917512-0566-4903-ab55-e3f3415ed18f#MqhCRo5kCbOcaloWuYKlaLTUaDRhUwMd),这个能转出ncnn的int8模型不?