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

数据集问题 #14

Open
sxdeivm opened this issue Jan 11, 2023 · 14 comments
Open

数据集问题 #14

sxdeivm opened this issue Jan 11, 2023 · 14 comments

Comments

@sxdeivm
Copy link

sxdeivm commented Jan 11, 2023

您好,请问Raw文件夹应该怎么制作,下载的数据集中没有Raw文件夹。具体报错如下:
ERROR 4: `/data/zh/PSData/Raw/WV-2/1-MUL.TIF' does not exist in the file system, and is not recognized as a supported dataset name.
Traceback (most recent call last):
File "F:\PSGan-Family-master\data\handle_raw.py", line 42, in
rawMul = gdal.Open( '%s/Raw/%s/%d-MUL.TIF' % (dataDir, satellite, i) ).ReadAsArray()
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'
非常感谢您的回答。

@zhysora
Copy link
Owner

zhysora commented Jan 25, 2023

README中有原始图像的下载链接,下载后解压放到相应文件夹下即可

@zhysora zhysora closed this as completed Mar 7, 2023
@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023

那个文件夹下也没有raw啊

@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023 via email

@zhysora
Copy link
Owner

zhysora commented Apr 4, 2023

修改对应的handle_raw.py的路径代码即可

@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023 via email

@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023 via email

@zhysora zhysora reopened this Apr 4, 2023
@zhysora
Copy link
Owner

zhysora commented Apr 4, 2023

可以参照README中“Train and Test the Models”章节进行模型的训练与测试。
融合结果的输入就是多光谱图像和对应的全色图像,输出是融合后的高分辨率多光谱图像。

@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023 via email

@zhysora
Copy link
Owner

zhysora commented Apr 4, 2023

就是与数据集对应的若干张.tif图像

@sxdeivm
Copy link
Author

sxdeivm commented Apr 4, 2023 via email

@sxdeivm
Copy link
Author

sxdeivm commented Apr 5, 2023 via email

@Jamesdebaba
Copy link

请问您调通了吗,我数据集构建好了,但是运行run.py没有结果,并且log文件显示系统找不到指定路径

@bingkun99
Copy link

请问您调通了吗,我数据集构建好了,但是运行run.py没有结果,并且log文件显示系统找不到指定路径

您好,我最近也在看PSgan的代码,作者给出的原始数据,制作数据集的话,是直接按照代码进行切割,还是需要经过滤波矫正之类的操作在进行切割,然后to_patch。希望您能给我解答一下。刚开始学习这方面知识,如有冒犯请见谅!

@bingkun99
Copy link

您好,请问Raw文件夹应该怎么制作,下载的数据集中没有Raw文件夹。具体报错如下: ERROR 4: `/data/zh/PSData/Raw/WV-2/1-MUL.TIF' does not exist in the file system, and is not recognized as a supported dataset name. Traceback (most recent call last): File "F:\PSGan-Family-master\data\handle_raw.py", line 42, in rawMul = gdal.Open( '%s/Raw/%s/%d-MUL.TIF' % (dataDir, satellite, i) ).ReadAsArray() AttributeError: 'NoneType' object has no attribute 'ReadAsArray' 非常感谢您的回答。

您好,我最近也在看PSgan的代码,作者给出的原始数据,制作数据集的话,是直接按照代码进行切割,还是需要经过滤波矫正之类的操作在进行切割,然后to_patch。希望您能给我解答一下。刚开始学习这方面知识,如有冒犯请见谅!

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