nightrome / matconvnet-calvin

Code for several state-of-the-art papers in object detection and semantic segmentation.
http://calvin.inf.ed.ac.uk/
Other
86 stars 72 forks source link

Windows-related error: Error file reading in FRCN #11

Closed Addhi86 closed 7 years ago

Addhi86 commented 7 years ago

Hello,

While running the code 'demo_frcn.m', i am getting error:

In setupFastRcnnRegions (line 23) In demo_frcn (line 20) Error using textread (line 165) File not found.

trainIms = textread(sprintf(DATAopts.imgsetpath, trainName), '%s'); %#ok<DTXTRD> I have checked the variables DATAopts.imgsetpath the path is correct. Then I couldn't understand why it is not reading the text file.

nightrome commented 7 years ago

Hi. could you tell me the values of the following?

Alternatively run exist(sprintf(DATAopts.imgsetpath, trainName), 'file') to see whether the file actually exists (2 indicates it exists, 0 it doesn't).

Addhi86 commented 7 years ago

Te values are:

DATAopts.imgsetpath: C:\Users\AD\Downloads\matconvnet-calvin-master\matconvnet-calvin-master\data\Datasets\VOC2010/VOCdevkit/VOC2010/ImageSets/Main/%s.txt trainName: train

And the answer is 7 if i check the exist

nightrome commented 7 years ago

I think the problem is that you are one Windows. I guess mixing / and \ does not work very well and therefore Matlab thinks that this is a folder, not a file. You can try replacing all those slashes (strrep(str, '/', '\')), but I can't guarantee this will work everywhere in the VOC code :(.