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

问题 #16

Open
MaoFuyou opened this issue Oct 12, 2024 · 2 comments
Open

问题 #16

MaoFuyou opened this issue Oct 12, 2024 · 2 comments

Comments

@MaoFuyou
Copy link

您好,想问一下读取nii数据和.mat数据 在结果上有什么影响么? mat 能转换为.nii么

@MaoFuyou
Copy link
Author

发生异常: IndexError
index 1 is out of bounds for dimension 2 with size 1
File "/root/autodl-fs/PET-Reconstruction/model/sr3_modules/diffusion.py", line 280, in p_losses
x_extra = x_in['HR'][:, np.newaxis, k, :, :]
File "/root/autodl-fs/PET-Reconstruction/model/sr3_modules/diffusion.py", line 293, in forward
return self.p_losses(x,ax_feature, fr_feature, *args, **kwargs)
File "/root/autodl-fs/PET-Reconstruction/model/model.py", line 178, in optimize_parameters
l_pix = self.netG(self.data,ax_feature, fr_feature)
File "/root/autodl-fs/PET-Reconstruction/train.py", line 90, in
diffusion.optimize_parameters()
IndexError: index 1 is out of bounds for dimension 2 with size 1

想问一下这是咋回事?

@MaoFuyou
Copy link
Author

还有一个问题就是 您提供的dataset 怎么处理呢?应该使用您提供的哪个代码进行预处理。mat文件是可以转换成对应的nii格式的把?

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

1 participant