FanglinBao / HADAR

This is an LWIR stereo-hyperspectral database to develop HADAR algorithms for thermal navigation. Based on this database, one can develop algorithms for TeX decomposition to generate TeX vision. One can also develop algorithms about object detection, semantic or scene segmentation, optical or scene flow, stereo depth etc. based on TeX vision instead of traditional RGB or thermal vision.
MIT License
164 stars 26 forks source link

Missing .npy files #18

Closed SrahSrah closed 8 months ago

SrahSrah commented 8 months ago

I'm trying to run main.py, but it's asking for '/Scene1/HeatCubes/S_EnvObj_L_0002.npy', the closest thing to this in the database provided is '/Scene1_Street/HeatCubes/L_0002_heatcube.mat'.

Is there a separate location I can find the .npy files? Or a function you used to convert between .mat and .npy?

Thanks!

FanglinBao commented 8 months ago

Hello Srah, Please check this answer: image

SrahSrah commented 8 months ago

Thank you.

I was able to run preprocess_data.py after doing the following:

  1. Downloading HADAR database
  2. Renaming Folders from Scene1_Road to Scene1
  3. Changing lines 58 and 59 in preprocess_data.py from
    
    ids = [f"L_{i:04d}" for i in range(1, 5)]
    ids += [f"R_{i:04d}" for i in range(1, 5)]

to: ids = [f"{i:04d}" for i in range(1, 5)] ids += [f"{i:04d}" for i in range(1, 5)]