Skip to content

MV-Adapter-ig2mv must be a real number #524

@wes-kay

Description

@wes-kay

When trying to run the https://github.com/MrForExample/ComfyUI-3D-Pack/blob/main/example_workflows/MV-Adapter/MV-Adapter-ig2mv.json

got prompt
!!! Exception during processing !!! must be real number, not NoneType
Traceback (most recent call last):
  File "C:\Users\Documents\ComfyUI\execution.py", line 496, 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 "C:\Users\Documents\ComfyUI\execution.py", line 315, 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 "C:\Users\Documents\ComfyUI\execution.py", line 289, in _async_map_node_over_list
    await process_inputs(input_dict, i)
  File "C:\Users\Documents\ComfyUI\execution.py", line 277, in process_inputs
    result = f(**inputs)
             ^^^^^^^^^^^
  File "C:\Users\Documents\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 4887, in run
    images, pos_images, normal_images, processed_ref_image = mvadapter_run_pipeline(
                                                             ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Documents\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\MV_Adapter\mvadapter_node_utils.py", line 187, in run_pipeline
    mesh = load_mesh(mesh_path, rescale=True, device=device)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Documents\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\MV_Adapter\mvadapter\utils\mesh_utils\mesh.py", line 292, in load_mesh
    v_tex = torch.tensor(mesh.visual.uv, dtype=torch.float32)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Documents\ComfyUI\venv\Lib\site-packages\torch\utils\_device.py", line 104, in __torch_function__
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
TypeError: must be real number, not NoneType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions