Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to non-existent field 'gpus'. #17

Closed
mjohn123 opened this issue Feb 25, 2016 · 8 comments
Closed

Reference to non-existent field 'gpus'. #17

mjohn123 opened this issue Feb 25, 2016 · 8 comments

Comments

@mjohn123
Copy link

I was successfully build matconvnet with GPU. Then I tried to run fcnTrain.m and got error as

Reference to non-existent field 'gpus'.

Error in fcnTrain (line 95)
bopts.useGpu = numel(opts.train.gpus) > 0 ;

If I comment the line bopts.useGpu = numel(opts.train.gpus) > 0 ;, I got a new error as

Error using  ' 
Transpose on ND array is not defined. Use PERMUTE instead.

Error in vl_argparse (line 76)
    values = horzcat(values, struct2cell(args{ai})') ;

Error in cnn_train_dag (line 32)
opts = vl_argparse(opts, varargin) ;

Error in fcnTrain (line 98)
info = cnn_train_dag(net, imdb, getBatchWrapper(bopts), ...

I am using MATLAB 2015b in Window OS, newest matconvnet and matconvnet-fcn versions. Someone got the same error? How can I solve it.

Thanks everybody

@islamamirul
Copy link

Hi mjohn123, I'm also getting the same error even if I enable the GPU. Did you find any way to fix it?

@mjohn123
Copy link
Author

Hello islamamirul. I did not find any solution. I am using MATLAB 2015b. I think it maybe work in order version. But I did not try. If you find any solution. Please let me know. Thanks in adavance

@wangpichao
Copy link

I also encountered this problem. I am using Matlab 2014b/2015b/2013b under Ubuntu 14.04/windows 10. I have tried three GPUs, one K40, one GT730, one GTX 970, but on all of which the same error happens. How to handle it? Thanks in advance.

@xuranzhao711
Copy link

Hi, I encountered the same problem. If I am right, there is something wrong with the fcntrain.m script but there is an easy fix.
First search and every trainOpts and replace them by opts.train.
Then change line 23 opts.train = struct([]) to opts.train = [];
For me fixed the problem.

@mjohn123
Copy link
Author

Thank xuranzhao711. It worked now. It is good solution

@islamamirul
Copy link

Thanks a lot xuranzhao711. It's working perfectly now.

@wangpichao
Copy link

Thanks xuranzhao711. It's working now.

@tianzq
Copy link

tianzq commented Apr 1, 2016

It works for me, thanks @xuranzhao711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants