|
|
发表于 2026-5-19 13:59:16
|
显示全部楼层
4070 8G显存测试跑YOLOWorld报错
[offline] GPU runtime initialization may take a while on first use. If this is the first offline run after installation or a driver/model update, the window can stay quiet for 1-3 minutes while CUDA/ONNX Runtime caches are built.
[offline] run: E:\VR_Video_Passthrough_Server\pt_core.exe tool offline_alpha_passthrough E:\VR_Video_Passthrough_Server\videos\nkwmr-018_2_8k.mp4 --engine matanyone2_onnx --out E:\VR_Video_Passthrough_Server\videos\nkwmr-018_2_8k_matanyone2m_S000000_1M_FISHEYE_alpha.mp4 --audio copy --duration 60.0 --alpha-stride 1 --matanyone2-size 512 --matanyone2-batch 1 --no-sbs-batch --matanyone2-prepass yoloworld_efficientsam
[offline] gpu warmup: state=cold reason=marker_missing eta=45s gpu=NVIDIA GeForce RTX 4070 Laptop GPU cc=8.9 ort=1.25.1
[offline] gpu warmup: first offline run can appear idle while CUDA/CuPy/ONNX Runtime load libraries and build caches. Please wait for the first [matting] or [offline-*] progress line.
[offline] env: decoder=simple batch=1 buffer=2 preset=P4 model=
[offline-alpha] input codec=hevc profile=Main 10 pix_fmt=yuv420p10le bit_depth=10 size=8192x4096
[offline-alpha] cuda gpu_id=0 name=NVIDIA GeForce RTX 4070 Laptop GPU cc=8.9 vram=8.0GB free=6.9GB driver=13020 runtime=12090
[offline-alpha] decoder=simple batch=1 buffer=2 owned_copy=False backend_reason=experimental SDR Main10/P016 route enabled
[offline] YOLO-World+EfficientSAM prepass subprocess=E:\VR_Video_Passthrough_Server\pt_core.exe tool offline_alpha_passthrough E:\VR_Video_Passthrough_Server\videos\nkwmr-018_2_8k.mp4 --engine matanyone2_onnx --model E:\VR_Video_Passthrough_Server\models\matanyone2_onnx_512_bs1 --matanyone2-size 512 --matanyone2-batch 1 --matanyone2-prepass yoloworld_efficientsam --ywes-model-dir E:\VR_Video_Passthrough_Server\models\yoloworld_efficientsam --ywes-txt-feats E:\VR_Video_Passthrough_Server\models\person_txt_feats.npy --ywes-provider cuda --ywes-yolo-model yolov8l-worldv2.onnx --ywes-sam-model efficientsam_s.onnx --ywes-yolo-size 1280 --ywes-score-threshold 0.03 --ywes-nms-threshold 0.6 --ywes-box-expand 0.08 --ywes-top-k 1 --ywes-scan hybrid --ywes-scan-interval-sec 1.0 --ywes-active-min-area-ratio 0.001 --ywes-gap-fill-frames 300 --matanyone2-segment-frames 300 --matanyone2-min-segment-sec 3.0 --frames 3596 --fps 59.94005994005994 --ywes-prepass-out E:\VR_Video_Passthrough_Server\debug_output\_ywes_prepass\ywes_prepass_1779170120049_2762912356768.npz
[offline-alpha] input codec=hevc profile=Main 10 pix_fmt=yuv420p10le bit_depth=10 size=8192x4096
[offline-alpha] cuda gpu_id=0 name=NVIDIA GeForce RTX 4070 Laptop GPU cc=8.9 vram=8.0GB free=6.9GB driver=13020 runtime=12090
[offline-alpha] decoder=simple batch=1 buffer=2 owned_copy=False backend_reason=experimental SDR Main10/P016 route enabled
2026-05-19 13:56:37.6899766 [W nnxruntime:, transformer_memcpy.cc:111 onnxruntime::MemcpyTransformer::ApplyImpl] 4 Memcpy nodes are added to the graph main_graph for CUDAExecutionProvider. It might have negative impact on performance (including unable to run CUDA graph). Set session_options.log_severity_level=1 to see the detail logs before this message.
2026-05-19 13:56:37.6908204 [W nnxruntime:, transformer_memcpy.cc:111 onnxruntime::MemcpyTransformer::ApplyImpl] 1 Memcpy nodes are added to the graph sub_graph for CUDAExecutionProvider. It might have negative impact on performance (including unable to run CUDA graph). Set session_options.log_severity_level=1 to see the detail logs before this message.
2026-05-19 13:56:37.6914623 [W nnxruntime:, transformer_memcpy.cc:111 onnxruntime::MemcpyTransformer::ApplyImpl] 2 Memcpy nodes are added to the graph sub_graph2 for CUDAExecutionProvider. It might have negative impact on performance (including unable to run CUDA graph). Set session_options.log_severity_level=1 to see the detail logs before this message.
2026-05-19 13:56:38.0443235 [W nnxruntime efault, scatter_nd.h:53 onnxruntime::cuda::ScatterNDWithAtomicReduction::ScatterNDWithAtomicReduction] ScatterND with reduction=='none' only guarantees to be correct if indices are not duplicated.
2026-05-19 13:56:38.0447332 [W nnxruntime efault, scatter_nd.h:53 onnxruntime::cuda::ScatterNDWithAtomicReduction::ScatterNDWithAtomicReduction] ScatterND with reduction=='none' only guarantees to be correct if indices are not duplicated.
[offline] YOLO-World+EfficientSAM loaded dir=E:\VR_Video_Passthrough_Server\models\yoloworld_efficientsam yolo=yolov8l-worldv2.onnx sam=efficientsam_s.onnx provider=['CUDAExecutionProvider', 'CPUExecutionProvider'] yolo_size=1280 score=0.03 nms=0.6 expand=0.08 top_k=1 txt_classes=5
[offline] YOLO-World+EfficientSAM prepass samples=60 scan=hybrid max_segment_frames=300
Traceback (most recent call last):
File "main.py", line 350, in <module>
File "main.py", line 132, in main
File "main.py", line 67, in _run_legacy_tool
File "tools\offline_alpha_passthrough.py", line 1558, in main
File "offline\yoloworld_efficientsam.py", line 475, in precompute_segment_masks
cv2.error: OpenCV(4.13.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:94: error: (-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper<struct cv::impl::`anonymous namespace'::Set<1,-1,-1>,struct cv::impl::A0xabc0dcb0::Set<3,4,-1>,struct cv::impl::A0xabc0dcb0::Set<0,-1,-1>,1>::CvtHelper(const class cv::_InputArray &,const class cv::_OutputArray &,int)'
> Unsupported depth of input image:
> 'VDepth::contains(depth)'
> where
> 'depth' is 2 (CV_16U)
[PYI-45312:ERROR] Failed to execute script 'main' due to unhandled exception!
Traceback (most recent call last):
File "main.py", line 350, in <module>
File "main.py", line 132, in main
File "main.py", line 67, in _run_legacy_tool
File "tools\offline_alpha_passthrough.py", line 1558, in main
File "offline\yoloworld_efficientsam.py", line 442, in precompute_segment_masks
File "offline\yoloworld_efficientsam.py", line 617, in precompute_segment_masks_subprocess
File "subprocess.py", line 571, in run
subprocess.CalledProcessError: Command '['E:\\VR_Video_Passthrough_Server\\pt_core.exe', 'tool', 'offline_alpha_passthrough', 'E:\\VR_Video_Passthrough_Server\\videos\\nkwmr-018_2_8k.mp4', '--engine', 'matanyone2_onnx', '--model', 'E:\\VR_Video_Passthrough_Server\\models\\matanyone2_onnx_512_bs1', '--matanyone2-size', '512', '--matanyone2-batch', '1', '--matanyone2-prepass', 'yoloworld_efficientsam', '--ywes-model-dir', 'E:\\VR_Video_Passthrough_Server\\models\\yoloworld_efficientsam', '--ywes-txt-feats', 'E:\\VR_Video_Passthrough_Server\\models\\person_txt_feats.npy', '--ywes-provider', 'cuda', '--ywes-yolo-model', 'yolov8l-worldv2.onnx', '--ywes-sam-model', 'efficientsam_s.onnx', '--ywes-yolo-size', '1280', '--ywes-score-threshold', '0.03', '--ywes-nms-threshold', '0.6', '--ywes-box-expand', '0.08', '--ywes-top-k', '1', '--ywes-scan', 'hybrid', '--ywes-scan-interval-sec', '1.0', '--ywes-active-min-area-ratio', '0.001', '--ywes-gap-fill-frames', '300', '--matanyone2-segment-frames', '300', '--matanyone2-min-segment-sec', '3.0', '--frames', '3596', '--fps', '59.94005994005994', '--ywes-prepass-out', 'E:\\VR_Video_Passthrough_Server\\debug_output\\_ywes_prepass\\ywes_prepass_1779170120049_2762912356768.npz']' returned non-zero exit status 1.
[PYI-39608:ERROR] Failed to execute script 'main' due to unhandled exception!
|
|