SCNN icon indicating copy to clipboard operation
SCNN copied to clipboard

run test.sh error

Open chenyiman opened this issue 6 years ago • 13 comments

@XingangPan When I run sh ./experiments/test.sh, I met following error, what should I do? 1526458275

chenyiman avatar May 16 '18 08:05 chenyiman

hello, how did you find the "out0_normal" etc... output.txt files ? When i run , i get an error as ------ Run.sh: 31: Run.sh: ./evaluate: not found

Neha-swan avatar May 16 '18 10:05 Neha-swan

@chenyiman It seems that the input image is not successfully loaded. Please make sure the dataset is downloaded at the right path as described in README. You may print the image path in line 31 of 'datasets/lane.lua', and see if it match with the real image location.

XingangPan avatar May 16 '18 12:05 XingangPan

@XingangPan Thanks for your replying! I checked that the dataset's path is right as following(Here we only need testing datasets as in './list/text.txt'): 1526475869 1 And I tried to print the image path as you said, but there is nothing to be printed after running(the error is unchanged). I think the function "LaneDataset:_loadImage(...)" in './datasets/lane.lua' has not been run yet : 1526476348 1 the same error: 1526476378 1

chenyiman avatar May 16 '18 13:05 chenyiman

@chenyiman Ok, I know the problem. You should rename the 'driver_23_30frame_part1' to 'driver_23_30frame'. Since BaiduYun do not accept file larger than 20G. I have to split the 'driver_23_30_frame' into two parts. Which caused this name change. My fault. In a word. The images in 'driver_23_30frame_part1' and 'driver_23_30frame_part2' should be merged in one folder 'driver_23_30frame'. This should solve this issue.

XingangPan avatar May 16 '18 13:05 XingangPan

@XingangPan Well, I think it is not the problem. Because I did not use "driver_23_30frame_part1" here, the dataset is for traning. Now I just want to test, using your pretrained model which I download in './experiments/pretrained/'. So, for testing, I just use 'driver_100_30frame'、'driver_193_90frame'、‘driver_37_30frame‘(just as in './data/CULane/list/text.txt')

chenyiman avatar May 16 '18 13:05 chenyiman

@chenyiman Try this. printpath

XingangPan avatar May 16 '18 14:05 XingangPan

@XingangPan Nothing is printed. 1526481788 1 1526481815 1

chenyiman avatar May 16 '18 14:05 chenyiman

@chenyiman My mistake, we should modify 'laneTest.lua' printpath

XingangPan avatar May 16 '18 14:05 XingangPan

@XingangPan 1526483202 1 the path is wrong,but I did not change anything in ./experiments/test.sh

chenyiman avatar May 16 '18 15:05 chenyiman

@chenyiman This is odd. Your image path has an extra '/data/CULane'. Try to remove it either in data list test.txt or in script test.sh. In my case the path is correct: path

XingangPan avatar May 17 '18 05:05 XingangPan

@chenyiman Also, if you have changed your data list, you should remove the files in folder 'gen' before run experiments.

XingangPan avatar May 17 '18 13:05 XingangPan

@XingangPan It works! Could you tell me the reason ? I tried to understand your codes , unfortunately, only find that the run sequence is maybe: step1.' laneTest-gen.lua' step2. 'dataloader.lua' step3.' testlane.lua' or 'laneTest.lua' (??) I wonder where to change the paths of testing image (Or where call the function--'LaneDataset: _loadImage(path,channel,ttype)', which is defined in 'laneTest.lua') Thanks!

chenyiman avatar May 18 '18 12:05 chenyiman

I meet the same question , besides, I have printted the path which is correct. The datasets are my own, and, the files of the 'gen' have been removed. Unfortunately, it also show the same question('load image failed'). @XingangPan @chenyiman thanks!

ChangshiFan avatar Aug 29 '18 05:08 ChangshiFan