Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what will happen if I modify some config #97

Closed
passion3394 opened this issue Nov 19, 2018 · 21 comments
Closed

what will happen if I modify some config #97

passion3394 opened this issue Nov 19, 2018 · 21 comments

Comments

@passion3394
Copy link

In config/global_config.py, I find the following config

Set the shadownet validation batch size

__C.TRAIN.VAL_BATCH_SIZE = 8

Set the learning rate decay steps

__C.TRAIN.LR_DECAY_STEPS = 410000

Set the learning rate decay rate

__C.TRAIN.LR_DECAY_RATE = 0.1

Set the class numbers

__C.TRAIN.CLASSES_NUMS = 2

Set the image height

__C.TRAIN.IMG_HEIGHT = 256

Set the image width

__C.TRAIN.IMG_WIDTH = 512

what will happen if I change the IMG_HEIGHT and IMG_WIDTH to a bigger value? thanks.

@MaybeShewill-CV
Copy link
Owner

@passion3394 That means the model will cost more gpu memory so you may reduce the batch size according to your gpu device:)

@passion3394
Copy link
Author

@MaybeShewill-CV what's the criteria of the modifying? the IMG_HEIGHT and the IMG_WIDTH should be divided by 16 or 32?

@MaybeShewill-CV
Copy link
Owner

@passion3394 That may depends on the experiment I have not tested it before:)

@passion3394
Copy link
Author

passion3394 commented Nov 19, 2018

@passion3394 theoretically, if I modify the IMG_HEIGHT and the IMG_WIDTH to a higher value, the precision will higher? because we use more features in one batch.

@MaybeShewill-CV
Copy link
Owner

@passion3394 The precision and the size of input tensor are not that related:)

@passion3394
Copy link
Author

@MaybeShewill-CV thanks for your reply, how do you think the generalization ability of the lancet model?

@MaybeShewill-CV
Copy link
Owner

@passion3394 That depends on the data that fed into the model and the data that you want to process with:)

@passion3394
Copy link
Author

@MaybeShewill-CV I use my own dataset, and train the model about 20000 steps, but the training loss is always about 1.2, and the training accuracy is about 75%, the learning rate multiplys by 0.9 every 1000 step. Can you give me some advise about the training process?

@MaybeShewill-CV
Copy link
Owner

@passion3394 If your dataset is complicated then you should consider to modified the model to promote the performance:)

@passion3394
Copy link
Author

@MaybeShewill-CV the dense net is better than vgg?

@MaybeShewill-CV
Copy link
Owner

@passion3394 You may test it:)

@passion3394
Copy link
Author

@MaybeShewill-CV Hi, I have two question, could you tell me something about them.

(1)The paper says that they do the model on the 512 * 256 size images, what if I modify the model and apply to other size of images? Can this way work on the lanenet-lane-detection code?

(2)I want to get the coordinates of the detected lanes, and I have dug into the code, saw these codes:

def _get_lane_area(binary_seg_ret, instance_seg_ret):
"""
通过二值分割掩码图在实例分割图上获取所有车道线的特征向量
:param binary_seg_ret:
:param instance_seg_ret:
:return:
"""
idx = np.where(binary_seg_ret == 1)

    lane_embedding_feats = []
    lane_coordinate = []
    for i in range(len(idx[0])):
        lane_embedding_feats.append(instance_seg_ret[idx[0][i], idx[1][i]])
        lane_coordinate.append([idx[0][i], idx[1][i]])

    return np.array(lane_embedding_feats, np.float32), np.array(lane_coordinate, np.int64)

the coordinates are computed through the resized 512*256 image?

@MaybeShewill-CV
Copy link
Owner

@passion3394 1.The model can be feed into a input tensor with different size. 2.The coord are computed through the resized 512*256 image

@passion3394
Copy link
Author

@MaybeShewill-CV ok,thanks, I just want to try if I modify the 512*256 to other size of the network, will the network get a better precision? especially on custom datasets.

@MaybeShewill-CV
Copy link
Owner

@passion3394 You may test it:)

@passion3394
Copy link
Author

@MaybeShewill-CV ok, thanks,will close this issue.

@MaybeShewill-CV
Copy link
Owner

@passion3394 Welcome to share the test result with us:)

@passion3394
Copy link
Author

@MaybeShewill-CV how to calculate the accuracy of lanenet? is that similar with the IoU in the semantic segmentation?

@MaybeShewill-CV
Copy link
Owner

@passion3394 You may refer to this #101 to see if it can help you:)

@passion3394
Copy link
Author

@MaybeShewill-CV thanks, it helps me a lot.

@MaybeShewill-CV
Copy link
Owner

@passion3394 Welcome:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants