Coder Social home page Coder Social logo

xiangyongcao / cnn_hsic_mrf Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 25.0 7.98 MB

This is a TensorFlow implementation of Convolutional Neural Network for Hyperspectral Image Classification

License: MIT License

MATLAB 15.10% Python 10.87% C++ 74.04%

cnn_hsic_mrf's People

Contributors

xiangyongcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cnn_hsic_mrf's Issues

matlab Crash Exit while running code

matlab Crash Exit while running this segment of code in file " Demo_Post_MRF.m "


% Expantion Algorithm
gch = GraphCut('open', -Dc, beta*Sc);
[gch seg] = GraphCut('expand',gch);
gch = GraphCut('close', gch);

seg_label = seg(TestIndex) + 1;
seg_label = bestMap(TestLabels,seg_label);
Seg_label = Label;
Seg_label(TestIndex) = seg_label;

[OA_seg,kappa_seg,AA_seg,CA_seg] = calcError( TestLabels-1, seg_label-1, 1: nclasses);
CA_seg
[OA_seg,AA_seg,kappa_seg]


for pavia data set memory error

rnd@rnd-HP-ProDesk-600-G3-SFF:~/CNN_HSIC_MRF-master$ python cnn_train.py
/home/rnd/.local/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "cnn_train.py", line 10, in
import HSI_Data_Preparation
File "/home/rnd/CNN_HSIC_MRF-master/HSI_Data_Preparation.py", line 254, in
Training_data, Test_data = Prepare_data()
File "/home/rnd/CNN_HSIC_MRF-master/HSI_Data_Preparation.py", line 251, in Prepare_data
Test_data = add_DataSet(Test_data,data_sets,'test')
File "/home/rnd/CNN_HSIC_MRF-master/HSI_Data_Preparation.py", line 226, in add_DataSet
temp_image = np.concatenate((first['test_patch'],second['test_patch']),axis=0)

MemoryError

Memory Error

In executing cnn_train.py
Memory Error
if i am applying for Pavia dataset
but it is working for Indianpines on CPU
Please replay

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.