Skip to content

Exception when creating a TextureAtlas #751

Closed
@iahmedmaher

Description

@iahmedmaher

Hello,

When I try to load a multi-textured object using the instructions here, an exception is thrown while loading with these messages as seen in the attached image below:

image

I tried to look into the mtl_io.py file and found that some values of x1 are out of the image's range by 1. Setting those to the max possible index loads and renders the image correctly for a human, but I don't know if some faces have wrong textures or not especially that I don't fully understand uv texturing in general. I checked how x1 gets its values and it seems weird to me that it is x0 + 1 while x0 have values (H - 1) as seen below:
image

Environment

I am using the environment setup in one of the tutorial notebooks, so the latest stable version of Pytorch3D as of the time of writing this issue.

I am using Google Colab, so it's on Linux.

The issue is present when using a GPU. When using a CPU instead, the notebook crashes.

The texture images have size of 4096x4096. I am not authorized to share them or the obj files, sorry.

Metadata

Metadata

Assignees

Labels

how toHow to use PyTorch3D in my project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions