Skip to content

Commit

Permalink
suppress errors in vision/fair/pytorch3d
Browse files Browse the repository at this point in the history
Differential Revision: D31266959

fbshipit-source-id: 878a59ca2cfe1389e42fc338653e8d3314b56b91
  • Loading branch information
Pyre Bot Jr authored and facebook-github-bot committed Sep 29, 2021
1 parent d0ca3b9 commit 5b89c4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pytorch3d/io/experimental_gltf_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def _access_image(self, image_index: int) -> np.ndarray:
binary_data = self.get_binary_data(buffer_view["buffer"])

bytesio = BytesIO(binary_data[offset : offset + length].tobytes())
# pyre-fixme[16]: `Image.Image` has no attribute `__enter__`.
with Image.open(bytesio) as f:
array = np.array(f)
if array.dtype == np.uint8:
Expand Down
1 change: 0 additions & 1 deletion pytorch3d/io/obj_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,6 @@ def save_obj(
texture_map = texture_map.detach().cpu() * 255.0
image = Image.fromarray(texture_map.numpy().astype(np.uint8))
with _open_file(image_path, path_manager, "wb") as im_f:
# pyre-fixme[6] # incompatible parameter type
image.save(im_f)

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

0 comments on commit 5b89c4e

Please sign in to comment.