You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python gen_wts.py -w yolo11n.pt -o yolo11n.wts -t detect Generating .wts for detect model
gen_wts.py:41: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
model = torch.load(pt_file, map_location=device)['model'].float() # load to FP32
c++ 转换engine
[11/05/2024-00:48:35] [W] [TRT] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage and speed up TensorRT initialization. See "Lazy Loading" section of CUDA documentation https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lazy-loading
Loading weights: yolo11n.wts
Your platform support int8: true
Building engine, please wait for a while...
reading calib cache: int8calib.table
[11/05/2024-00:48:42] [W] [TRT] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage and speed up TensorRT initialization. See "Lazy Loading" section of CUDA documentation https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lazy-loading
[11/05/2024-00:48:42] [E] [TRT] 1: Unexpected exception invalid unordered_map<K, T> key
Build engine successfully!
Assertion failed: serialized_engine, file tensorrtx-master\yolo11\yolo11_det.cpp, line 24
The text was updated successfully, but these errors were encountered:
Env
Your problem
python gen_wts.py -w yolo11n.pt -o yolo11n.wts -t detect Generating .wts for detect model
gen_wts.py:41: FutureWarning: You are using
torch.load
withweights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value forweights_only
will be flipped toTrue
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user viatorch.serialization.add_safe_globals
. We recommend you start settingweights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.model = torch.load(pt_file, map_location=device)['model'].float() # load to FP32
c++ 转换engine
[11/05/2024-00:48:35] [W] [TRT] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage and speed up TensorRT initialization. See "Lazy Loading" section of CUDA documentation https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lazy-loading
Loading weights: yolo11n.wts
Your platform support int8: true
Building engine, please wait for a while...
reading calib cache: int8calib.table
[11/05/2024-00:48:42] [W] [TRT] CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage and speed up TensorRT initialization. See "Lazy Loading" section of CUDA documentation https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lazy-loading
[11/05/2024-00:48:42] [E] [TRT] 1: Unexpected exception invalid unordered_map<K, T> key
Build engine successfully!
Assertion failed: serialized_engine, file tensorrtx-master\yolo11\yolo11_det.cpp, line 24
The text was updated successfully, but these errors were encountered: