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

NoduleNotFoundError: No module named 'global_var' #5

Closed ljqljq111 closed 6 months ago

ljqljq111 commented 8 months ago

Hi, I meet a problem when I run this project python3 test.py the error info is :NoduleNotFoundError: No module named 'global_var', in File "/root/workspace/S2ADet/utils/datasets.py", line 28, in import global_var where the global_var has been defined

hexiao0275 commented 8 months ago

Are you running it on windows? The problem should be due to the lack of linux kernel, I run it on linux (ubuntu).

ljqljq111 commented 8 months ago

NO,I run it on linux(ubuntu 20.04). I didn't find where the global_var defined, could you please tell me?Or maybe it come from the package which I didn't download

LegionHXF commented 7 months ago

When I run it on Windows, it also prompts ModuleNotFoundError: No module named 'global_var'. What's the reason? Do all of your successes run on Liunx?

hexiao0275 commented 7 months ago

I added the global_var.py file a few days ago, please add this file to the code. My friend had a lot of problems running it with windows, so it's best to use linux.