Comfy-Org / Comfy-Org/ComfyUI

Hy3DInPaint - MeshVerticeInpaint

Open
#9,040 15 comments 0 reactions 0 assignees View on GitHub
bug-cop:response-received Custom Nodes Bug Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Custom Node Testing

- [x] 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

should work..

### Actual Behavior

dose not work

### Steps to Reproduce

hit run and wait till the errora apears. generates the mesh and the multiviews and saves them in the output.

### Debug Logs

```powershell
# ComfyUI Error Report
## Error Details
- **Node ID:** 49
- **Node Type:** Hy3DInPaint
- **Exception Type:** NameError
- **Exception Message:** name 'meshVerticeInpaint' is not defined

## Stack Trace

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\execution.py", line 361, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\execution.py", line 236, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\execution.py", line 208, in _map_node_over_list
process_inputs(input_dict, i)

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\execution.py", line 197, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\nodes.py", line 408, in process
albedo, mr = pipeline.inpaint(albedo, albedo_mask, mr, mr_mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\hy3dpaint\textureGenPipeline.py", line 253, in inpaint
texture = self.view_processor.texture_inpaint(albedo, mask_np)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\hy3dpaint\utils\pipeline_utils.py", line 132, in texture_inpaint
texture_np = self.render.uv_inpaint(texture, mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^

File "D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1\hy3dpaint\DifferentiableRenderer\MeshRender.py", line 1408, in uv_inpaint
texture_np, mask = meshVerticeInpaint(texture_np, mask, vtx_pos, vtx_uv, pos_idx, uv_idx)
^^^^^^^^^^^^^^^^^^

## System Information
- **ComfyUI Version:** 0.3.44
- **Arguments:** ComfyUI\main.py --windows-standalone-build
- **OS:** nt
- **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.7.1+cu128
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 34190458880
- **VRAM Free:** 29134427474
- **Torch VRAM Total:** 3254779904
- **Torch VRAM Free:** 247207250

## Logs

2025-07-25T10:31:19.713571 - [START] Security scan2025-07-25T10:31:19.713571 -
2025-07-25T10:31:22.013461 - [DONE] Security scan2025-07-25T10:31:22.013461 -
2025-07-25T10:31:22.110460 - ## ComfyUI-Manager: installing dependencies done.2025-07-25T10:31:22.110460 -
2025-07-25T10:31:22.111464 - ** ComfyUI startup time:2025-07-25T10:31:22.111464 - 2025-07-25T10:31:22.111464 - 2025-07-25 10:31:22.1102025-07-25T10:31:22.111464 -
2025-07-25T10:31:22.111464 - ** Platform:2025-07-25T10:31:22.111464 - 2025-07-25T10:31:22.111464 - Windows2025-07-25T10:31:22.111464 -
2025-07-25T10:31:22.111464 - ** Python version:2025-07-25T10:31:22.111464 - 2025-07-25T10:31:22.111464 - 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]2025-07-25T10:31:22.111464 -
2025-07-25T10:31:22.111464 - ** Python executable:2025-07-25T10:31:22.111464 - 2025-07-25T10:31:22.111464 - D:\OneClickInstaller\ComfyUI_windows_portable\python_embeded\python.exe2025-07-25T10:31:22.111464 -
2025-07-25T10:31:22.111464 - ** ComfyUI Path:2025-07-25T10:31:22.111464 - 2025-07-25T10:31:22.111464 - D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI2025-07-25T10:31:22.111464 -
2025-07-25T10:31:22.112463 - ** ComfyUI Base Folder Path:2025-07-25T10:31:22.112463 - 2025-07-25T10:31:22.112463 - D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI2025-07-25T10:31:22.112463 -
2025-07-25T10:31:22.112463 - ** User directory:2025-07-25T10:31:22.112463 - 2025-07-25T10:31:22.112463 - D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\user2025-07-25T10:31:22.112463 -
2025-07-25T10:31:22.112463 - ** ComfyUI-Manager config path:2025-07-25T10:31:22.112463 - 2025-07-25T10:31:22.112463 - D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini2025-07-25T10:31:22.112463 -
2025-07-25T10:31:22.112463 - ** Log path:2025-07-25T10:31:22.112463 - 2025-07-25T10:31:22.112463 - D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\user\comfyui.log2025-07-25T10:31:22.112463 -
2025-07-25T10:31:23.115088 -
Prestartup times for custom nodes:
2025-07-25T10:31:23.115088 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-07-25T10:31:23.115088 - 4.4 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2025-07-25T10:31:23.115088 -
2025-07-25T10:31:26.843359 - Checkpoint files will always be loaded safely.
2025-07-25T10:31:26.972490 - Total VRAM 32607 MB, total RAM 130570 MB
2025-07-25T10:31:26.972490 - pytorch version: 2.7.1+cu128
2025-07-25T10:31:26.972490 - Set vram state to: NORMAL_VRAM
2025-07-25T10:31:26.975789 - Device: cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync
2025-07-25T10:31:29.820757 - Using pytorch attention
2025-07-25T10:31:41.514551 - Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
2025-07-25T10:31:41.514551 - ComfyUI version: 0.3.44
2025-07-25T10:31:41.556046 - ComfyUI frontend version: 1.23.4
2025-07-25T10:31:41.558046 - [Prompt Server] web root: D:\OneClickInstaller\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
2025-07-25T10:31:46.102275 - InPaint Function CAN NOT BE Imported!!!2025-07-25T10:31:46.103279 -
2025-07-25T10:31:48.136492 - ### Loading: ComfyUI-Manager (V3.34)
2025-07-25T10:31:48.136492 - [ComfyUI-Manager] network_mode: public
2025-07-25T10:31:48.220248 - ### ComfyUI Revision: 150 [c5de4955] *DETACHED | Released on '2025-07-08'
2025-07-25T10:31:48.466967 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-07-25T10:31:48.475691 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-07-25T10:31:48.508830 -
2025-07-25T10:31:48.508830 - [rgthree-comfy] Loaded 47 exciting nodes. πŸŽ‰2025-07-25T10:31:48.508830 -
2025-07-25T10:31:48.508830 -
2025-07-25T10:31:48.531497 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-07-25T10:31:48.573256 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-07-25T10:31:48.605865 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-07-25T10:31:49.606425 - WAS Node Suite: OpenCV Python FFMPEG support is enabled2025-07-25T10:31:49.606425 -
2025-07-25T10:31:49.606425 - WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.2025-07-25T10:31:49.606425 -
2025-07-25T10:31:49.948846 - WAS Node Suite: Finished. Loaded 220 nodes successfully.2025-07-25T10:31:49.948846 -
2025-07-25T10:31:49.948846 -
"Every artist was first an amateur." - Ralph Waldo Emerson
2025-07-25T10:31:49.948846 -
2025-07-25T10:31:49.958343 -
Import times for custom nodes:
2025-07-25T10:31:49.958343 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2025-07-25T10:31:49.958343 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
2025-07-25T10:31:49.958343 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
2025-07-25T10:31:49.958343 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
2025-07-25T10:31:49.958343 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2025-07-25T10:31:49.959354 - 0.0 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3DWrapper
2025-07-25T10:31:49.959354 - 0.2 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2025-07-25T10:31:49.959354 - 0.2 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2025-07-25T10:31:49.959354 - 1.4 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
2025-07-25T10:31:49.959354 - 5.5 seconds: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hunyuan3d-2-1
2025-07-25T10:31:49.959354 -
2025-07-25T10:31:50.322217 - Context impl SQLiteImpl.
2025-07-25T10:31:50.322217 - Will assume non-transactional DDL.
2025-07-25T10:31:50.324706 - No target revision found.
2025-07-25T10:31:50.335230 - Starting server

2025-07-25T10:31:50.336229 - To see the GUI go to: http://127.0.0.1:8188
2025-07-25T10:31:51.694555 - YOUR FOLDER: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI2025-07-25T10:31:51.694555 -
2025-07-25T10:31:51.733216 - YOUR FOLDER: D:\OneClickInstaller\ComfyUI_windows_portable\ComfyUI2025-07-25T10:31:51.733216 -
2025-07-25T10:31:53.394403 - FETCH ComfyRegistry Data: 5/922025-07-25T10:31:53.394403 -
2025-07-25T10:31:57.697936 - FETCH ComfyRegistry Data: 10/922025-07-25T10:31:57.697936 -
2025-07-25T10:32:02.065514 - FETCH ComfyRegistry Data: 15/922025-07-25T10:32:02.065514 -
2025-07-25T10:32:06.223648 - FETCH ComfyRegistry Data: 20/922025-07-25T10:32:06.224648 -
2025-07-25T10:32:10.460449 - FETCH ComfyRegistry Data: 25/922025-07-25T10:32:10.460449 -
2025-07-25T10:32:14.667536 - FETCH ComfyRegistry Data: 30/922025-07-25T10:32:14.668538 -
2025-07-25T10:32:18.838013 - FETCH ComfyRegistry Data: 35/922025-07-25T10:32:18.838013 -
2025-07-25T10:32:22.997540 - FETCH ComfyRegistry Data: 40/922025-07-25T10:32:22.997540 -
2025-07-25T10:32:27.052108 - FETCH ComfyRegistry Data: 45/922025-07-25T10:32:27.052108 -
2025-07-25T10:32:31.178085 - FETCH ComfyRegistry Data: 50/922025-07-25T10:32:31.178085 -
2025-07-25T10:32:35.272015 - FETCH ComfyRegistry Data: 55/922025-07-25T10:32:35.272015 -
2025-07-25T10:32:39.404355 - FETCH ComfyRegistry Data: 60/922025-07-25T10:32:39.404355 -
2025-07-25T10:32:43.504042 - FETCH ComfyRegistry Data: 65/922025-07-25T10:32:43.504042 -
2025-07-25T10:32:47.638947 - FETCH ComfyRegistry Data: 70/922025-07-25T10:32:47.638947 -
2025-07-25T10:32:51.934931 - FETCH ComfyRegistry Data: 75/922025-07-25T10:32:51.935931 -
2025-07-25T10:32:56.220423 - FETCH ComfyRegistry Data: 80/922025-07-25T10:32:56.221423 -
2025-07-25T10:33:00.482417 - FETCH ComfyRegistry Data: 85/922025-07-25T10:33:00.482417 -
2025-07-25T10:33:04.068064 - got prompt
2025-07-25T10:33:04.819021 - FETCH ComfyRegistry Data: 90/922025-07-25T10:33:04.819021 -
2025-07-25T10:33:06.954662 - FETCH ComfyRegistry Data [DONE]2025-07-25T10:33:06.954662 -
2025-07-25T10:33:07.042917 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-07-25T10:33:07.058565 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-07-25T10:33:07.058565 - 2025-07-25T10:33:07.292937 - [DONE]2025-07-25T10:33:07.292937 -
2025-07-25T10:33:07.336027 - [ComfyUI-Manager] All startup tasks have been completed.
2025-07-25T10:33:09.152602 - using moe2025-07-25T10:33:09.152602 -
2025-07-25T10:33:10.098627 - using moe2025-07-25T10:33:10.098627 -
2025-07-25T10:33:11.065460 - using moe2025-07-25T10:33:11.065460 -
2025-07-25T10:33:12.023282 - using moe2025-07-25T10:33:12.023282 -
2025-07-25T10:33:13.168485 - using moe2025-07-25T10:33:13.168485 -
2025-07-25T10:33:14.111196 - using moe2025-07-25T10:33:14.111196 -
2025-07-25T10:33:15.168430 - PointCrossAttentionEncoder INFO: pc_sharpedge_size is not given, using pc_size as pc_sharpedge_size2025-07-25T10:33:15.169430 -
2025-07-25T10:33:33.476892 -
Diffusion Sampling:: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 45/45 [00:13<00:00, 3.32it/s]2025-07-25T10:33:33.476892 -
Diffusion Sampling:: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 45/45 [00:13<00:00, 3.32it/s]2025-07-25T10:33:33.477892 -
2025-07-25T10:33:34.056465 - PointCrossAttentionEncoder INFO: pc_sharpedge_size is not given, using pc_size as pc_sharpedge_size2025-07-25T10:33:34.056465 -
2025-07-25T10:33:35.961706 - 2025-07-25 10:33:35,961 - hy3dgen.shapgen - INFO - FlashVDMVolumeDecoding Resolution: [103, 206, 412]
2025-07-25T10:33:35.961706 - 2025-07-25 10:33:35,961 - hy3dgen.shapgen - INFO - FlashVDMVolumeDecoding Resolution: [103, 206, 412]
2025-07-25T10:33:35.961706 - FlashVDMVolumeDecoding Resolution: [103, 206, 412]
2025-07-25T10:33:35.982490 -
FlashVDM Volume Decoding: 0%| | 0/22 [00:00

Contributor guide

Open the contributing guide

Research direction

Start in custom_nodes/ComfyUI-Hunyuan3d-2-1/hy3dpaint/DifferentiableRenderer/MeshRender.py at uv_inpaint, then trace the meshVerticeInpaint reference and the β€œInPaint Function CAN NOT BE Imported” startup log. Check the related pipeline_utils.py and textureGenPipeline.py call paths. Done means Hy3DInPaint completes without the NameError and produces the expected inpainted output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
ai, computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.