zilongzhong / SSRN

This is a tensorflow and keras based implementation of SSRNs in the IEEE T-GRS paper "Spectral-Spatial Residual Network for Hyperspectral Image Classification: A 3-D Deep Learning Framework".
Other
212 stars 74 forks source link

About Utils file #25

Open yzcw123456 opened 4 years ago

yzcw123456 commented 4 years ago

Hello! Thank you for sharing the code! when I execute SSRN_UP.py file and SSRN_IN.py file ,the code from Utils import from Utils import zeroPadding, normalization, doPCA, modelStatsRecord, averageAccuracy, ssrn_SS_UP does not work. and Error message is: " import averageAccuracy ModuleNotFoundError: No module named 'averageAccuracy " . However, the averageAccuracy.py is available in the Utils file, how can i to revised it? Thanks!

Jackgihl commented 2 years ago

Hi i am currently having same issue did you ever figure out a solution?

zilongzhong commented 2 years ago

This problem is caused by the root path not being added to the Python Environment. You can refer to the following solution: https://note.nkmk.me/en/python-os-getcwd-chdir/

Also, all mentioned files can be found here: https://github.com/zilongzhong/SSRN/tree/master/Utils

On Fri, Apr 1, 2022 at 2:55 AM Jackgihl @.***> wrote:

Hi i am currently having same issue did you ever figure out a solution?

— Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/25#issuecomment-1084926980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2DHTQRLPPU6QRGC2NU2HLVCXRJ3ANCNFSM4RRKNKGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>