jacopoantonello / dmlib Goto Github PK
View Code? Open in Web Editor NEWDeformable mirror calibration and control library
License: Other
Deformable mirror calibration and control library
License: Other
Version for dmlib-0.0.21 for the calibration. Data aquisiton like 2 month old version with 3 Steps.
Using a uEye and alpao DM97-15 with 97 actuators.
PC specs: AMD Ryzen Threadripper 1920X 12-Core, 128 GB Ram using Python 3.7.4(Anaconda)
Run: Python.exe calibration.py in anaconda prompt. Just removed the .decode('utf-8') in line 30 since it was already a String and therefore raising an error and changed finame and radius_um.
Get the following output:
Computing Zernike polynomials ...
Computing masks ...
Computing phases 00.00% ...
24 times Computing Zernike polynomials ...
Then the ram is slowly filling with cpu at 100%
then with full ram:
a few times "Computing masks ..." and then multiple times
MemoryError
Computing masks ...
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\xx\Anaconda3\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\xx\Anaconda3\lib\multiprocessing\spawn.py", line 114, in _main
prepare(preparation_data)
File "C:\Users\xx\Anaconda3\lib\multiprocessing\spawn.py", line 225, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "C:\Users\xx\Anaconda3\lib\multiprocessing\spawn.py", line 277, in _fixup_main_from_path
run_name="mp_main")
File "C:\Users\xx\Anaconda3\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Users\xx\Anaconda3\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Users\xx\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "T:\xxx\dmlib\dmlib\examples\calibration.py", line 61, in
status_cb=print)
File "C:\Users\xx\Anaconda3\lib\site-packages\dmlib\calibration.py", line 156, in calibrate
zfA1, zfA2, mask = self._make_zfAs()
File "C:\Users\xx\Anaconda3\lib\site-packages\dmlib\calibration.py", line 107, in _make_zfAs
zfA1 = np.zeros((self.zfm.sum(), self.cart.nk))
and it seems like it was loading the .h5 file again. And next I got "Computing phases 00.00% ..." followed by the error multipl times:
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
here I killed the process after some time. I tried this with other amount of steps and older versions but it never terminated within a reasonable time sometime I even let it run over night.
Is this normal and I just have not enough ram? Do you have any ideas how to solve this problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.