mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D31266959 fbshipit-source-id: 878a59ca2cfe1389e42fc338653e8d3314b56b91
This commit is contained in:
parent
d0ca3b9e0c
commit
5b89c4e3bb
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user