Skip to content

Commit

Permalink
fixed a small bug for Matlab calling undefined OCTAVE_VERSION for con…
Browse files Browse the repository at this point in the history
…v nets
  • Loading branch information
OliverObst committed Jan 11, 2014
1 parent 828d709 commit 7c23709
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CNN/cnnsetup.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function net = cnnsetup(net, x, y)
assert(~isOctave() || compare_versions(OCTAVE_VERSION, '3.8.0', '>='), ['Octave 3.8.0 or greater is required for CNNs as there is a bug in convolution in previous versions. See http://savannah.gnu.org/bugs/?39314. Your version is ' OCTAVE_VERSION]);
assert(~isOctave() || compare_versions(OCTAVE_VERSION, '3.8.0', '>='), ['Octave 3.8.0 or greater is required for CNNs as there is a bug in convolution in previous versions. See http://savannah.gnu.org/bugs/?39314. Your version is ' myOctaveVersion]);
inputmaps = 1;
mapsize = size(squeeze(x(:, :, 1)));

Expand Down
7 changes: 7 additions & 0 deletions util/myOctaveVersion.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
% return OCTAVE_VERSION or 'undefined' as a string
function result = myOctaveVersion()
if isOctave()
result = OCTAVE_VERSION;
else
result = 'undefined';
end

6 comments on commit 7c23709

@najczuk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mk273 just comment this line, that worked for me.

@sarahomayony70
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi,i have problem in test_example_CNN . i run it but it just plots blank page,what is the problem?

@Badarmaqsood4417
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi
please guide me what are the next steps should follow

I want to run these examples
Deep Belief Network

Stacked Auto-Encoders

Convolutional Neural Nets
what tool i use?
where to free download?
what steps are involve to run these deep learning algo

@liduanxian
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am learning about deep learing to classify the pedstrains and vehicle

@Sharon-coder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry,i have a problems:“Unable to read file 'mnist_uint8'.No such files or directories exist.”
Why is this a problem?

@SE-Nickjackson
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

Please sign in to comment.