suppress errors in vision/fair/pytorch3d

Differential Revision: D31266959

fbshipit-source-id: 878a59ca2cfe1389e42fc338653e8d3314b56b91
This commit is contained in:
Pyre Bot Jr 2021-09-29 05:06:40 -07:00 committed by Facebook GitHub Bot
parent d0ca3b9e0c
commit 5b89c4e3bb
2 changed files with 0 additions and 2 deletions

View File

@ -229,7 +229,6 @@ class _GLTFLoader:
binary_data = self.get_binary_data(buffer_view["buffer"]) binary_data = self.get_binary_data(buffer_view["buffer"])
bytesio = BytesIO(binary_data[offset : offset + length].tobytes()) bytesio = BytesIO(binary_data[offset : offset + length].tobytes())
# pyre-fixme[16]: `Image.Image` has no attribute `__enter__`.
with Image.open(bytesio) as f: with Image.open(bytesio) as f:
array = np.array(f) array = np.array(f)
if array.dtype == np.uint8: if array.dtype == np.uint8:

View File

@ -739,7 +739,6 @@ def save_obj(
texture_map = texture_map.detach().cpu() * 255.0 texture_map = texture_map.detach().cpu() * 255.0
image = Image.fromarray(texture_map.numpy().astype(np.uint8)) image = Image.fromarray(texture_map.numpy().astype(np.uint8))
with _open_file(image_path, path_manager, "wb") as im_f: with _open_file(image_path, path_manager, "wb") as im_f:
# pyre-fixme[6] # incompatible parameter type
image.save(im_f) image.save(im_f)
# Create .mtl file with the material name and texture map filename # Create .mtl file with the material name and texture map filename