SCNN
SCNN copied to clipboard
run test.sh error
@XingangPan When I run sh ./experiments/test.sh, I met following error, what should I do?
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
@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 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'):
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 :
the same error:
@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 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 Try this.
@XingangPan Nothing is printed.
@chenyiman My mistake, we should modify 'laneTest.lua'
@XingangPan
the path is wrong,but I did not change anything in ./experiments/test.sh
@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:
@chenyiman Also, if you have changed your data list, you should remove the files in folder 'gen' before run experiments.
@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!
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!