Skip to content

ShapeNet load_textures to FalseΒ #450

Closed
@Flegyas

Description

@Flegyas

πŸ› Bugs / Unexpected behaviors

There's a little bug in the _load_mesh method in shapenet_base.py.

Instructions To Reproduce the Issue:

  1. Set the field load_textures to False

The code tries to return the value of textures before it is assigned (since it happens only when the field is enabled) resulting in a UnboundLocalError: local variable 'textures' referenced before assignment.

It should be initialized in advance or not returned at all when the field is disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions