diff --git a/pytorch3d/io/experimental_gltf_io.py b/pytorch3d/io/experimental_gltf_io.py index f771744c..fdb7895f 100644 --- a/pytorch3d/io/experimental_gltf_io.py +++ b/pytorch3d/io/experimental_gltf_io.py @@ -229,7 +229,6 @@ class _GLTFLoader: 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: diff --git a/pytorch3d/io/obj_io.py b/pytorch3d/io/obj_io.py index fd27f6c0..f4cefc70 100644 --- a/pytorch3d/io/obj_io.py +++ b/pytorch3d/io/obj_io.py @@ -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