hexiao0275 / S2ADet

[TGRS 2023] The official repo for the paper "Object Detection in Hyperspectral Image via Unified Spectral-Spatial Feature Aggregation".
GNU Affero General Public License v3.0
25 stars 6 forks source link

Data Loading Error During Training #12

Open huxiaopang666 opened 3 months ago

huxiaopang666 commented 3 months ago

When training with the default hsi_twostream.yaml file in train.py, I encountered the error shown in the following image. image

However, I have already modified the file paths in twostream.yaml to my own file paths as shown in the image below. image ![Uploading image.png…]() The error message indicates that content in hsidetection/ir/ is missing, but I have set the directories for sa and se in hsi_twostream.yaml. Could you please advise on how to resolve this issue? Are there any other files that need to be modified? Thank you for your assistance!

huxiaopang666 commented 3 months ago

image After transferring to Ubuntu, I still encounter this error. Although I have already modified the hsi_twostream.yaml file to specify my own file storage path, the original author's path is still displayed as shown in the image. What else should I modify to make my train.py run successfully?

hexiao0275 commented 3 months ago

This is a path problem, you have the path in the wrong format or a permission problem that prevents you from reading the image.

hexiao0275 commented 3 months ago

Just refer to the source file to change the path and try more.

huxmin commented 3 months ago

删除数据集中自带的cache即可。