@@ -334,7 +334,7 @@ class StableDiffusionGGML {
334
334
diffusion_model = std::make_shared<FluxModel>(backend, model_loader.tensor_storages_types , version, diffusion_flash_attn);
335
335
} else {
336
336
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);
338
338
} else {
339
339
cond_stage_model = std::make_shared<FrozenCLIPEmbedderWithCustomWords>(clip_backend, model_loader.tensor_storages_types , embeddings_path, version);
340
340
}
@@ -374,10 +374,10 @@ class StableDiffusionGGML {
374
374
}
375
375
376
376
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);
378
378
LOG_INFO (" using PhotoMaker Version 2" );
379
379
} 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);
381
381
}
382
382
if (id_embeddings_path.size () > 0 ) {
383
383
pmid_lora = std::make_shared<LoraModel>(backend, id_embeddings_path, " " );
0 commit comments