Skip to content

Commit 5b89c4e

Browse files
Pyre Bot Jrfacebook-github-bot
Pyre Bot Jr
authored andcommitted
suppress errors in vision/fair/pytorch3d
Differential Revision: D31266959 fbshipit-source-id: 878a59ca2cfe1389e42fc338653e8d3314b56b91
1 parent d0ca3b9 commit 5b89c4e

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

pytorch3d/io/experimental_gltf_io.py

-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def _access_image(self, image_index: int) -> np.ndarray:
229229
binary_data = self.get_binary_data(buffer_view["buffer"])
230230

231231
bytesio = BytesIO(binary_data[offset : offset + length].tobytes())
232-
# pyre-fixme[16]: `Image.Image` has no attribute `__enter__`.
233232
with Image.open(bytesio) as f:
234233
array = np.array(f)
235234
if array.dtype == np.uint8:

pytorch3d/io/obj_io.py

-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,6 @@ def save_obj(
739739
texture_map = texture_map.detach().cpu() * 255.0
740740
image = Image.fromarray(texture_map.numpy().astype(np.uint8))
741741
with _open_file(image_path, path_manager, "wb") as im_f:
742-
# pyre-fixme[6] # incompatible parameter type
743742
image.save(im_f)
744743

745744
# Create .mtl file with the material name and texture map filename

0 commit comments

Comments
 (0)