ankush-me / SynthText

Code for generating synthetic text images as described in "Synthetic Data for Text Localisation in Natural Images", Ankush Gupta, Andrea Vedaldi, Andrew Zisserman, CVPR 2016.
http://www.robots.ox.ac.uk/~vgg/data/scenetext/
Apache License 2.0
2.02k stars 622 forks source link

Undefined function or variable 'read_img_rgb' #97

Closed gccrpm closed 6 years ago

gccrpm commented 6 years ago

when run predict_depth.m script got the error: Warning: Name is nonexistent or not a directory: /root/fayao-dcnf-fcsp/libs/matconvnet_20141015/matlab/mex

In path (line 109) In addpath (line 88) In vl_setupnn (line 13) In run (line 96) In predict_depth (line 17)

loading trained model...

** No GPU found. Using CPU... 1 of 7 Undefined function or variable 'read_img_rgb'.

Error in predict_depth (line 50) img = read_img_rgb(fullfile(opts.imdir,imname)); how to slove this problem @ankush-me thank you!

ankush-me commented 6 years ago

Please check the comment at the top of the script predict_depth.m. It requires the code from: https://bitbucket.org/fayao/dcnf-fcsp/ which has this and the super-pixel function (per #98)

liyu10000 commented 5 years ago

You need to copy all the .m files under demo folder to the same working directory as predict_depth.m.