-
Notifications
You must be signed in to change notification settings - Fork 9
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
segfault on agglomeration classifier training with multiple iterations #4
Comments
Hi Michiel, Thanks for using Neuroproof. From a quick look, it looks like the learning function is trying to determine which features are not very informative using the feature value distribution. We are not using this trick and commented out the line invoking this function in the newer versions. Could you please check whether or not the follwoing line is commented/deleted in your BioPriors/StackLearnAlgs.cpp ? // if (prune_feature) feature_mgr->find_useless_features(all_features); Please delete any txt file that was created by this command as well. Let me know if the error persists after removing this line. Note also that, if you are not using a mitochondria channel in your pixelwise prediction, the use_mito bool value should be false. Thanks --Toufiq |
Hi Toufiq, Thanks for you fast response. I hope the following gives you a bit more info…
Thanks, (neuroproof)ws133:envs michielk$ conda list packages in environment at /Users/michielk/anaconda/envs/neuroproof:boost 1.55.0 4 flyem On 1 Mar 2016, at 14:47, paragt <notifications@github.commailto:notifications@github.com> wrote: Hi Michiel, Thanks for using Neuroproof. From a quick look, it looks like the learning function is trying to determine which features are not very informative using the feature value distribution. We are not using this trick and commented out the line invoking this function in the newer versions. Could you please check whether or not the follwoing line is commented/deleted in your BioPriors/StackLearnAlgs.cpp ? // if (prune_feature) feature_mgr->find_useless_features(all_features); Please delete any txt file that was created by this command as well. Let me know if the error persists after removing this line. Note also that, if you are not using a mitochondria channel in your pixelwise prediction, the use_mito bool value should be false. Thanks --Toufiq — |
Hi Michiel, Glad to help you in your project, thanks for the info you provided. I forgot about the new conda installation. I made some changes in the neuroproof after I received your email and got some problems in the make test, we are working to fix those now. Please bug me within a couple of days in case I dont get back to you by then. Thanks --Toufiq |
Okay, thanks. Your help is much appreciated. Michiel On 1 Mar 2016, at 17:42, paragt <notifications@github.commailto:notifications@github.com> wrote: Hi Michiel, Glad to help you in your project, thanks for the info you provided. I forgot about the new conda installation. I made some changes in the neuroproof after I received your email and got some problems in the make test, we are working to fix those now. Please bug me within a couple of days in case I dont get back to you by then. Thanks --Toufiq — |
Hi Michiel, I think the problem is fixed now. The instruction you can follow to check out the git repo and build yourself with conda are as follows. Please let me know if you have problem with this. Thanks --Toufiq # Set up a conda environment with all dependencies
conda create -n myenv -c flyem neuroproof
source activate myenv
PREFIX=$(conda info --root)/envs/myenv
export LD_LIBRARY_PATH=${PREFIX}/lib # Linux
export DYLD_FALLBACK_LIBRARY_PATH=${PREFIX}/lib # Mac
# Discard the downloaded binary; we'll build our own.
conda remove neuroproof
# Clone and build
git clone https://github.com/janelia-flyem/neuroproof
cd neuroproof
./configure-for-conda.sh ${PREFIX}
cd build
make -j4
make install
make test (Edited to correct |
Hi Toufiq, Regarding the install:
best wishes, On 1 Mar 2016, at 18:38, paragt <notifications@github.commailto:notifications@github.com> wrote: Hi Michiel, I think the problem is fixed now. The instruction you can follow to check out the git repo and build yourself with conda are as follows. Please let me know if you have problem with this. Thanks --Toufiq Set up a conda environment with all dependencies conda create -n myenv -c flyem neuroproof Discard the downloaded binary; we'll build our own. conda remove neuroproof Clone and build git clone https://github.com/janelia-flyem/neuroproof — |
We're seeing the same thing on Linux, at commit 23992fa. |
I think the problem occurs because a deleted edge is being revisited here: I patched the code with the following test at that line and it ran to completion past the segfault:
That should test for the edge that's been merged out and should avoid reinserting it into the queue and trying to use the deleted node_cache for node_remove. |
Thanks for your contribution Lee! If you want, please create a pull request and assuming the integration tests pass I will accept it. |
Hi there,
I'm confronted with a segfault on training the agglomeration classifier with multiple iterations. See output below, It occurs with the example dataset as well as my own data. When using <--strategy-type 1> or <--strategy-type 2 --num-iterations 1> both run fine. I'm on OSX 10.10.5, but the behaviour on Linux 2.6.32-279.5.1.el6.x86_64 is identical. Could you please have a look at why this occurs?
Thanks,
Michiel
The text was updated successfully, but these errors were encountered: