You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During training, I found the instance part of your program is not accurate, the instance loss is too fast to converge to 0. Thus, I checked the loss.py file of your code, and found that parameter num_lanes inside class DiscriminativeLoss is always = 1 during training. This might be caused by your one-hot representation for instance target.
To solve this problem, I think we need to fix the DiscriminativeLoss or build a new dataloader.
I change a little in DiscriminativeLoss and this part may works (I am not sure):
RuntimeError: shape '[4, 131072]' is invalid for input of size 1572864
when ı try to my own dataset, which is same as with your dataset structure, ı am getting this error:
lanenet-lane-detection-pytorch/model/lanenet/loss.py", line 64, in _discriminative_loss
seg_gt = seg_gt.reshape(batch_size, H*W)
on loss.py. How can ı fix ?
During training, I found the instance part of your program is not accurate, the instance loss is too fast to converge to 0. Thus, I checked the loss.py file of your code, and found that parameter num_lanes inside class DiscriminativeLoss is always = 1 during training. This might be caused by your one-hot representation for instance target.
Due to num_lanes = 1, this part will miss:
#################################################
To solve this problem, I think we need to fix the DiscriminativeLoss or build a new dataloader.
I change a little in DiscriminativeLoss and this part may works (I am not sure):
Who can help me test it? Thanks a lot.
The text was updated successfully, but these errors were encountered: