@@ -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) {
0 commit comments