YonghengSun1997 / MSCA-Net

code for our MSCA-Net
15 stars 4 forks source link

the input document loss of show_fused_heatmap.py #5

Open ZMTangYan opened 1 year ago

ZMTangYan commented 1 year ago

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.

YonghengSun1997 commented 1 year ago

This is the visual results file of the features, which is not necessary for the reproduce.

ZMTangYan commented 1 year ago

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?

YonghengSun1997 commented 1 year ago

I updated main_train.py and msca_net.py, adding the visual code.

KarmaQI commented 7 months ago

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?

YonghengSun1997 commented 7 months ago

try 'output = model ( image )'

2561995604 commented 7 months ago

如果使用了output = model (image),也会报错cacs_map不存在,这样改应该怎么办

2561995604 commented 7 months ago

您的代码中是要同时从model获得output与cacs_map,但是这样在您的代码中无法做到

YonghengSun1997 commented 7 months ago

同时从model获得output与cacs_map,在msca_net.py中的msca_net_with_heatmap_output实现,模型一样,多了可视化的输出。

2561995604 commented 7 months ago

from Models.networks.msca_net import msca_net那我只需要把这个改成from Models.networks.msca_net import msca_net_with_heatmap_output这样就行了吗

2561995604 commented 7 months ago

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, } 就可以实现可视化了吧

YonghengSun1997 commented 7 months ago

我在main_train.py改成了输出可视化的版本,你试试报错吗

YonghengSun1997 commented 7 months ago

我刚刚调试修改了一遍,应该没问题了

2561995604 commented 7 months ago

没有问题了,感谢您的付出