|
|
发表于 2026-5-27 12:55:25
|
显示全部楼层
这是M2 慢速SAM3 P4 开了加速跑的15秒居然现在又可以了,但是速度依然和不开没有区别,离线全部会卡在[offline] MatAnyone2 segment reset at frame=0 src_idx=0 segment_start=0这里不动,关掉加速则可以,后边的不发了太长字节限制了
[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] MatAnyone2 requires an NVIDIA GPU with at least 16GB VRAM.
[offline] run: D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\pt_core.exe tool offline_alpha_passthrough D:\Downloads\59306_3840p.mp4 --engine matanyone2_onnx --out D:\59306_3840p_matanyone2_S000000_15S_LR_180_FISHEYE_F180_alpha.mp4 --audio copy --duration 15.0 --bitrate source --alpha-stride 1 --matanyone2-size 512 --matanyone2-batch 1 --no-sbs-batch --sam3-prompt person --preset P4 --cq -1
[offline] gpu warmup: state=cold reason=marker_missing eta=45s gpu=NVIDIA GeForce RTX 4090 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= providers=TensorrtExecutionProvider,CUDAExecutionProvider,CPUExecutionProvider offline_rvm_trt_enable=0 offline_matanyone2_trt_enable=1 offline_rvm_trt=0 offline_matanyone2_trt=1
[offline-alpha] input codec=av1 profile=Main pix_fmt=yuv420p bit_depth=8 size=7680x3840
[offline-alpha] cuda gpu_id=0 name=NVIDIA GeForce RTX 4090 cc=8.9 vram=24.0GB free=22.5GB driver=13000 runtime=12090
[offline-alpha] decoder=simple batch=1 buffer=2 owned_copy=False backend_reason=8K+ output should use HEVC; H.264 NVENC failed in probe
[offline] SAM3 prepass subprocess=D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\pt_core.exe tool offline_alpha_passthrough D:\Downloads\59306_3840p.mp4 --engine matanyone2_onnx --model D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\models\matanyone2_onnx_512_bs1 --matanyone2-size 512 --matanyone2-batch 1 --sam3-model-dir D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\models\sam3_onnx --sam3-prompt person --sam3-score-threshold 0.5 --sam3-min-area-ratio 0.0005 --sam3-max-area-ratio 0.95 --sam3-top-k 0 --sam3-scan hybrid --sam3-scan-interval-sec 1.0 --sam3-active-min-area-ratio 0.001 --sam3-provider cuda --sam3-decoder-provider cuda --sam3-cuda-memory-limit-mb 8192 --sam3-decoder-cuda-memory-limit-mb 4096 --sam3-min-vram-gb 15.5 --sam3-release-interval 0 --no-sam3-low-memory --sam3-low-memory-batch 1 --sam3-log-vram --matanyone2-segment-frames 300 --matanyone2-min-segment-sec 3.0 --sam3-gap-fill-frames 300 --frames 900 --fps 60.0 --sam3-prepass-out D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\debug_output\_sam3_prepass\sam3_prepass_1779857195596_2395746612960.npz
[offline-alpha] input codec=av1 profile=Main pix_fmt=yuv420p bit_depth=8 size=7680x3840
[offline-alpha] cuda gpu_id=0 name=NVIDIA GeForce RTX 4090 cc=8.9 vram=24.0GB free=22.5GB driver=13000 runtime=12090
[offline-alpha] decoder=simple batch=1 buffer=2 owned_copy=False backend_reason=8K+ output should use HEVC; H.264 NVENC failed in probe
[offline] SAM3 prepass prompt='person' samples=18 scan=hybrid max_segment_frames=300 low_memory=False encoder=[CUDAExecutionProvider(arena_cap=8192MiB), CPUExecutionProvider] decoder=[CUDAExecutionProvider(arena_cap=4096MiB), CPUExecutionProvider]
[0;93m2026-05-27 12:46:43.7317864 [W nnxruntime:, transformer_memcpy.cc:111 onnxruntime::MemcpyTransformer::ApplyImpl] 2 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.
[0;93m2026-05-27 12:46:43.9107090 [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] SAM3 prepass 1/18 frame=0 src_idx=0 ms=5629.7 active=True objects=1 L=[0] area=0.0145 R=[0] area=0.0144 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 2/18 frame=60 src_idx=60 ms=3936.2 active=True objects=2 L=[0, 1] area=0.0161 R=[0, 1] area=0.0159 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 3/18 frame=120 src_idx=120 ms=3943.4 active=True objects=2 L=[0, 1] area=0.0163 R=[0, 1] area=0.0163 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 4/18 frame=180 src_idx=180 ms=3949.3 active=True objects=2 L=[0, 1] area=0.0145 R=[0, 1] area=0.0138 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 5/18 frame=240 src_idx=240 ms=3945.8 active=True objects=2 L=[0, 1] area=0.0190 R=[0, 1] area=0.0186 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 6/18 frame=250 src_idx=250 ms=3946.4 active=True objects=2 L=[0, 1] area=0.0189 R=[0, 1] area=0.0184 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 7/18 frame=300 src_idx=300 ms=3935.5 active=True objects=2 L=[0, 1] area=0.0177 R=[0, 1] area=0.0175 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 8/18 frame=360 src_idx=360 ms=3939.8 active=True objects=2 L=[0, 1] area=0.0164 R=[0] area=0.0152 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 9/18 frame=420 src_idx=420 ms=3941.6 active=True objects=2 L=[0, 1] area=0.0150 R=[0, 1] area=0.0145 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 10/18 frame=480 src_idx=480 ms=3938.2 active=True objects=2 L=[0, 1] area=0.0206 R=[0, 1] area=0.0203 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 11/18 frame=500 src_idx=500 ms=3948.1 active=True objects=2 L=[0, 1] area=0.0240 R=[0, 1] area=0.0231 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 12/18 frame=540 src_idx=540 ms=3942.0 active=True objects=2 L=[0, 1] area=0.0265 R=[0, 1] area=0.0264 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 13/18 frame=600 src_idx=600 ms=3948.7 active=True objects=2 L=[0, 1] area=0.0241 R=[0, 1] area=0.0236 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 14/18 frame=660 src_idx=660 ms=3946.8 active=True objects=2 L=[0, 1] area=0.0248 R=[0] area=0.0234 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 15/18 frame=720 src_idx=720 ms=3945.2 active=True objects=2 L=[0, 1] area=0.0208 R=[0, 1] area=0.0207 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 16/18 frame=750 src_idx=750 ms=3945.1 active=True objects=2 L=[0, 1] area=0.0211 R=[0] area=0.0194 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 17/18 frame=780 src_idx=780 ms=3950.2 active=True objects=2 L=[0, 1] area=0.0231 R=[0, 1] area=0.0226 stereo=paired gpu=23968/24564MiB
[offline] SAM3 prepass 18/18 frame=840 src_idx=840 ms=3961.8 active=True objects=2 L=[0, 1] area=0.0233 R=[0, 1] area=0.0231 stereo=paired gpu=23968/24564MiB
[offline] MatAnyone2 segment plan starts=[0, 60, 240, 420, 600, 780] active=[0, 60, 240, 420, 600, 780]
[offline-sam3] child process exited rc=0
[matting] CuPy 14.0.1 detected, GPU composite enabled.
[matting] options: input_size=1024 square=False split_sbs=True sbs_batch=False alpha_stride=1 alpha_mode=reuse alpha_cutoff=0.0 alpha_hard_edge=False alpha_contrast=1.0
[offline-alpha] MatAnyone2 TensorRT enabled model=matanyone2_step_update.onnx cache=D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\runtime_cache\trt_engines\matanyone2_onnx_512_bs1
[matting] utility mode: ONNX matting model not loaded
[offline] MatAnyone2 ONNX loaded dir=D:\BaiduNetdiskDownload\VR_Video_Passthrough_Server\models\matanyone2_onnx_512_bs1 input=512x512 sbs=per-eye bootstrap=sam3 sam3_prompt='person' bootstrap_erode=1 bootstrap_dilate=0 bootstrap_soft=False segment_frames=300 alpha_stride=1 batch2=False dtype=float32 fused_update=False step_update=True providers={'matanyone2_image_key.onnx': ['CUDAExecutionProvider', 'CPUExecutionProvider'], 'matanyone2_mask_memory.onnx': ['CUDAExecutionProvider', 'CPUExecutionProvider'], 'matanyone2_first_frame_refine.onnx': ['CUDAExecutionProvider', 'CPUExecutionProvider'], 'matanyone2_propagate.onnx': ['CUDAExecutionProvider', 'CPUExecutionProvider'], 'matanyone2_step_update.onnx': ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']}
[offline-alpha] src=D:\Downloads\59306_3840p.mp4 out=D:\59306_3840p_matanyone2_S000000_15S_LR_180_FISHEYE_F180_alpha.mp4 engine=matanyone2_onnx 7680x3840 output=7680x3840 source_fps=60.000000 output_fps=60.000000 target=900 audio=copy bitrate=23466599 maxbitrate=28159918 vbvbufsize=46933198 rc=vbr cq=-1 preset=P4
[offline-alpha] projection=sbs half-equirect 180 -> fisheye sbs radius_scale=1
[offline-alpha] packing=DeoVR-style red-channel alpha blocks scale=0.4 layout=alpha-packer-6block
[offline] mux=.\ffmpeg.EXE -hide_banner -loglevel warning -y -fflags +genpts -f hevc -framerate 60.000000 -i - -map 0:v:0 -c:v copy -an -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -movflags +faststart -f mp4 D:\59306_3840p_matanyone2_S000000_15S_LR_180_FISHEYE_F180_alpha._video_only.mp4
[offline] MatAnyone2 segment reset at frame=0 src_idx=0 segment_start=0
[offline] 30/900 fps= 23.18 dec= 12.87ms mat= 28.50ms sync= 0.00ms dec+mat+sync= 41.37ms enc= 0.27ms mux= 1.62ms
[offline] 60/900 fps= 28.92 dec= 13.46ms mat= 19.87ms sync= 0.00ms dec+mat+sync= 33.32ms enc= 0.21ms mux= 1.06ms
[offline] MatAnyone2 segment reset at frame=60 src_idx=60 segment_start=60
[offline] 90/900 fps= 31.47 dec= 13.46ms mat= 17.40ms sync= 0.00ms dec+mat+sync= 30.86ms enc= 0.19ms mux= 0.71ms
[offline] 120/900 fps= 32.94 dec= 13.75ms mat= 15.86ms sync= 0.00ms dec+mat+sync= 29.61ms enc= 0.18ms
|
|