@@ -334,7 +334,7 @@ class StableDiffusionGGML {
334334 diffusion_model = std::make_shared<FluxModel>(backend, model_loader.tensor_storages_types , version, diffusion_flash_attn);
335335 } else {
336336 if (id_embeddings_path.find (" v2" ) != std::string::npos) {
337- cond_stage_model = std::make_shared<FrozenCLIPEmbedderWithCustomWords>(clip_backend, conditioner_wtype , embeddings_path, version, PM_VERSION_2);
337+ cond_stage_model = std::make_shared<FrozenCLIPEmbedderWithCustomWords>(clip_backend, model_loader. tensor_storages_types , embeddings_path, version, PM_VERSION_2);
338338 } else {
339339 cond_stage_model = std::make_shared<FrozenCLIPEmbedderWithCustomWords>(clip_backend, model_loader.tensor_storages_types , embeddings_path, version);
340340 }
@@ -374,10 +374,10 @@ class StableDiffusionGGML {
374374 }
375375
376376 if (id_embeddings_path.find (" v2" ) != std::string::npos) {
377- pmid_model = std::make_shared<PhotoMakerIDEncoder>(backend, model_wtype , version, PM_VERSION_2);
377+ pmid_model = std::make_shared<PhotoMakerIDEncoder>(backend, model_loader. tensor_storages_types , " pmid " , version, PM_VERSION_2);
378378 LOG_INFO (" using PhotoMaker Version 2" );
379379 } else {
380- pmid_model = std::make_shared<PhotoMakerIDEncoder>(backend,model_loader.tensor_storages_types , " pmid" , version);
380+ pmid_model = std::make_shared<PhotoMakerIDEncoder>(backend, model_loader.tensor_storages_types , " pmid" , version);
381381 }
382382 if (id_embeddings_path.size () > 0 ) {
383383 pmid_lora = std::make_shared<LoraModel>(backend, id_embeddings_path, " " );
0 commit comments