Nan Xue commited on
Commit
821a6d0
·
1 Parent(s): 6bd00c7
Files changed (2) hide show
  1. app.py +1 -1
  2. scalelsd/base/csrc/__init__.py +10 -9
app.py CHANGED
@@ -183,7 +183,7 @@ def run_demo():
183
 
184
  with gr.Column():
185
  draw_junctions_only = gr.Checkbox(False, label="Show Junctions Only")
186
- use_lsd = gr.Checkbox(False, label="Use LSD-Rectifier")
187
  use_nms = gr.Checkbox(True, label="Use NMS")
188
  output_format = gr.Dropdown(
189
  ['png', 'jpg', 'pdf'],
 
183
 
184
  with gr.Column():
185
  draw_junctions_only = gr.Checkbox(False, label="Show Junctions Only")
186
+ use_lsd = False #gr.Checkbox(False, label="Use LSD-Rectifier")
187
  use_nms = gr.Checkbox(True, label="Use NMS")
188
  output_format = gr.Dropdown(
189
  ['png', 'jpg', 'pdf'],
scalelsd/base/csrc/__init__.py CHANGED
@@ -4,16 +4,17 @@ import os.path as osp
4
 
5
  __this__ = osp.dirname(__file__)
6
 
7
- try:
8
- _C = load(name='_C',sources=[
9
- osp.join(__this__,'binding.cpp'),
10
- osp.join(__this__,'linesegment.cu'),
11
- ]
12
- )
13
- except:
14
- _C = None
 
15
 
16
- _C = load(name='_C', sources=[osp.join(__this__,'binding.cpp'), osp.join(__this__,'linesegment.cu')])
17
  __all__ = ["_C"]
18
 
19
  #_C = load(name='base._C', sources=['lltm_cuda.cpp', 'lltm_cuda_kernel.cu'])
 
4
 
5
  __this__ = osp.dirname(__file__)
6
 
7
+ #try:
8
+ # _C = load(name='_C',sources=[
9
+ # osp.join(__this__,'binding.cpp'),
10
+ # osp.join(__this__,'linesegment.cu'),
11
+ # ]
12
+ # )
13
+ #except:
14
+ # _C = None
15
+ _C = None
16
 
17
+ # _C = load(name='_C', sources=[osp.join(__this__,'binding.cpp'), osp.join(__this__,'linesegment.cu')])
18
  __all__ = ["_C"]
19
 
20
  #_C = load(name='base._C', sources=['lltm_cuda.cpp', 'lltm_cuda_kernel.cu'])