(deformetrica) MBPdiValentina:skulls valshie$ deformetrica estimate model.xml data_set.xml -p optimization_parameters.xml
Logger has been set to: WARNING
Could not set torch settings.
Compiling libKeOpstorch1839da4dd8 in /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8:
formula: Sum_Reduction(Exp(-G*SqDist(X,Y)) * P,0)
aliases: G = Pm(0,1); X = Vi(1,2); Y = Vj(2,2); P = Vj(3,2);
dtype : float32
... In file included from <built-in>:1:
In file included from /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8/libKeOpstorch1839da4dd8.h:8:
In file included from /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops/keops_includes.h:7:
In file included from /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops/core/formulas/constants/IntConst.h:3:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/sstream:173:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/ostream:138:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__locale:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/string:506:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:639:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/initializer_list:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37:
/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/version:1:1: error: expected unqualified-id
1.4.1
^
In file included from <built-in>:1:
In file included from /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8/libKeOpstorch1839da4dd8.h:8:
In file included from /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops/keops_includes.h:7:
In file included from /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops/core/formulas/constants/IntConst.h:3:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/sstream:173:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/ostream:138:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__locale:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/string:506:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/algorithm:640:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:418:
/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/version:1:1: error: expected unqualified-id
1.4.1
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 errors generated.
make[3]: *** [CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/keops/core/link_autodiff.cpp.o] Error 1
make[2]: *** [CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/all] Error 2
make[1]: *** [CMakeFiles/libKeOpstorch1839da4dd8.dir/rule] Error 2
make: *** [libKeOpstorch1839da4dd8] Error 2
--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpstorch1839da4dd8', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/bin/cmake -S/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops -B/Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 --check-build-system CMakeFiles/Makefile.cmake 0
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 libKeOpstorch1839da4dd8
/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/bin/cmake -S/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops -B/Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 --check-build-system CMakeFiles/Makefile.cmake 0
/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8/CMakeFiles 4
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpstorch1839da4dd8.dir/all
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/build.make CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/depend
cd /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 && /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/cmake/data/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 /Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8/CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/build.make CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/build
[ 25%] Building CXX object CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/keops/core/link_autodiff.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DC_CONTIGUOUS=1 -DMODULE_NAME=libKeOpstorch1839da4dd8 -DSUM_SCHEME=1 -DUSE_CUDA=0 -DUSE_DOUBLE=0 -DUSE_HALF=0 -D_GLIBCXX_USE_CXX11_ABI=0 -D__TYPEACC__=float -D__TYPE__=float -DkeopslibKeOpstorch1839da4dd8_EXPORTS -I/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops -I/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops -I/Users/valshie/.cache/pykeops-1.4.1-cpython-38/build-libKeOpstorch1839da4dd8 -I/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/torch/include -I/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -Wall -ferror-limit=2 -O3 -DNDEBUG -O3 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -fPIC -include libKeOpstorch1839da4dd8.h -std=gnu++14 -MD -MT CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/keops/core/link_autodiff.cpp.o -MF CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/keops/core/link_autodiff.cpp.o.d -o CMakeFiles/keopslibKeOpstorch1839da4dd8.dir/keops/core/link_autodiff.cpp.o -c /Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/keops/core/link_autodiff.cpp
--------------------- ----------- -----------------
Done.
Traceback (most recent call last):
File "/Users/valshie/opt/anaconda3/envs/deformetrica/bin/deformetrica", line 8, in <module>
sys.exit(main())
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/__main__.py", line 123, in main
deformetrica.estimate_bayesian_atlas(
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/api/deformetrica.py", line 217, in estimate_bayesian_atlas
statistical_model.initialize_noise_variance(dataset, individual_RER)
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/core/models/bayesian_atlas.py", line 163, in initialize_noise_variance
residuals_per_object = sum(self._compute_residuals(
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/core/models/bayesian_atlas.py", line 483, in _compute_residuals
self.exponential.update()
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/core/model_tools/deformations/exponential.py", line 173, in update
self.shoot()
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/core/model_tools/deformations/exponential.py", line 210, in shoot
new_cp, new_mom = self._euler_step(self.shoot_kernel, self.control_points_t[i], self.momenta_t[i], dt)
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/core/model_tools/deformations/exponential.py", line 483, in _euler_step
return cp + h * kernel.convolve(cp, cp, mom), \
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/deformetrica/support/kernels/keops_kernel.py", line 82, in convolve
res = self.gaussian_convolve[d - 2](gamma, x.contiguous(), y.contiguous(), p.contiguous(), device_id=device_id)
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/torch/generic/generic_red.py", line 395, in __call__
out = GenredAutograd.apply(self.formula, self.aliases, backend, self.dtype,
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/torch/generic/generic_red.py", line 22, in forward
myconv = LoadKeOps(formula, aliases, dtype, 'torch', optional_flags).import_module()
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/site-packages/pykeops/common/keops_io.py", line 70, in import_module
return importlib.import_module(self.dll_name)
File "/Users/valshie/opt/anaconda3/envs/deformetrica/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libKeOpstorch1839da4dd8'
(deformetrica) MBPdiValentina:skulls valshie$