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
1 / 1 : prediction8.png
img_loc: ../data/prediction8.png
im_root: prediction8
out_ske_file: ../results/ske/prediction8.png
Executing make_skeleton...
log : INFO 1 / 1 : prediction8.png
make_skeleton(), input img_shape: ()
make_skeleton(), img.shape: (256, 256)
make_skeleton(), img.size: 65536
make_skeleton(), img dtype: uint8
run preprocess()...
Run preprocess() with skimage
Time to run preprocess(): 0.002991199493408203 seconds
skeletonize...
Time to run skimage.skeletonize(): 0.0019943714141845703 seconds
fix_borders...
Time fix borders: 0.0 seconds
ske.shape: (256, 256)
Time to run make_skeleton: 21.24360680580139 seconds
Execute sknw...
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:20: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "mark" failed type inference due to: Untyped global name 'neighbors': cannot determine Numba type of <class 'function'>
File "utils\sknw.py", line 22:
def mark(img): # mark the array use (0, 1, 2)
nbs = neighbors(img.shape)
^
@jit # my mark
numba.transforms: INFO finding looplift candidates
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:20: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "mark" failed type inference due to: Untyped global name 'neighbors': cannot determine Numba type of <class 'function'>
File "utils\sknw.py", line 22:
def mark(img): # mark the array use (0, 1, 2)
nbs = neighbors(img.shape)
^
@jit # my mark
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:178: NumbaWarning: Function "mark" was compiled in object mode without forceobj=True, but has lifted loops.
File "utils\sknw.py", line 22:
def mark(img): # mark the array use (0, 1, 2)
nbs = neighbors(img.shape)
^
state.func_ir.loc))
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "utils\sknw.py", line 22:
def mark(img): # mark the array use (0, 1, 2)
nbs = neighbors(img.shape)
^
state.func_ir.loc))
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:92: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "parse_struc" failed type inference due to: Untyped global name 'neighbors': cannot determine Numba type of <class 'function'>
File "utils\sknw.py", line 94:
def parse_struc(img):
nbs = neighbors(img.shape)
^
@jit # parse the image then get the nodes and edges
numba.transforms: INFO finding looplift candidates
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:92: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "parse_struc" failed type inference due to: Untyped global name 'neighbors': cannot determine Numba type of <class 'function'>
File "utils\sknw.py", line 94:
def parse_struc(img):
nbs = neighbors(img.shape)
^
@jit # parse the image then get the nodes and edges
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:178: NumbaWarning: Function "parse_struc" was compiled in object mode without forceobj=True, but has lifted loops.
File "utils\sknw.py", line 94:
def parse_struc(img):
nbs = neighbors(img.shape)
^
state.func_ir.loc))
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "utils\sknw.py", line 94:
def parse_struc(img):
nbs = neighbors(img.shape)
^
state.func_ir.loc))
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:92: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "parse_struc" failed type inference due to: non-precise type pyobject
[1] During: typing of argument at C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py (101)
File "utils\sknw.py", line 101:
def parse_struc(img):
<source elided>
nodes = []
for p in pts:
^
@jit # parse the image then get the nodes and edges
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:178: NumbaWarning: Function "parse_struc" was compiled in object mode without forceobj=True.
File "utils\sknw.py", line 101:
def parse_struc(img):
<source elided>
nodes = []
for p in pts:
^
state.func_ir.loc))
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "utils\sknw.py", line 101:
def parse_struc(img):
<source elided>
nodes = []
for p in pts:
^
state.func_ir.loc))
C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py:92: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "parse_struc" failed type inference due to: non-precise type pyobject
[1] During: typing of argument at C:\Users\Jan.noessner\Documents\01_road_detection\resources\centerline\cresi\cresi\utils\sknw.py (108)
File "utils\sknw.py", line 108:
def parse_struc(img):
<source elided>
edges = []
for p in pts:
^
@jit # parse the image then get the nodes and edges
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:178: NumbaWarning: Function "parse_struc" was compiled in object mode without forceobj=True.
File "utils\sknw.py", line 108:
def parse_struc(img):
<source elided>
edges = []
for p in pts:
^
state.func_ir.loc))
C:\Apps\Anaconda3\envs\ml\lib\site-packages\numba\object_mode_passes.py:188: NumbaDeprecationWarning:
Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.
For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
File "utils\sknw.py", line 108:
def parse_struc(img):
<source elided>
edges = []
for p in pts:
^
state.func_ir.loc))
log : INFO Time to build graph: 1018.8935737609863 seconds
log : INFO Total time to run build_wkt_dir: 1018.8965332508087 seconds
len G.nodes(): 1
len G.edges(): 0
len df: 1
outfile: ../results/out.csv
Process finished with exit code 0
The text was updated successfully, but these errors were encountered:
Hi,
first of all, thank you for this great project.
I tried to use the 04_skeletonize.py with images that I have created. This is one example image:
The
make_skeleton()
method runs perfectly and produces an excellent ske image as result.However, the graph can't be generated, the output is:
What am I doing wrong?
Thanks in advance for help.
Best,
Jan
PS: My configuration (main method). Values are taken from the sn5_baseline.json:
PPS: The complete output:
The text was updated successfully, but these errors were encountered: