2016_super_resolution icon indicating copy to clipboard operation
2016_super_resolution copied to clipboard

Error when testing the code.

Open faris060 opened this issue 9 years ago • 1 comments

Hi, i'm interested in your work on super resolution. I encounter a problem when running testSRnet_result.m. the error is regarding vl-nnconv saying that an input is not a numeric array (or GPU support not compiled.

The rest of the error are as follow:

Error using vl_nnconv An input is not a numeric array (or GPU support not compiled).

`Error` in dagnn.Conv/forward (line 11)
      outputs{1} = vl_nnconv(...
`Error` in dagnn.Layer/forwardAdvanced (line 85)
      outputs = obj.forward(inputs, {net.params(par).value})
  ;
Error` in dagnn.DagNN/eval (line 91)
  obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;
```

```
`Error` in testSRnet_result (line 27)
net.eval({'input',gpuArray(input_big)});
```

Do i need to change any parameter during compilation?

faris060 avatar Jan 08 '17 12:01 faris060

@faris060 It seems that your matlab doses't recognise the 'gpuArray'. I strongly recommend you refer to http://www.vlfeat.org/matconvnet/install/#compiling Or you may try to run my code on CPU. Use vlnn_compile() to compile. Then change all the 'gpuArray' format data to 'single' format. But it may take a while.

layumi avatar Jan 12 '17 04:01 layumi