ESAM icon indicating copy to clipboard operation
ESAM copied to clipboard

libpng error during ScanNet-mv dataset preparation"

Open HYFego opened this issue 8 months ago • 5 comments

Dear authors, When i prepare the ScanNet-MV dataset,i always meet that quesions,here are the error report (ESAM) yx@dell-PowerEdge-T640:~/EmbodiedSAM/ESAM-main/data/scannet-mv$ python load_scannet_mv_data.py 0%| | 0/1201 [00:00<?, ?it/s]scene0000_00

0%| | 1/1201 [07:17<145:49:08, 437.46s/it]scene0000_01

libpng error: bad adaptive filter value 0%| | 1/1201 [14:25<288:21:08, 865.06s/it] Traceback (most recent call last): File "load_scannet_mv_data.py", line 308, in main() File "load_scannet_mv_data.py", line 304, in main make_split(mask_generator, path_dict, cur_split) File "load_scannet_mv_data.py", line 284, in make_split process_cur_scan(cur_parameter, mask_generator) File "load_scannet_mv_data.py", line 193, in process_cur_scan height, width = depth_map.shape AttributeError: 'NoneType' object has no attribute 'shape' I want to know the reason of the error, thank you very much .

HYFego avatar Apr 16 '25 12:04 HYFego

Hi, It seems your depth_map value is None. You can check how you load the depth_map and find out why it fails to load a file.

xuxw98 avatar Apr 16 '25 12:04 xuxw98

Hi, It seems your depth_map value is None. You can check how you load the depth_map and find out why it fails to load a file.

I'm so sorry,Could you please let me know at which stage the depth_map is typically obtained? I'm not quite sure how to acquire it. Thank you very much!

HYFego avatar Apr 16 '25 12:04 HYFego

Image

You can set a breakpoint here to check whether this path is valid.

xuxw98 avatar Apr 17 '25 10:04 xuxw98

I met the same issue, do you solve it?

Airpiggy avatar Jul 17 '25 14:07 Airpiggy

通过在 load_scannet_mv_data.py 中添加 print,我发现我的问题出现在 2D/scene_0000_01/depth/5120.png 这个文件损坏了。你可以通过在代码中添加调试语句,来查看自己出问题的图像位置。

By adding print in load_scannet_mv_data.py, I found that my issue was caused by a corrupted file: 2D/scene_0000_01/depth/5120.png. You can add debugging statements in the code to locate the problematic image in your case.

Airpiggy avatar Jul 17 '25 16:07 Airpiggy