diff --git a/src/conditioner.hpp b/src/conditioner.hpp index 05167cf..5564373 100644 --- a/src/conditioner.hpp +++ b/src/conditioner.hpp @@ -1313,14 +1313,14 @@ struct T5CLIPEmbedder : public Conditioner { std::shared_ptr t5; size_t chunk_len = 512; bool use_mask = false; - int mask_pad = 1; + int mask_pad = 0; bool is_umt5 = false; T5CLIPEmbedder(ggml_backend_t backend, bool offload_params_to_cpu, const String2TensorStorage& tensor_storage_map = {}, bool use_mask = false, - int mask_pad = 1, + int mask_pad = 0, bool is_umt5 = false) : use_mask(use_mask), mask_pad(mask_pad), t5_tokenizer(is_umt5) { bool use_t5 = false; diff --git a/src/stable-diffusion.cpp b/src/stable-diffusion.cpp index a59ff23..093bed2 100644 --- a/src/stable-diffusion.cpp +++ b/src/stable-diffusion.cpp @@ -493,7 +493,7 @@ public: offload_params_to_cpu, tensor_storage_map, true, - 1, + 0, true); diffusion_model = std::make_shared(backend, offload_params_to_cpu,