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

MSRS怎么转回RGB,已执行完test_swinfusion.py #32

Open
joyyy111 opened this issue Jul 17, 2024 · 3 comments
Open

MSRS怎么转回RGB,已执行完test_swinfusion.py #32

joyyy111 opened this issue Jul 17, 2024 · 3 comments

Comments

@joyyy111
Copy link

作者你好,我现在用到的数据集是MSRS,我先把VI可见光的RGB图像通过blog提取出了Y通道,并把图片放入到了项目的VI_Y中,之后执行test_swinfusion.py,得到的是灰色单通道图像,至于如何转回RGB我不是很清楚?
是拿红外IR与test_swinfusion的结果转回RGB吗?用的是您提到的博客的 “ 只有一幅源图像为彩色图像” 这个方法吗?我试验了这个方法,结果返回报错的是:ValueError: the input array must have size 3 along channel_axis, got (480, 640),我已将test_swinfusion跑通,但最后的灰色图像明显不是想要的结果,到底最后怎么转会RGB十分想请教一下

@Linfeng-Tang
Copy link
Owner

Linfeng-Tang commented Jul 17, 2024 via email

@joyyy111
Copy link
Author

joyyy111 commented Jul 17, 2024

作者你好,我根据您提供的代码进行了测试,我在fusion_folder中放入的是跑通test_swinfusion.py的图片,vi_folder中放入的是源可见光vi图片,之后执行,没报错,但得到的是亮一点的灰色图像,这是什么问题呢?
1721202989547
1721203009998

@Linfeng-Tang
Copy link
Owner

你加我QQ 我远程看看吧 2458707789

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

2 participants