Skip to content

Commit ac51cbf

Browse files
committed
format code
1 parent 995e4d0 commit ac51cbf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

stable-diffusion.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class StableDiffusionGGML {
115115
std::shared_ptr<FrozenCLIPVisionEmbedder> clip_vision; // for svd or wan2.1 i2v
116116
std::shared_ptr<DiffusionModel> diffusion_model;
117117
std::shared_ptr<DiffusionModel> high_noise_diffusion_model;
118-
std::shared_ptr<VAE> first_stage_model = nullptr;
119-
std::shared_ptr<TinyAutoEncoder> tae_first_stage = nullptr;
118+
std::shared_ptr<VAE> first_stage_model;
119+
std::shared_ptr<TinyAutoEncoder> tae_first_stage;
120120
std::shared_ptr<ControlNet> control_net;
121121
std::shared_ptr<PhotoMakerIDEncoder> pmid_model;
122122
std::shared_ptr<LoraModel> pmid_lora;
@@ -647,8 +647,8 @@ class StableDiffusionGGML {
647647
version);
648648
if (version == VERSION_SDXS) {
649649
tae_first_stage->alloc_params_buffer();
650-
tae_first_stage->get_param_tensors(tensors,"first_stage_model");
651-
}
650+
tae_first_stage->get_param_tensors(tensors, "first_stage_model");
651+
}
652652
}
653653
if (sd_ctx_params->vae_conv_direct) {
654654
LOG_INFO("Using Conv2d direct in the tae model");
@@ -793,8 +793,8 @@ class StableDiffusionGGML {
793793
if (use_tiny_autoencoder && !tae_first_stage->load_from_file(taesd_path, n_threads)) {
794794
return false;
795795
}
796-
use_tiny_autoencoder = true; // now the processing is identical for VERSION_SDXS
797-
vae_params_mem_size = tae_first_stage->get_params_buffer_size();
796+
use_tiny_autoencoder = true; // now the processing is identical for VERSION_SDXS
797+
vae_params_mem_size = tae_first_stage->get_params_buffer_size();
798798
}
799799
size_t control_net_params_mem_size = 0;
800800
if (control_net) {

tae.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ struct TinyAutoEncoder : public GGMLRunner {
505505
struct ggml_tensor** output,
506506
struct ggml_context* output_ctx = nullptr) = 0;
507507

508-
virtual bool load_from_file(const std::string& file_path, int n_threads) = 0;
508+
virtual bool load_from_file(const std::string& file_path, int n_threads) = 0;
509509
virtual void get_param_tensors(std::map<std::string, struct ggml_tensor*>& tensors, const std::string prefix) = 0;
510510
};
511511

@@ -557,7 +557,7 @@ struct TinyImageAutoEncoder : public TinyAutoEncoder {
557557
}
558558

559559
void get_param_tensors(std::map<std::string, struct ggml_tensor*>& tensors, const std::string prefix) {
560-
taesd.get_param_tensors(tensors,prefix);
560+
taesd.get_param_tensors(tensors, prefix);
561561
}
562562

563563
struct ggml_cgraph* build_graph(struct ggml_tensor* z, bool decode_graph) {
@@ -630,7 +630,7 @@ struct TinyVideoAutoEncoder : public TinyAutoEncoder {
630630
}
631631

632632
void get_param_tensors(std::map<std::string, struct ggml_tensor*>& tensors, const std::string prefix) {
633-
taehv.get_param_tensors(tensors,prefix);
633+
taehv.get_param_tensors(tensors, prefix);
634634
}
635635

636636
struct ggml_cgraph* build_graph(struct ggml_tensor* z, bool decode_graph) {

0 commit comments

Comments
 (0)