Comments (7)
It would be good to see if someone else gets this error too.
from cellfinder.
Hi, I also have problems for the cell detection using Windows. The error message is:
` C:\Users\Asus>cellfinder -s C:\Users\Asus\Desktop\cellfinder_folder\signal -b C:\Users\Asus\Desktop\cellfinder_folder\anatomy -o C:\Users\Asus\Desktop\cellfinder_folder\result_cellfinder -x 1.625 -y 1.625 -z 4 --no-standard-space --soma-diameter 6 --ball-xy-size 4 --ball-z-size 4 --ball-overlap-fraction 0.4 --save-planes --no-classification
2020-04-27 12:49:13 PM - INFO - MainProcess fancylog.py:265 - Starting logging
2020-04-27 12:49:13 PM - INFO - MainProcess fancylog.py:267 - Multiprocessing-logging module found. Logging from all processes
2020-04-27 12:49:13 PM - INFO - MainProcess main.py:64 - Skipping registration
2020-04-27 12:49:13 PM - INFO - MainProcess main.py:110 - Detecting cell candidates
Processing planes: 0%| | 0/300 [00:00<?, ?it/s]Traceback (most recent call last):
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\Scripts\cellfinder-script.py", line 11, in
load_entry_point('cellfinder', 'console_scripts', 'cellfinder')()
File "c:\users\asus\cellfinder\cellfinder\main.py", line 91, in main
run_all(args, what_to_run)
File "c:\users\asus\cellfinder\cellfinder\main.py", line 112, in run_all
detect.main(args)
File "c:\users\asus\cellfinder\cellfinder\detect\detect.py", line 114, in main
bf_process.start() # needs to be started before the loop
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
File "stringsource", line 2, in View.MemoryView._memoryviewslice.reduce_cython
TypeError: no default reduce due to non-trivial cinit
Processing planes: 0%| | 0/300 [00:00<?, ?it/s]
(cellfinderenv) C:\Users\Asus>Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\Asus\Anaconda3\envs\cellfinderenv\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
EOFError: Ran out of input`
from cellfinder.
Issue seems to be that the cython classes need to be pickled for multiprocessing, and the automatic method isn't working on Windows. Looks like it might need custom __reduce__
methods
from cellfinder.
Yes, I came to the same conclusion. Issue seems to be solved if you create the 3 cython classes inside the process method of Mp3DFilter. I know is not an elegant solution and I just worked around the problem, but it works.
from cellfinder.
Would you mind submitting a PR?
from cellfinder.
sure!
from cellfinder.
Release candidate out : pip install cellfinder==0.3.12rc0
from cellfinder.
Related Issues (20)
- Classification + Analysis step Inefficiencies HOT 1
- [BUG] figures not generating HOT 1
- Cell detection and analysis without cell classification HOT 1
- 'No cells detected' line when positives have been classified HOT 3
- Create docker container
- [BUG] is the tox file required?
- [Feature] storing config files in local data/output directory instead of in conda env installation directory HOT 1
- [Feature]Could you please supply you .npy file in your ouput from you example data HOT 1
- [BUG] cellfinder interacts badly with multiprocessing_logging on Python 3.9.13 HOT 14
- Remove contributing.md and use generic brainglobe guide
- Allow for changing cube size
- Remove `napari-ndtiffs` from requirements
- Provide a solution for Apple silicon
- Provide better error messages in case of a single corrupt file
- indexing error, analysis step fails HOT 2
- `--save-planes` doesn't save planes
- [BUG] Tests fail on py3.8 HOT 2
- [Feature] Migrate to `setuptools_scm`
- [BUG] Napari and brainreg-segment dependencies not fetched HOT 4
- [BUG] CLI scripts raise errors due to missing functions. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cellfinder.