-
Notifications
You must be signed in to change notification settings - Fork 44
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
An error occured while compiling your code. #12
Comments
Hi Jiyu, We notice that the system is not compatible with the latest Pytorch. Please use the tested version.
|
Thank you so much about your kind reply! |
Please tell me how to solve this situation? Thanks! Pass 'Combine redundant instructions' is not initialized. |
Hi Xiang, Sorry, I don't get your questions. Is it the same problem as #5? Please provide further details. |
@HuajianUP @Jiyu-Yao Hi all, I encountered the same issue with the dockerfile provided by #2 (comment), hard to debug with the segmentation fault, any updates with this issue? |
have same question, too I changed release mode to debug mode in cmakelist and then realized that the problem seems to be here
in
The code can output the rebuild results normally, but it cannot display the build map in real time. Maybe there is a slight problem with this part I found that
pcmd->IdxOffset and pcmd->VtxOffset both is 0,They may represent base addresses in memory I noticed that the vtfofffset and idxoffset just don't seem to be quite right here.
|
Thank you for your excellent work!
When I try to compile your code,I get some trouble.Could you please check for the error?If you have encountered it,please tell me the solution.Thank you!
CMake Warning at CMakeLists.txt:36 (find_package):
By not providing "Findrealsense2.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"realsense2", but CMake did not find one.
Could not find a package configuration file provided by "realsense2" with
any of the following names:
Add the installation prefix of "realsense2" to CMAKE_PREFIX_PATH or set
"realsense2_DIR" to a directory containing one of the above files. If
"realsense2" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yjy/Photo-SLAM/build
Consolidate compiler generated dependencies of target imgui
Consolidate compiler generated dependencies of target simple_knn
[ 17%] Built target imgui
Consolidate compiler generated dependencies of target cuda_rasterizer
[ 24%] Built target simple_knn
[ 40%] Built target cuda_rasterizer
Consolidate compiler generated dependencies of target gaussian_mapper
[ 42%] Building CXX object CMakeFiles/gaussian_mapper.dir/src/gaussian_model.cpp.o
/home/yjy/Photo-SLAM/src/gaussian_model.cpp: In member function ‘at::Tensor GaussianModel::replaceTensorToOptimizer(at::Tensor&, int)’:
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:571:27: error: ‘to_string’ is not a member of ‘c10::guts’
571 | auto key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:571:27: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:581:22: error: ‘to_string’ is not a member of ‘c10::guts’
581 | key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:581:22: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp: In member function ‘void GaussianModel::prunePoints(at::Tensor&)’:
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:598:31: error: ‘to_string’ is not a member of ‘c10::guts’
598 | auto key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:598:31: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:609:30: error: ‘to_string’ is not a member of ‘c10::guts’
609 | key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:609:30: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp: In member function ‘void GaussianModel::densificationPostfix(at::Tensor&, at::Tensor&, at::Tensor&, at::Tensor&, at::Tensor&, at::Tensor&, at::Tensor&)’:
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:670:31: error: ‘to_string’ is not a member of ‘c10::guts’
670 | auto key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:670:31: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:675:123: error: no matching function for call to ‘cat(, int)’
675 | vg().clone(), torch::zeros_like(extension_tensor)}, /dim=/0));
| ^
In file included from /home/yjy/libtorch/include/ATen/Functions.h:529,
from /home/yjy/libtorch/include/ATen/ExpandUtils.h:4,
from /home/yjy/libtorch/include/torch/csrc/autograd/input_metadata.h:3,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:7,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/ATen/ops/cat.h:26:19: note: candidate: ‘at::Tensor at::cat(const ITensorListRef&, int64_t)’
26 | inline at::Tensor cat(const at::ITensorListRef & tensors, int64_t dim=0) {
| ^~~
/home/yjy/libtorch/include/ATen/ops/cat.h:26:50: note: no known conversion for argument 1 from ‘’ to ‘const ITensorListRef&’ {aka ‘const c10::IListRefat::Tensor&’}
26 | inline at::Tensor cat(const at::ITensorListRef & tensors, int64_t dim=0) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/yjy/libtorch/include/ATen/ops/cat.h:40:19: note: candidate: ‘at::Tensor at::cat(at::TensorList, at::Dimname)’
40 | inline at::Tensor cat(at::TensorList tensors, at::Dimname dim) {
| ^~~
/home/yjy/libtorch/include/ATen/ops/cat.h:40:38: note: no known conversion for argument 1 from ‘’ to ‘at::TensorList’ {aka ‘c10::ArrayRefat::Tensor’}
40 | inline at::Tensor cat(at::TensorList tensors, at::Dimname dim) {
| ~~~~~~~~~~~~~~~^~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:676:129: error: no matching function for call to ‘cat(, int)’
676 | sq().clone(), torch::zeros_like(extension_tensor)}, /dim=/0));
| ^
In file included from /home/yjy/libtorch/include/ATen/Functions.h:529,
from /home/yjy/libtorch/include/ATen/ExpandUtils.h:4,
from /home/yjy/libtorch/include/torch/csrc/autograd/input_metadata.h:3,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:7,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/ATen/ops/cat.h:26:19: note: candidate: ‘at::Tensor at::cat(const ITensorListRef&, int64_t)’
26 | inline at::Tensor cat(const at::ITensorListRef & tensors, int64_t dim=0) {
| ^~~
/home/yjy/libtorch/include/ATen/ops/cat.h:26:50: note: no known conversion for argument 1 from ‘’ to ‘const ITensorListRef&’ {aka ‘const c10::IListRefat::Tensor&’}
26 | inline at::Tensor cat(const at::ITensorListRef & tensors, int64_t dim=0) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/yjy/libtorch/include/ATen/ops/cat.h:40:19: note: candidate: ‘at::Tensor at::cat(at::TensorList, at::Dimname)’
40 | inline at::Tensor cat(at::TensorList tensors, at::Dimname dim) {
| ^~~
/home/yjy/libtorch/include/ATen/ops/cat.h:40:38: note: no known conversion for argument 1 from ‘’ to ‘at::TensorList’ {aka ‘c10::ArrayRefat::Tensor’}
40 | inline at::Tensor cat(at::TensorList tensors, at::Dimname dim) {
| ~~~~~~~~~~~~~~~^~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:681:30: error: ‘to_string’ is not a member of ‘c10::guts’
681 | key = c10::guts::to_string(param.unsafeGetTensorImpl());
| ^~~~~~~~~
/home/yjy/Photo-SLAM/src/gaussian_model.cpp:681:30: note: suggested alternatives:
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/bits/unique_ptr.h:37,
from /usr/include/c++/9/memory:80,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:18,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/usr/include/c++/9/bits/basic_string.h:6601:3: note: ‘std::to_string’
6601 | to_string(long double __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: ‘std::to_string’
6549 | to_string(int __val)
| ^~~~~~~~~
In file included from /home/yjy/libtorch/include/ATen/ThreadLocalState.h:14,
from /home/yjy/libtorch/include/torch/csrc/autograd/graph_task.h:2,
from /home/yjy/libtorch/include/torch/csrc/autograd/function.h:6,
from /home/yjy/libtorch/include/torch/csrc/autograd/custom_function.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/autograd.h:5,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/all.h:7,
from /home/yjy/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/yjy/Photo-SLAM/include/gaussian_model.h:24,
from /home/yjy/Photo-SLAM/src/gaussian_model.cpp:16:
/home/yjy/libtorch/include/c10/core/impl/TorchDispatchModeTLS.h:61:21: note: ‘c10::impl::to_string’
61 | C10_API std::string to_string(TorchDispatchModeKey mode_key);
| ^~~~~~~~~
make[2]: *** [CMakeFiles/gaussian_mapper.dir/build.make:104:CMakeFiles/gaussian_mapper.dir/src/gaussian_model.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:248:CMakeFiles/gaussian_mapper.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2
The text was updated successfully, but these errors were encountered: