使用 PyTorch 2.6 时, ns-viewer: 模型检查点加载失败
/usr/local/lib/python3.10/dist-packages/nerfstudio/field_components/activations.py:32: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.@custom_fwd(cast_inputs=torch.float32) /usr/local/lib/python3.10/dist-packages/nerfstudio/field_components/activations.py:39: FutureWarning: `torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.def backward(ctx, g):[21:56:14] Auto image downscale factor of 1nerfstudio_dataparser.py:484Dataset is overriding orientation method to nonenerfstudio_dataparser.py:232Dataset is overriding orientation method to nonenerfstudio_dataparser.py:232Dataset is overriding orientation method to none/usr/local/lib/python3.10/dist-packages/nerfstudio/field_components/activations.py:32: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.@custom_fwd(cast_inputs=torch.float32) /usr/local/lib/python3.10/dist-packages/nerfstudio/field_components/activations.py:39: FutureWarning: `torch.cuda.amp.custom_bwd(args...)` is deprecated. Please use `torch.amp.custom_bwd(args..., device_type='cuda')` instead.def backward(ctx, g):Started threadsSetting up evaluation dataset...Caching all 3 images.Loading data batch ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00Loading latest checkpoint from load_dirTraceback (most recent call last):File "/usr/local/bin/ns-viewer", line 8, in <module>sys.exit(entrypoint())File "/usr/local/lib/python3.10/dist-packages/nerfstudio/scripts/viewer/run_viewer.py", line 135, in entrypointtyro.cli(tyro.conf.FlagConversionOff[RunViewer]).main()
内容来源: nerfstudio-project/nerfstudio