Skip to content

max(): Expected reduction dim to be specified for input.numel() == 0 #3

@zapan-669

Description

@zapan-669

I get this error when trying to execute the Texture pipeline.

Is it a limitation of my gpu RTX 3090, and would it be better with a 5090 ?

assets_path    = /path/to/Hunyuan3D-2.1-main/assets'
image_path     = assets_path+"/demo.png"
obj_path        = assets_path+'/test.obj'
obj_path_tex    = assets_path+'/test_tex.obj'

paint_pipeline  = Hunyuan3DPaintPipeline( conf )
mesh_textured   = paint_pipeline( mesh_path=obj_path, image_path=image_path, output_mesh_path=obj_path_tex, save_glb=False,)

Hunyuan3D-2.1-main/hy3dpaint\DifferentiableRenderer\MeshRender.py", line 1182, in back_project
depth_max, depth_min = depth[visible_mask > 0].max(), depth[visible_mask > 0].min()
RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.

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