mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 11:26:34 +00:00
feat: ggml-alloc integration and gpu acceleration (#75)
* set ggml url to FSSRepo/ggml * ggml-alloc integration * offload all functions to gpu * gguf format + native converter * merge custom vae to a model * full offload to gpu * improve pretty progress --------- Co-authored-by: leejet <leejet714@gmail.com>
This commit is contained in:
1 parent
c874063408
commit
8124588cf1
29 files changed
+120774
-2754
No files matched your search
+6
-4
@@ -48,7 +48,7 @@ public:
|
||||
std::string lora_model_dir = "",
|
||||
RNGType rng_type = STD_DEFAULT_RNG);
|
||||
bool load_from_file(const std::string& file_path, Schedule d = DEFAULT);
|
||||
std::vector<uint8_t> txt2img(
|
||||
std::vector<uint8_t*> txt2img(
|
||||
std::string prompt,
|
||||
std::string negative_prompt,
|
||||
float cfg_scale,
|
||||
@@ -56,9 +56,11 @@ public:
|
||||
int height,
|
||||
SampleMethod sample_method,
|
||||
int sample_steps,
|
||||
int64_t seed);
|
||||
std::vector<uint8_t> img2img(
|
||||
const std::vector<uint8_t>& init_img,
|
||||
int64_t seed,
|
||||
int batch_count);
|
||||
|
||||
std::vector<uint8_t*> img2img(
|
||||
const uint8_t* init_img_data,
|
||||
std::string prompt,
|
||||
std::string negative_prompt,
|
||||
float cfg_scale,
|
||||
|
||||
Reference in new issue
Block a user