Trellis image to mesh 'utils3d.torch' has no attribute 'perspective_from_fov_xy'
2025-12-02T14:06:25.596647 - !!! Exception during processing !!! module 'utils3d.torch' has no attribute 'perspective_from_fov_xy' 2025-12-02T14:06:25.598647 - Traceback (most recent call last): File "D:\dev\comfy3dStandalone\execution.py", line 510, in execute output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\execution.py", line 324, in get_output_data return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\execution.py", line 298, in _async_map_node_over_list await process_inputs(input_dict, i) File "D:\dev\comfy3dStandalone\execution.py", line 286, in process_inputs result = f(**inputs) ^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\venv\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 4173, in run_model vertices, faces, uvs, texture = postprocessing_utils.finalize_mesh( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TRELLIS\trellis\utils\postprocessing_utils.py", line 436, in finalize_mesh vertices, faces = postprocess_mesh( ^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TRELLIS\trellis\utils\postprocessing_utils.py", line 240, in postprocess_mesh vertices, faces = _fill_holes( ^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\venv\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\comfy3dStandalone\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\TRELLIS\trellis\utils\postprocessing_utils.py", line 54, in _fill_holes projection = utils3d.torch.perspective_from_fov_xy(fov, fov, 1, 3) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'utils3d.torch' has no attribute 'perspective_from_fov_xy'
setup: Windows 11 Python 3.12 Torchvision version: 0.22.0+cu128
Run the following command to install a fixed version of utils3d. The commit ID at the end must be exactly this string:
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
@werksone confirm
pip install --force-reinstall --no-cache-dir --no-deps \
"utils3d @ git+https://github.com/EasternJournalist/utils3d.git@e87d195da7270f575d9680d884d6aad2588864aa"
will fix this version in requirements.txt, thanks
p.s. If you get an OOM error with Trellis, try reinstalling the rasterizer:
pip install --no-build-isolation "git+https://github.com/ashawkey/diff-gaussian-rasterization.git"
p.p.s. The open-source Trellis version currently performs noticeably worse than Hunyuan2 Turbo and Hunyuan 2.1.
Thanks @JiSenHua , @DenisKochetov this has fixed it.
as for the quality, it may be worse for some things but I am testing a huge array of assets and want to see which models perform the best in different situations.