Open ZMTangYan opened 1 year ago
This is the visual results file of the features, which is not necessary for the reproduce.
Thank you very much for your reply! But the code seems to lack the output of visual results, could the author provide the relevant code?
I updated main_train.py and msca_net.py, adding the visual code.
Hello author, I run the main train.py file will report error ' File ' D : \ Python coding \ coding \ MSCA-Net-main \ main train.py ', line 199, in test isic output, cacs _ map = model ( image ) ValueError : not enough values to unpack ( expected 2, got 1 ) ', how to solve it?
try 'output = model ( image )'
如果使用了output = model (image),也会报错cacs_map不存在,这样改应该怎么办
您的代码中是要同时从model获得output与cacs_map,但是这样在您的代码中无法做到
同时从model获得output与cacs_map,在msca_net.py中的msca_net_with_heatmap_output实现,模型一样,多了可视化的输出。
from Models.networks.msca_net import msca_net那我只需要把这个改成from Models.networks.msca_net import msca_net_with_heatmap_output这样就行了吗
Test_Model = { "Comp_Atten_Unet": Comprehensive_Atten_Unet, "BCDU_net_D3": BCDU_net_D3, "CPF_Net": CPF_Net, "CE_Net": CE_Net, "msca_net":msca_net, } 然后把这个更改为 Test_Model = { "Comp_Atten_Unet": Comprehensive_Atten_Unet, "BCDU_net_D3": BCDU_net_D3, "CPF_Net": CPF_Net, "CE_Net": CE_Net, "msca_net":msca_net_with_heatmap_output, } 就可以实现可视化了吧
我在main_train.py改成了输出可视化的版本,你试试报错吗
我刚刚调试修改了一遍,应该没问题了
没有问题了,感谢您的付出
Hello author, there is no such file or directory:"./result/atten_map/25_2_8_wgt"and"./result/atten_map/15937_wgt3_fused" in your project file.