-
Notifications
You must be signed in to change notification settings - Fork 5
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
the demo has something wrong #7
Comments
when I run the demo demo_pipeline_1to3.bat, it seems that an error occurs at running demo_train_CNN_params_1to3.py multiprocessing.pool.RemoteTraceback: The above exception was the direct cause of the following exception: Traceback (most recent call last): could you help me with this problem? |
I have not seen this error message before, and this error message is quite general. I have no idea of what caused it. Perhaps you can try to find out the problem by debugging. First, set
Then you can check the function ( |
I've been having the same issue. thresh1 is converted to type uint8 in line 216 of seperate_neurons.py: I tried commenting this out to leave thresh1 as a binary image but the same error came up. OpenCV version installed is now 4.5.5 through environment creation. I was wondering what OpenCV version you used @YijunBao when creating this? Any other direction for a solution? |
My opencv version is 3.4.1. The |
Yep, the OpenCV version was the issue. In my case, I ended up using 3.4.2 since it was the first I saw compatible with python 3.7 in conda-forge prior to reading this message, but I'm sure 3.4.1 would've worked too. Thanks for the help. I also had to change some restrictions in the dependencies in environment_suns.yml to prevent a bunch of package conflicts (for fissa and h5py). Since fissa version was changed, I did not copy over the core.py and neuropil.py in the installation directory as that was causing issues -- but that may be something else (or may be resolved by simply using 3.4.1). I've pasted that yml config below for anyone else having the same issue.
|
Thank you very much for your information and update, @DG1038286. Version compatibility is indeed an issue for the code developped years ago. We have also seen same issue for h5py, and that is why the h5py version is specified in the |
Sorry, I did not realize your initial question was different from the following discussions. How does the terminal look like when you define as "stop"? Does the code still utilize CPU even if the terminal does not update? If so, a possible reason is that it takes too much time in parameter optimization, so you see no progress in the terminal. You can change the ranges of the post-processing parameters you try to optimize (e.g., |
Thanks a lot for reading my question in detail. I have solve the problem with the following discussions. When I use opencv-python==3.4.2.17 ,the demo can correctly run very fast and have a fantastic result. |
when I run the demo of demo_train_CNN_params.py
the code stop at the last step (parameter optimization)
but there are no error message in the terminal
the file of output mask and temp are always empty
May I ask you the cause of this problem?
The text was updated successfully, but these errors were encountered: