DeepLSD icon indicating copy to clipboard operation
DeepLSD copied to clipboard

ImportError: cannot import name 'line_optim' from 'line_refinement' (unknown location)

Open 2jjjd opened this issue 2 years ago • 9 comments

there is no such a file named 'line_optim' in the file'line_refinement', how to import line_optim from line_refinement in the file deeplsd/models/deeplsd.py?

2jjjd avatar Oct 20 '23 08:10 2jjjd

Hi, did you correctly installed deeplsd with the full install, as described in the ReadMe?

rpautrat avatar Oct 20 '23 08:10 rpautrat

Hi-jacking this. Does line refinement mean e.g. double lines will be merged into one with the 'optimize': True config or something else?

ogencoglu avatar Oct 28 '23 19:10 ogencoglu

No, the line refinement is only meant to slightly move a bit the lines to make them perfectly fit the predicted distance and angle fields. So you would keep the same number of lines, including double lines.

rpautrat avatar Oct 28 '23 20:10 rpautrat

Hello, it also appears after I complete the configuration according to full install. ImportError: cannot import name 'line_optim' from 'line_refinement' (unknown location) how did you solve it? thank you.

houyiliang avatar Dec 25 '23 02:12 houyiliang

Hi, can you send here the full output that you get after running the full install command?

rpautrat avatar Dec 26 '23 07:12 rpautrat

Hi, can you send here the full output that you get after running the full install command?

0

Hi, I also encountered the same problem. Where is the definition of line_optim? Thank you

reai000 avatar Dec 30 '23 15:12 reai000

line_optim is defined in the line_refinement folder, with Python bindings. It is installed during the full install described in the Readme.

Note that you only need it to refine lines, but if you just want to use the base version of DeepLSD for inference, you don't need it. The Readme explains how to do this quickstart install.

rpautrat avatar Jan 02 '24 10:01 rpautrat

I solved it, thank you very much。

reai000 avatar Jan 03 '24 10:01 reai000

I solved it, thank you very much。

How was it resolved?

whw9483 avatar Jan 26 '24 12:01 whw9483