xiangyongcao / cnn_hsic_mrf Goto Github PK
View Code? Open in Web Editor NEWThis is a TensorFlow implementation of Convolutional Neural Network for Hyperspectral Image Classification
License: MIT License
This is a TensorFlow implementation of Convolutional Neural Network for Hyperspectral Image Classification
License: MIT License
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]
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)
In executing cnn_train.py
Memory Error
if i am applying for Pavia dataset
but it is working for Indianpines on CPU
Please replay
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.