Issue with Gausian decode
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
here the main issue, see log and step to reproduce
# ComfyUI Error Report
## Error Details
- **Node ID:** 37
- **Node Type:** SAM3DGaussianDecode
- **Exception Type:** RuntimeError
- **Exception Message:** SAM3D Gaussian decode failed: Inference worker error: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
### Actual Behavior
finish the node and move on to the final render.
### Steps to Reproduce
open the demo scene texture_baking
run
error
### Debug Logs
```powershell
# ComfyUI Error Report
## Error Details
- **Node ID:** 37
- **Node Type:** SAM3DGaussianDecode
- **Exception Type:** RuntimeError
- **Exception Message:** SAM3D Gaussian decode failed: Inference worker error: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
Traceback:
Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py", line 995, in run_inference
output = model.run(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 369, in run
ss_input_dict = self.preprocess_image(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 191, in preprocess_image
preprocessor_return_dict = preprocessor._process_image_mask_pointmap_mess(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 81, in _process_image_mask_pointmap_mess
pointmap_for_crop, pointmap_scale, pointmap_shift = self._normalize_pointmap(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 73, in _normalize_pointmap
return pointmap_normalizer.normalize(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 597, in normalize
_scale, _shift = self._compute_scale_and_shift(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 550, in _compute_scale_and_shift
if mask_points.isfinite().max() == 0:
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\_env\lib\site-packages\torch\utils\_device.py", line 79, in __torch_function__
return func(*args, **kwargs)
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
## Stack Trace
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 515, 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, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 329, 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, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 303, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 291, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\nodes\gaussian_decode.py", line 101, in decode_gaussian
raise RuntimeError(f"SAM3D Gaussian decode failed: {e}") from e
## System Information
- **ComfyUI Version:** 0.3.76
- **Arguments:** ComfyUI\main.py --cuda-device 0 --listen 0.0.0.0 --port 8188 --enable-cors-header --user-directory V:\_AI_directory\_UserData --output-directory V:\_AI_output --input-directory V:\_AI_directory\input
- **OS:** win32
- **Python Version:** 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.9.1+cu126
## Devices
- **Name:** cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 12884377600
- **VRAM Free:** 11791237120
- **Torch VRAM Total:** 0
- **Torch VRAM Free:** 0
## Logs
2025-12-10T10:58:48.242867 -
2025-12-10T10:58:50.256774 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:50.257772 -
2025-12-10T10:58:50.262773 - got prompt
2025-12-10T10:58:50.317174 - Failed to validate prompt for output 1586:2011:
2025-12-10T10:58:50.318176 - * LoadImage 1587:
2025-12-10T10:58:50.318176 - - Custom validation failed for node: image - Invalid image file: image (6).png
2025-12-10T10:58:50.319174 - Output will be ignored
2025-12-10T10:58:50.319174 - Failed to validate prompt for output 1701:
2025-12-10T10:58:50.320174 - Output will be ignored
2025-12-10T10:58:50.320174 - Failed to validate prompt for output 1591:
2025-12-10T10:58:50.320174 - Output will be ignored
2025-12-10T10:58:50.321173 - Failed to validate prompt for output 1593:
2025-12-10T10:58:50.321173 - Output will be ignored
2025-12-10T10:58:50.322175 - Failed to validate prompt for output 1586:1558:
2025-12-10T10:58:50.322175 - Output will be ignored
2025-12-10T10:58:50.322175 - Failed to validate prompt for output 1567:
2025-12-10T10:58:50.323174 - Output will be ignored
2025-12-10T10:58:50.323174 - Failed to validate prompt for output 1586:2012:
2025-12-10T10:58:50.323174 - Output will be ignored
2025-12-10T10:58:50.324174 - Failed to validate prompt for output 1586:1550:
2025-12-10T10:58:50.324174 - Output will be ignored
2025-12-10T10:58:50.325681 - Failed to validate prompt for output 1592:
2025-12-10T10:58:50.325681 - Output will be ignored
2025-12-10T10:58:50.326687 - Failed to validate prompt for output 1568:
2025-12-10T10:58:50.326687 - Output will be ignored
2025-12-10T10:58:50.327688 - Failed to validate prompt for output 1586:1549:
2025-12-10T10:58:50.327688 - Output will be ignored
2025-12-10T10:58:50.327688 - Failed to validate prompt for output 1584:
2025-12-10T10:58:50.329192 - Output will be ignored
2025-12-10T10:58:50.329192 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2025-12-10T10:58:50.331197 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:50.331197 -
2025-12-10T10:58:50.332199 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:50.333524 -
2025-12-10T10:58:50.335520 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:50.335520 -
2025-12-10T10:58:50.336522 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:50.336522 -
2025-12-10T10:58:51.400686 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:51.401685 -
2025-12-10T10:58:51.402687 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:51.403685 -
2025-12-10T10:58:51.404689 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:51.404689 -
2025-12-10T10:58:51.405946 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:51.406946 -
2025-12-10T10:58:51.702955 - [Distributed] Prepared queue for job exec_1765335530381_1586:20142025-12-10T10:58:51.703955 -
2025-12-10T10:58:51.706471 - [Distributed] Prepared queue for job exec_1765335530381_1586:20192025-12-10T10:58:51.706471 -
2025-12-10T10:58:51.785049 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:51.786048 -
2025-12-10T10:58:52.846517 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:52.846517 -
2025-12-10T10:58:53.428081 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:53.429079 -
2025-12-10T10:58:53.430079 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:53.431584 -
2025-12-10T10:58:53.447147 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:53.447147 -
2025-12-10T10:58:53.450670 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:53.450670 -
2025-12-10T10:58:54.865572 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:54.866571 -
2025-12-10T10:58:54.870589 - got prompt
2025-12-10T10:58:54.899640 - Failed to validate prompt for output 1586:2011:
2025-12-10T10:58:54.900144 - * LoadImage 1587:
2025-12-10T10:58:54.900660 - - Custom validation failed for node: image - Invalid image file: image (6).png
2025-12-10T10:58:54.901665 - Output will be ignored
2025-12-10T10:58:54.901665 - Failed to validate prompt for output 1701:
2025-12-10T10:58:54.902666 - Output will be ignored
2025-12-10T10:58:54.902666 - Failed to validate prompt for output 1591:
2025-12-10T10:58:54.904169 - Output will be ignored
2025-12-10T10:58:54.904169 - Failed to validate prompt for output 1593:
2025-12-10T10:58:54.905174 - Output will be ignored
2025-12-10T10:58:54.905174 - Failed to validate prompt for output 1586:1558:
2025-12-10T10:58:54.906176 - Output will be ignored
2025-12-10T10:58:54.906176 - Failed to validate prompt for output 1567:
2025-12-10T10:58:54.907174 - Output will be ignored
2025-12-10T10:58:56.821729 - Failed to validate prompt for output 1586:2012:
2025-12-10T10:58:56.822729 - Output will be ignored
2025-12-10T10:58:56.822729 - Failed to validate prompt for output 1586:1550:
2025-12-10T10:58:56.822729 - Output will be ignored
2025-12-10T10:58:56.823730 - Failed to validate prompt for output 1592:
2025-12-10T10:58:56.823730 - Output will be ignored
2025-12-10T10:58:56.824752 - Failed to validate prompt for output 1568:
2025-12-10T10:58:56.824752 - Output will be ignored
2025-12-10T10:58:56.825753 - Failed to validate prompt for output 1586:1549:
2025-12-10T10:58:56.826257 - Output will be ignored
2025-12-10T10:58:56.827263 - Failed to validate prompt for output 1584:
2025-12-10T10:58:56.827263 - Output will be ignored
2025-12-10T10:58:56.834862 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:56.835862 -
2025-12-10T10:58:56.838373 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:56.838373 -
2025-12-10T10:58:56.840381 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:56.841385 -
2025-12-10T10:58:56.843385 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:56.843385 -
2025-12-10T10:58:56.855894 - WARNING: [Errno 2] No such file or directory: 'V:\\_AI_directory\\input\\image (6).png'
2025-12-10T10:58:57.879013 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:57.880012 -
2025-12-10T10:58:57.882012 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:57.882012 -
2025-12-10T10:58:57.884532 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:57.885533 -
2025-12-10T10:58:57.887533 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:57.888533 -
2025-12-10T10:58:59.912373 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:59.912373 -
2025-12-10T10:58:59.915377 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:59.915377 -
2025-12-10T10:58:59.917377 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:59.918486 -
2025-12-10T10:58:59.920488 - [Distributed] API Error: File not found: image (6).png2025-12-10T10:58:59.920488 -
2025-12-10T10:59:02.529311 - Deadline Submission: Node execution triggered. Auto-detect: True2025-12-10T10:59:02.530310 -
2025-12-10T10:59:02.531311 - Deadline Submission: Auto-detect ON. Checking for workflow...2025-12-10T10:59:02.531311 -
2025-12-10T10:59:02.531816 - Deadline Submission: Found workflow from ComfyUI's PROMPT parameter injection2025-12-10T10:59:02.531816 -
2025-12-10T10:59:02.532823 - Deadline Submission: Setting node 1588 to bypassed2025-12-10T10:59:02.532823 -
2025-12-10T10:59:02.532823 - Deadline Submission: Warning - No checkpoint loader found in workflow.2025-12-10T10:59:02.532823 -
2025-12-10T10:59:02.539335 - Deadline Submission: Successfully saved workflow for submission to: c:\temp\comfyui_workflow_for_deadline_39bd174b-191b-4cd6-9f2c-6307750d656f.json2025-12-10T10:59:02.540334 -
2025-12-10T10:59:05.108541 - Deadline Submission: Successfully submitted job. JobID: 6938e1f8562eba8442d33d912025-12-10T10:59:05.108541 -
2025-12-10T10:59:05.109542 - Deadline Submission: Successfully interrupted via nodes module2025-12-10T10:59:05.110542 -
2025-12-10T10:59:05.112048 - Prompt executed in 8.28 seconds
2025-12-10T10:59:12.281220 - [Distributed] Prepared queue for job exec_1765335551078_1586:20142025-12-10T10:59:12.281220 -
2025-12-10T10:59:12.283217 - [Distributed] Prepared queue for job exec_1765335551078_1586:20192025-12-10T10:59:12.283217 -
2025-12-10T10:59:12.323492 - got prompt
2025-12-10T10:59:17.842929 - Deadline Submission: Node execution triggered. Auto-detect: True2025-12-10T10:59:17.843930 -
2025-12-10T10:59:17.843930 - Deadline Submission: Auto-detect ON. Checking for workflow...2025-12-10T10:59:17.844930 -
2025-12-10T10:59:17.844930 - Deadline Submission: Found workflow from ComfyUI's PROMPT parameter injection2025-12-10T10:59:17.845930 -
2025-12-10T10:59:17.845930 - Deadline Submission: Setting node 1588 to bypassed2025-12-10T10:59:17.845930 -
2025-12-10T10:59:17.846929 - Deadline Submission: Warning - No checkpoint loader found in workflow.2025-12-10T10:59:17.846929 -
2025-12-10T10:59:17.852433 - Deadline Submission: Successfully saved workflow for submission to: c:\temp\comfyui_workflow_for_deadline_e4fd6a16-da16-4d4b-be32-638404f5cf7f.json2025-12-10T10:59:17.852433 -
2025-12-10T10:59:19.743995 - Deadline Submission: Successfully submitted job. JobID: 6938e207283096d40476be5f2025-12-10T10:59:19.744996 -
2025-12-10T10:59:19.744996 - Deadline Submission: Successfully interrupted via nodes module2025-12-10T10:59:19.745996 -
2025-12-10T10:59:19.745996 - Processing interrupted
2025-12-10T10:59:19.747997 - Prompt executed in 5.60 seconds
2025-12-10T10:59:27.930163 - got prompt
2025-12-10T10:59:28.089703 - [SAM3DObjects] Loading SAM3D model...2025-12-10T10:59:28.090702 -
2025-12-10T10:59:28.091702 - [SAM3DObjects] WARNING: GPU has 12.0 GB VRAM. SAM3D officially requires 32GB+ VRAM. May run out of memory!2025-12-10T10:59:28.091702 -
2025-12-10T10:59:28.093703 - [SAM3DObjects] Model loaded successfully2025-12-10T10:59:28.094703 -
2025-12-10T10:59:28.095703 - [SAM3DObjects] DepthEstimate: Running depth estimation...2025-12-10T10:59:28.096703 -
2025-12-10T10:59:28.200248 - [SAM3DObjects] Starting inference worker...2025-12-10T10:59:28.201279 -
2025-12-10T10:59:28.201803 - [SAM3DObjects] Python: D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\_env\Scripts\python.exe2025-12-10T10:59:28.201803 -
2025-12-10T10:59:28.202320 - [SAM3DObjects] Worker: D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py2025-12-10T10:59:28.202840 -
2025-12-10T10:59:30.119131 - [Worker] SAM3D inference worker started2025-12-10T10:59:30.120128 -
2025-12-10T10:59:30.142661 - [SAM3DObjects] Inference worker started successfully2025-12-10T10:59:30.142661 - [Worker] Ready for requests2025-12-10T10:59:30.143715 -
2025-12-10T10:59:30.143715 -
2025-12-10T10:59:30.143715 - [SAM3DObjects] Sending inference request to isolated worker...2025-12-10T10:59:30.144715 -
2025-12-10T10:59:30.144715 - [SAM3DObjects] Output directory: D:\Comfy\ComfyUI_windows_portable004\ComfyUI\output2025-12-10T10:59:30.144715 -
2025-12-10T10:59:30.166091 - [Worker] Running depth-only mode (MoGe)2025-12-10T10:59:30.167091 -
2025-12-10T10:59:30.459128 - [Worker] Warning: CUDA toolkit not found in venv2025-12-10T10:59:30.460131 -
2025-12-10T10:59:30.460131 - [Worker] JIT compilation may fail for gsplat and other CUDA extensions2025-12-10T10:59:30.461303 -
2025-12-10T11:00:09.362513 - [Worker] Model loaded successfully2025-12-10T11:00:09.362513 -
2025-12-10T11:00:17.571869 - [Worker] Intrinsics: True2025-12-10T11:00:17.572871 -
2025-12-10T11:00:17.607922 - [SAM3DObjects] Depth estimation completed2025-12-10T11:00:17.608921 -
2025-12-10T11:00:18.537002 - [SAM3DObjects] Depth estimation completed: V:\_AI_output\sam3d_inference_5\pointcloud.ply2025-12-10T11:00:18.538002 -
2025-12-10T11:00:18.928575 - [SAM3D Preview] preview() called with file_path='V:\_AI_output\sam3d_inference_5\pointcloud.ply'2025-12-10T11:00:18.929129 -
2025-12-10T11:00:18.931768 - [SAM3DObjects] SparseGen: Generating sparse structure...2025-12-10T11:00:18.933050 -
2025-12-10T11:00:18.936510 - [SAM3DObjects] Sending inference request to isolated worker...2025-12-10T11:00:18.937022 -
2025-12-10T11:00:18.937558 - [SAM3DObjects] Output directory: V:\_AI_output\sam3d_inference_52025-12-10T11:00:18.938084 -
2025-12-10T11:00:18.963457 - [Worker] Loading pointmap from: V:\_AI_output\sam3d_inference_5\pointmap.pt2025-12-10T11:00:18.964455 -
2025-12-10T11:00:18.998234 - [Worker] Running inference (seed=42)2025-12-10T11:00:18.998234 -
2025-12-10T11:00:18.999239 - [Worker] Postprocess: texture_size=1024, simplify=0.95, texture_mode=opt, rendering_engine=nvdiffrast2025-12-10T11:00:19.000244 -
2025-12-10T11:00:19.000244 - [Worker] Image: mode=RGB, size=(540, 360)2025-12-10T11:00:19.001247 -
2025-12-10T11:00:19.001247 - [Worker] Mask: shape=(64, 64), dtype=float32, range=[1.0, 1.0]2025-12-10T11:00:19.002244 -
2025-12-10T11:00:19.002244 - [Worker] Converted mask to uint8: shape=(64, 64), range=[255, 255]2025-12-10T11:00:19.003244 -
2025-12-10T11:00:49.899747 - [Worker] Inference completed2025-12-10T11:00:49.899747 -
2025-12-10T11:00:49.904746 - [Worker] Saving outputs to: V:\_AI_output\sam3d_inference_52025-12-10T11:00:49.904746 -
2025-12-10T11:00:49.971959 - [Worker] Saved sparse structure: V:\_AI_output\sam3d_inference_5\sparse_structure.pt2025-12-10T11:00:49.971959 -
2025-12-10T11:00:55.754899 - [Worker] Pose data: rotation=True, translation=True, scale=True2025-12-10T11:00:55.755903 -
2025-12-10T11:00:56.723093 - [SAM3DObjects] Stage 1 output saved to disk2025-12-10T11:00:56.724094 -
2025-12-10T11:00:56.725096 - [SAM3DObjects] SparseGen completed: V:\_AI_output\sam3d_inference_5\sparse_structure.pt2025-12-10T11:00:56.726094 -
2025-12-10T11:00:56.743100 - [SAM3DObjects] SLATGen: Generating SLAT...2025-12-10T11:00:56.744100 -
2025-12-10T11:00:56.746605 - [SAM3DObjects] Sending inference request to isolated worker...2025-12-10T11:00:56.746605 -
2025-12-10T11:00:56.746605 - [SAM3DObjects] Output directory: V:\_AI_output\sam3d_inference_52025-12-10T11:00:56.748121 -
2025-12-10T11:00:56.772238 - [Worker] Loading Stage 1 output from: V:\_AI_output\sam3d_inference_5\sparse_structure.pt2025-12-10T11:00:56.772238 -
2025-12-10T11:00:56.887803 - [Worker] Running inference (seed=42)2025-12-10T11:00:56.888804 -
2025-12-10T11:00:56.889810 - [Worker] Postprocess: texture_size=1024, simplify=0.95, texture_mode=opt, rendering_engine=nvdiffrast2025-12-10T11:00:56.889810 -
2025-12-10T11:00:56.890810 - [Worker] Image: mode=RGB, size=(540, 360)2025-12-10T11:00:56.891811 -
2025-12-10T11:00:56.891811 - [Worker] Mask: shape=(64, 64), dtype=float32, range=[1.0, 1.0]2025-12-10T11:00:56.892810 -
2025-12-10T11:00:56.893810 - [Worker] Converted mask to uint8: shape=(64, 64), range=[255, 255]2025-12-10T11:00:56.893810 -
2025-12-10T11:03:27.747026 - [Worker] Inference completed2025-12-10T11:03:27.748027 -
2025-12-10T11:03:27.748027 - [Worker] SLAT only - saving to disk2025-12-10T11:03:27.748027 -
2025-12-10T11:03:27.751028 - [Worker] Saving outputs to: V:\_AI_output\sam3d_inference_52025-12-10T11:03:27.751028 -
2025-12-10T11:03:27.775165 - [Worker] Saved SLAT: V:\_AI_output\sam3d_inference_5\slat.pt2025-12-10T11:03:27.776167 -
2025-12-10T11:03:27.790670 - [SAM3DObjects] Stage 2/SLAT output saved to disk2025-12-10T11:03:27.791669 -
2025-12-10T11:03:27.791669 - [SAM3DObjects] SLATGen completed: V:\_AI_output\sam3d_inference_5\slat.pt2025-12-10T11:03:27.791669 -
2025-12-10T11:03:27.792668 - [SAM3DObjects] GaussianDecode: Decoding SLAT to Gaussian...2025-12-10T11:03:27.793670 -
2025-12-10T11:03:27.795669 - [SAM3DObjects] Sending inference request to isolated worker...2025-12-10T11:03:27.795669 -
2025-12-10T11:03:27.795669 - [SAM3DObjects] Output directory: V:\_AI_output\sam3d_inference_52025-12-10T11:03:27.795669 -
2025-12-10T11:03:27.822831 - [Worker] Loading SLAT output from: V:\_AI_output\sam3d_inference_5\slat.pt2025-12-10T11:03:27.823832 -
2025-12-10T11:03:27.878494 - [Worker] Running inference (seed=42)2025-12-10T11:03:27.879497 -
2025-12-10T11:03:27.880499 - [Worker] Postprocess: texture_size=1024, simplify=0.95, texture_mode=opt, rendering_engine=nvdiffrast2025-12-10T11:03:27.880499 -
2025-12-10T11:03:27.881498 - [Worker] Image: mode=RGB, size=(540, 360)2025-12-10T11:03:27.881498 -
2025-12-10T11:03:27.881498 - [Worker] Mask: shape=(64, 64), dtype=float32, range=[0.0, 0.0]2025-12-10T11:03:27.881498 -
2025-12-10T11:03:27.882498 - [Worker] Converted mask to uint8: shape=(64, 64), range=[0, 0]2025-12-10T11:03:27.882498 -
2025-12-10T11:03:34.044629 - [Worker] Error during inference: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.2025-12-10T11:03:34.045133 -
2025-12-10T11:03:34.046137 - Traceback (most recent call last):2025-12-10T11:03:34.047138 -
2025-12-10T11:03:34.047138 - File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py", line 995, in run_inference2025-12-10T11:03:34.048137 -
2025-12-10T11:03:34.049137 - output = model.run(2025-12-10T11:03:34.050137 -
2025-12-10T11:03:34.050137 - !!! Exception during processing !!! SAM3D Gaussian decode failed: Inference worker error: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
Traceback:
Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py", line 995, in run_inference
output = model.run(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 369, in run
ss_input_dict = self.preprocess_image(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 191, in preprocess_image
preprocessor_return_dict = preprocessor._process_image_mask_pointmap_mess(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 81, in _process_image_mask_pointmap_mess
pointmap_for_crop, pointmap_scale, pointmap_shift = self._normalize_pointmap(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 73, in _normalize_pointmap
return pointmap_normalizer.normalize(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 597, in normalize
_scale, _shift = self._compute_scale_and_shift(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 550, in _compute_scale_and_shift
if mask_points.isfinite().max() == 0:
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\_env\lib\site-packages\torch\utils\_device.py", line 79, in __torch_function__
return func(*args, **kwargs)
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
2025-12-10T11:03:34.050137 - File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 369, in run2025-12-10T11:03:34.051137 -
2025-12-10T11:03:34.052138 - ss_input_dict = self.preprocess_image(2025-12-10T11:03:34.052138 -
2025-12-10T11:03:34.053139 - Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\nodes\gaussian_decode.py", line 91, in decode_gaussian
gaussian_output = slat_decoder_gs(
^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\nodes\isolated_model.py", line 106, in __call__
return bridge.run_inference(
^^^^^^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\nodes\subprocess_bridge.py", line 506, in run_inference
raise RuntimeError(
RuntimeError: Inference worker error: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
Traceback:
Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py", line 995, in run_inference
output = model.run(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 369, in run
ss_input_dict = self.preprocess_image(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 191, in preprocess_image
preprocessor_return_dict = preprocessor._process_image_mask_pointmap_mess(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 81, in _process_image_mask_pointmap_mess
pointmap_for_crop, pointmap_scale, pointmap_shift = self._normalize_pointmap(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 73, in _normalize_pointmap
return pointmap_normalizer.normalize(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 597, in normalize
_scale, _shift = self._compute_scale_and_shift(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 550, in _compute_scale_and_shift
if mask_points.isfinite().max() == 0:
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\_env\lib\site-packages\torch\utils\_device.py", line 79, in __torch_function__
return func(*args, **kwargs)
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 515, 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, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 329, 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, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 303, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\execution.py", line 291, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\nodes\gaussian_decode.py", line 101, in decode_gaussian
raise RuntimeError(f"SAM3D Gaussian decode failed: {e}") from e
RuntimeError: SAM3D Gaussian decode failed: Inference worker error: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
Traceback:
Traceback (most recent call last):
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\inference_worker.py", line 995, in run_inference
output = model.run(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 369, in run
ss_input_dict = self.preprocess_image(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 191, in preprocess_image
preprocessor_return_dict = preprocessor._process_image_mask_pointmap_mess(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 81, in _process_image_mask_pointmap_mess
pointmap_for_crop, pointmap_scale, pointmap_shift = self._normalize_pointmap(
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 73, in _normalize_pointmap
return pointmap_normalizer.normalize(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 597, in normalize
_scale, _shift = self._compute_scale_and_shift(pointmap, mask)
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\img_and_mask_transforms.py", line 550, in _compute_scale_and_shift
if mask_points.isfinite().max() == 0:
File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\_env\lib\site-packages\torch\utils\_device.py", line 79, in __torch_function__
return func(*args, **kwargs)
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
2025-12-10T11:03:34.053139 - File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\pipeline\inference_pipeline_pointmap.py", line 191, in preprocess_image2025-12-10T11:03:34.054138 -
2025-12-10T11:03:34.055138 - preprocessor_return_dict = preprocessor._process_image_mask_pointmap_mess(2025-12-10T11:03:34.055138 - Prompt executed in 246.06 seconds
2025-12-10T11:03:34.055138 -
2025-12-10T11:03:34.402524 - File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 81, in _process_image_mask_pointmap_mess2025-12-10T11:03:34.403524 -
2025-12-10T11:03:34.407526 - pointmap_for_crop, pointmap_scale, pointmap_shift = self._normalize_pointmap(2025-12-10T11:03:34.411036 -
2025-12-10T11:03:34.412035 - File "D:\Comfy\ComfyUI_windows_portable004\ComfyUI\custom_nodes\comfyui-sam3dobjects\vendor\sam3d_objects\data\dataset\tdfy\preprocessor.py", line 73, in _normalize_pointmap
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
Workflow too large. Please manually upload the workflow from local file system.
## Additional Context
(Please add any additional context or steps to reproduce the error here)
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.