Closed funkey closed 9 years ago
Hey @funkey! Great to see you're trying out gala! =)
The label "0" in the superpixels has a special meaning in gala. It's supposed to be the boundary between superpixels. This is for historical reasons, because we were originally generating our watersheds with Matlab, which produces a 0 boundary on the watershed lines. There's actually a bug that I can't track down with 0-boundaries, so I'm actually just in the process of deprecating this (see this recent post on the mailing list).
In your case, your superpixel labels start at 0, which is even worse than having zero boundaries. =P The simple fix is to add the line sp += 1
before or after relabel_sequential
. =) You should probably do the same for the ground truth.
Sorry for the confusion! This magic behaviour will go away very soon.
Let me know if that resolves your issue!
Hi Juan!
Thank you very much for you prompt reply -- that solved the problem indeed. The only remaining error is
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method UmfpackContext.new_del of <scipy.sparse.linalg.dsolve.umfpack.umfpack.UmfpackContext object at 0x7f2503a935d0>> ignored
but the training and merging seems to work anyway.
@funkey That error comes from an interaction between certain versions of scikit-image and scipy. It should be resolved if you update scipy. But it doesn't affect anything, it is merely an import messing with a class destructor, followed by an error when the destructor is called at the end of execution.
Hi,
I am trying to run Gala (current master) on 2D images of neural tissue, but I keep getting a
KeyError
inlearn_agglomerate()
. I am using the following python script:on this data: http://lego.slyip.net/gala_mwe.tar.gz. This is the traceback of the error I get:
Any help would be greatly appreciated!
Cheers, Jan