LibtorchSegmentation icon indicating copy to clipboard operation
LibtorchSegmentation copied to clipboard

network

Open yuanhs1996 opened this issue 1 year ago • 2 comments

Author, I have a question for you. I want to change the network to UNet, and change the FPN in the train.cpp and resnet34.cpp files to UNet, but the training error occurs. I changed to PAN and it works. Do you know what the reason is. thank you

yuanhs1996 avatar Mar 09 '24 04:03 yuanhs1996

What is the error log?

AllentDan avatar Mar 11 '24 02:03 AllentDan

(gdb) bt #0 0x00007fb92b6fee87 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007fb92b7007f1 in __GI_abort () at abort.c:79 #2 0x00007fb92bf0035a in _cxxabiv1::terminate(void ()()) (handler=, handler@entry=<error reading variable: dwarf2_find_location_expression: Corrupted DWARF expression.>) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/build/gcc-final/x86_64-conda-linux-gnu/libstdc++-v3/libsupc++/eh_terminate.cc:48 #3 0x00007fb92bf003c5 in std::terminate() () at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/build/gcc-final/x86_64-conda-linux-gnu/libstdc++-v3/libsupc++/eh_terminate.cc:58 #4 0x00007fb92bf00658 in __cxxabiv1::__cxa_throw(void, std::type_info*, void ()(void)) (obj=, tinfo=0x7fb98c09bf70 <typeinfo for c10::OutOfMemoryError>, dest=0x7fb928e82400 c10::OutOfMemoryError::~OutOfMemoryError()) at /opt/conda/conda-bld/gcc-compiler_1654084175708/work/build/gcc-final/x86_64-conda-linux-gnu/libstdc++-v3/libsupc++/eh_throw.cc:95 #5 0x00007fb928e9ec65 in c10::cuda::CUDACachingAllocator::DeviceCachingAllocator::malloc(int, unsigned long, CUstream_st*) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libc10_cuda.so #6 0x00007fb928e9fbfc in c10::cuda::CUDACachingAllocator::THCCachingAllocator::malloc(void**, int, unsigned long, CUstream_st*) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libc10_cuda.so #7 0x00007fb928e9ff21 in c10::cuda::CUDACachingAllocator::CudaCachingAllocator::allocate(unsigned long) const () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libc10_cuda.so #8 0x00007fb9634cdabe in at::detail::empty_generic(c10::ArrayRef, c10::Allocator*, c10::DispatchKeySet, c10::ScalarType, c10::optionalc10::MemoryFormat) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cpu.so #9 0x00007fb97c49e3d7 in at::detail::empty_cuda(c10::ArrayRef, c10::ScalarType, c10::optionalc10::Device, c10::optionalc10::MemoryFormat) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cpp.so #10 0x00007fb97c49e590 in at::detail::empty_cuda(c10::ArrayRef, c10::optionalc10::ScalarType, c10::optionalc10::Layout, c10::optionalc10::Device, c10::optional, c10::optionalc10::MemoryFormat) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cpp.so #11 0x00007fb97c49e6e6 in at::detail::empty_cuda(c10::ArrayRef, c10::TensorOptions const&) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cpp.so #12 0x00007fb9389861a0 in at::(anonymous namespace)::create_out(c10::ArrayRef, c10::ArrayRef, c10::TensorOptions const&) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cu.so #13 0x00007fb938a6ab86 in at::(anonymous namespace)::structured_upsample_nearest2d_out_cuda_functional::set_output_raw_strided(long, c10::ArrayRef, c10::ArrayRef, c10::TensorOptions, c10::ArrayRefat::Dimname) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cu.so #14 0x00007fb963c632de in at::meta::structured_upsample_nearest2d::meta(at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cpu.so #15 0x00007fb93898ccde in at::(anonymous namespace)::wrapper_upsample_nearest2d(at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cu.so #16 0x00007fb93898cdd8 in c10::impl::wrap_kernel_functor_unboxed<c10::impl::detail::WrapFunctionIntoFunctor<c10::CompileTimeFunctionPointer<at::Tensor (at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional), &at::(anonymous namespace)::wrapper_upsample_nearest2d>, at::Tensor, c10::guts::typelist::typelist<at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional > >, at::Tensor (at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional)>::call(c10::OperatorKernel*, c10::DispatchKeySet, at::Tensor const&, c10::ArrayRef, c10::optional, c10::optional) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cuda_cu.so #17 0x00007fb96444eb06 in at::ops::upsample_nearest2d::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::ArrayRefc10::SymInt, c10::optional, c10::optional) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cpu.so #18 0x00007fb965c05170 in torch::autograd::VariableType::(anonymous namespace)::upsample_nearest2d(c10::DispatchKeySet, at::Tensor const&, c10::ArrayRefc10::SymInt, c10::optional, c10::optional) () at /home/guestdata/yuanhongshuai/home/libtorch/libtorch/lib/libtorch_cpu.so #19 0x00007fb965c056c9 in c10::impl::wrap_kernel_functor_unboxed<c10::impl::detail::WrapFunctionIntoFunctor<c10::CompileTimeFunctionPointer<at::Tensor (c10::DispatchKeySet, at::Tensor const&, c10::ArrayRefc10::SymInt, c10::optional, c10::optional), &torch::autograd::VariableType::(anonymous namespace)::upsample_nearest2d>, at::Tensor, c10::guts::typelist::typelist<c10::DispatchKeySet, at::Tensor const&, c10::ArrayRefc10::SymInt---Type to continue, or q to quit---quit

yuanhs1996 avatar Mar 11 '24 03:03 yuanhs1996