GithubHelp home page GithubHelp logo

hsic-fm's Introduction

Overcoming the Barrier of Incompleteness: A Hyperspectral Image Classification Full Model

PyTorch implementation of HSIC-FM for hyperspectral image classification.

Installation

Install Pytorch 1.9.0 with Python 3.8.

Usage

Please first change the path in the code, and then run:
python ./main.py --lstm

Paper

Overcoming the Barrier of Incompleteness: A Hyperspectral Image Classification Full Model
Please kindly cite our paper if you find it's helpful in your work. Thank you!

hsic-fm's People

Contributors

jqyang22 avatar

Stargazers

 avatar CaptainZhu avatar  avatar  avatar  avatar Tongfei avatar Humeiqi胡美琪-武汉大学 avatar whper07 avatar  avatar Yi Xiao(肖屹) avatar Sapere Aude avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

hsic-fm's Issues

CUDA_LAUNCH_BLOCKING=1

Hello,my device is also a 3090, but I made a change in the code here (GPU_ID = '0'), I encountered the following error while trying to reproduce your code,:
File "./HSIC-FM-main-2023-weishixian-envs\main.py", line 217, in
loss_trn, acc_trn, tsne_trn, tsne_trn_y = b.train(i, loss_trn, acc_trn, tsne_trn, tsne_trn_y, net, optimizer, scheduler, trn_loader, criterion)
File "e:\hjj\HSIC-FM-main-2023-weishixian-envs\network.py", line 37, in train
epochavg_loss += loss.item()
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1

I have made many attempts but have been unable to solve this problem. Do you know how to resolve it?

local variable 'net' referenced before assignment

File "/content/gdrive/MyDrive/research/main.py", line 186, in
net = FullModel(
File "/content/gdrive/MyDrive/research/HSIC_FM.py", line 180, in init
self.recurrent = net(input_size, args.d, args.depth)
UnboundLocalError: local variable 'net' referenced before assignment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.