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

Remove specific labels from the ground truth #27

Open aldiak opened 2 years ago

aldiak commented 2 years ago

Hi, does anyone has a written code on how to remove certain labels from gt file? I have seen this: set_zeros(gt_IN, [1,4,7,9,13,15,16]) in SSRN but the function is not defined. Thanks

zilongzhong commented 2 years ago

There are many ways to implement it, my suggestion is using a projection table. The pseudo-code should be like this: gt_new_matrix[gt_old_matrix==certain_old_class] == certain_new_class. After constructing such a projection for one class, you can then traverse all classes.

On Thu, 7 Oct 2021 at 02:55, aldiak @.***> wrote:

Hi, does anyone has a written code on how to remove certain labels from gt file? I have seen this: set_zeros(gt_IN, [1,4,7,9,13,15,16]) in SSRN but the function is not defined. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2DHTRGJV3K4SI6QT2QEL3UFSERTANCNFSM5FPI4LNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aldiak commented 2 years ago

Alright, thanks.

On Thu, Oct 7, 2021 at 7:02 AM Zilong Zhong @.***> wrote:

There are many ways to implement it, my suggestion is using a projection table. The pseudo-code should be like this: gt_new_matrix[gt_old_matrix==certain_old_class] == certain_new_class. After constructing such a projection for one class, you can then traverse all classes.

On Thu, 7 Oct 2021 at 02:55, aldiak @.***> wrote:

Hi, does anyone has a written code on how to remove certain labels from gt file? I have seen this: set_zeros(gt_IN, [1,4,7,9,13,15,16]) in SSRN but the function is not defined. Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/27, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AD2DHTRGJV3K4SI6QT2QEL3UFSERTANCNFSM5FPI4LNA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zilongzhong/SSRN/issues/27#issuecomment-937306708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOVODXXYQ2WFUTUVMJ27I3UFTIRBANCNFSM5FPI4LNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.