LaneNet
LaneNet copied to clipboard
'cfg.json' and weights file
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.
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 }
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 I also got the same error with you, wondering if you have fixed the error, thanks
@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 do you mean you modified line 182 in train.py img = cv2.resize(img, (800, 288))
to 'img = cv2.resize(img, (296, 296))'?
@mengnutonomy Yes
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!!
@mengnutonomy
Hello, I couldn't find the weights file. Kindly share if you have it :( Thanks!!