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

A question about training on custom dataset #25

Open
mateth opened this issue Aug 9, 2023 · 2 comments
Open

A question about training on custom dataset #25

mateth opened this issue Aug 9, 2023 · 2 comments

Comments

@mateth
Copy link

mateth commented Aug 9, 2023

Hi, I am trying to train this model on some data I've collected online to test its training capabilities. I have the images annotated with lines and they are saved in a txt format like what Yolov8 uses. Is there an example of how I should transform this data to input as training for this model?
Is there any way to train the model to detect only some particular lines instead of all of them?

@rpautrat
Copy link
Member

Hi, DeepLSD is originally meant to be trained without ground truth lines, so we do not have any code to do what you want.

However, it could be feasible with a bit of work, by converting your lines into a distance and angle fields (e.g. using the distanceTransform of OpenCV, or doing it programmatically), and then supervising the network with these two fields.

@heivens
Copy link

heivens commented Feb 20, 2024

@mateth Hello, I am preparing to do the same thing as you described. Have you found any convenient ways?

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

3 participants