diff --git a/pytorch3d/io/mtl_io.py b/pytorch3d/io/mtl_io.py index 166f98a8e..443ca0ba1 100644 --- a/pytorch3d/io/mtl_io.py +++ b/pytorch3d/io/mtl_io.py @@ -299,6 +299,7 @@ def make_material_atlas( # bi-linearly interpolate the textures from the images # using the uv coordinates given by uv_pos. + uv_pos -= torch.floor(uv_pos) textures = _bilinear_interpolation_grid_sample(image, uv_pos) return textures diff --git a/pytorch3d/io/obj_io.py b/pytorch3d/io/obj_io.py index 6d3e7eca9..cdd75e7e3 100644 --- a/pytorch3d/io/obj_io.py +++ b/pytorch3d/io/obj_io.py @@ -77,7 +77,7 @@ def load_obj( load_textures: bool = True, create_texture_atlas: bool = False, texture_atlas_size: int = 4, - texture_wrap: Optional[str] = "repeat", + texture_wrap: Optional[str] = None, device: Device = "cpu", path_manager: Optional[PathManager] = None, ):