LaneNet icon indicating copy to clipboard operation
LaneNet copied to clipboard

'cfg.json' and weights file

Open earlysleepearlyup opened this issue 5 years ago • 8 comments

hello, I want to run your code, but I can't find the 'cfg.json' and weights file. If you would like to provide the 'cfg.json' and weights file, I'll grateful appreciate it.

earlysleepearlyup avatar Nov 28 '19 09:11 earlysleepearlyup

I reversed engineered this cfg file, worked for me

{ "dataset":{"resize_shape":[300,300],"dataset_name":"CULane","batch_size":1}, "device":0, "model":{}, "optim":{"lr":0.01, "momentum":0.9}, "MAX_ITER":20000 }

avizipi avatar May 21 '20 12:05 avizipi

IndexError: The shape of the mask [300, 300] at index 0 does not match the shape of the indexed tensor [4, 296, 296] at index 1

hello, Can I get help with the above error?

ryunchang avatar Feb 09 '21 17:02 ryunchang

@ryunchang I also got the same error with you, wondering if you have fixed the error, thanks

mengnutonomy avatar May 05 '21 15:05 mengnutonomy

@mengnutonomy I set up the cfg.json file as below.

{ "dataset":{"resize_shape":[296, 296],"dataset_name":"CULane","batch_size":4}, "device":0, "model":{}, "optim":{"lr":0.01, "momentum":0.9}, "MAX_ITER":20000 }

Also, I found the 182 line of train.py hard-coded. https://github.com/harryhan618/LaneNet/blob/a19cfca9ad0899a97752b38bcc4040a62071470c/train.py#L182 I solved it by modifying it to (296, 296). I don't know if the resolution must be 296. But it's working :)

ryunchang avatar May 05 '21 16:05 ryunchang

@ryunchang do you mean you modified line 182 in train.py img = cv2.resize(img, (800, 288)) to 'img = cv2.resize(img, (296, 296))'?

mengnutonomy avatar May 06 '21 05:05 mengnutonomy

@mengnutonomy Yes

ryunchang avatar May 06 '21 06:05 ryunchang

I am getting this error while running the training script: FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/LaneNet-master/experiments/exp0/exp0.pth'

So where will I get this 'exp0.pth' file. Please help!!

Berrlinn avatar Jan 09 '22 18:01 Berrlinn

@mengnutonomy

Hello, I couldn't find the weights file. Kindly share if you have it :( Thanks!!

Berrlinn avatar Mar 25 '22 14:03 Berrlinn