TypeError: __init__() got an unexpected keyword argument 'model256_path'
Hello, thank you for your contributions in this field!
I encountered the following error while running the code:
TypeError: __init__() got an unexpected keyword argument 'model256_path'
According to your config, my model is as follows:
model:
backbone: default
pretrained_encoder: E:\Code\LKCell-main\PTH\unireplknet_s_in1k_224_acc83.91.pth
shared_skip_connections: true
It seems that the issue arises here:
model = model_class(
model256_path=pretrained_encoder,##############
num_nuclei_classes=self.run_conf["data"]["num_nuclei_classes"],
num_tissue_classes=self.run_conf["data"]["num_tissue_classes"],
drop_rate=self.run_conf["training"].get("drop_rate", 0),
attn_drop_rate=self.run_conf["training"].get("attn_drop_rate", 0),
drop_path_rate=self.run_conf["training"].get("drop_path_rate", 0),
regression_loss=regression_loss,
)
model.load_pretrained_encoder(model.model256_path)
I would like to know how to resolve this issue. Thank you very much!
0 条评论