Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the input document loss of show_fused_heatmap.py #5

Open
ZMTangYan opened this issue Oct 21, 2023 · 13 comments
Open

the input document loss of show_fused_heatmap.py #5

ZMTangYan opened this issue Oct 21, 2023 · 13 comments

Comments

@ZMTangYan
Copy link

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
Copy link
Owner

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

@ZMTangYan
Copy link
Author

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
Copy link
Owner

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

@KarmaQI
Copy link

KarmaQI commented Mar 25, 2024

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
Copy link
Owner

try 'output = model ( image )'

@2561995604
Copy link

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

@2561995604
Copy link

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

@YonghengSun1997
Copy link
Owner

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

@2561995604
Copy link

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

@2561995604
Copy link

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
Copy link
Owner

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

@YonghengSun1997
Copy link
Owner

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

@2561995604
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants