hi 我训练了一个pytorch=1.7.0版本的模型,准备转换,报版本错误,请问有最新pytorch的版本出来吗?
I Start importing pytorch…
./model/nanodet.pth ********************
Traceback (most recent call last):
File “convertpytorch.py”, line 51, in
File “convertpytorch.py”, line 41, in main
File “acuitylib/vsi_nn.py”, line 162, in load_pytorch
File “acuitylib/app/importer/import_pytorch.py”, line 92, in run
File “acuitylib/converter/convert_pytorch.py”, line 515, in init
File “torch/jit/init.py”, line 162, in load
RuntimeError: version_number <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:131, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 1. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:131)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7f4456969273 in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::init() + 0x1e9a (0x7f44598f800a in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x60 (0x7f44598f9270 in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #3: torch::jit::import_ir_module(std::shared_ptrtorch::jit::script::CompilationUnit, std::string const&, c10::optionalc10::Device, std::unordered_map<std::string, std::string, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, std::string> > >&) + 0x38 (0x7f445a9d8088 in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #4: + 0x4d6abc (0x7f44a0cd9abc in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch_python.so)
frame #5: + 0x1d3f04 (0x7f44a09d6f04 in /home/tango/work/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch_python.so)
I Start importing pytorch…
model_final.pth ********************
Traceback (most recent call last):
File “convertpytorch.py”, line 51, in
File “convertpytorch.py”, line 41, in main
File “acuitylib/vsi_nn.py”, line 162, in load_pytorch
File “acuitylib/app/importer/import_pytorch.py”, line 92, in run
File “acuitylib/converter/convert_pytorch.py”, line 515, in init
File “torch/jit/init.py”, line 162, in load
RuntimeError: version_number <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:131, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 1. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:131)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7ff723c2d273 in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::init() + 0x1e9a (0x7ff726bbc00a in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x60 (0x7ff726bbd270 in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #3: torch::jit::import_ir_module(std::shared_ptr < torch::jit::script::CompilationUnit>, std::string const&, c10::optional< c10::Device>, std::unordered_map< std::string, std::string, std::hash< std::string>, std::equal_to< std::string>, std::allocator<std::pair<std::string const, std::string> > >&) + 0x38 (0x7ff727c9c088 in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch.so)
frame #4: + 0x4d6abc (0x7ff76df9dabc in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch_python.so)
frame #5: + 0x1d3f04 (0x7ff76dc9af04 in /media/psf/Home/Documents/OpenSource/VIM/aml_npu_sdk_6.4.3/acuity-toolkit/bin/acuitylib/libtorch_python.so)