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

ICVL_DATA #1

Open
XiaoZhang-NN opened this issue Jul 26, 2022 · 0 comments
Open

ICVL_DATA #1

XiaoZhang-NN opened this issue Jul 26, 2022 · 0 comments

Comments

@XiaoZhang-NN
Copy link

您好,请问一下在,这里的2187和558和576以及4095是指什么呢?
高光谱图片切块训练,按照14414431.这个高光谱图片512*512应该只能有25块附近吧?self.HR = torch.zeros([num, channels, fis, fis])怎么batchsize会是2187 或者558?
def init(self,path,label,s=4,channels=31,fis=144):
# num 31 512 512
if label == 'train':
num = 2187
elif label == 'val':
num = 558
else:
num = 576
self.HR = torch.zeros([num, channels, fis, fis])

    count = 0
    for i in range(len(path)):

        img = h5py.File(path[i], 'r')['rad']
        img = np.array(img)
        img /= 4095.0
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