TexturesAtlas in plotly
Summary: Lets a K=1 textures atlas be viewed in plotly. Fixes https://github.com/facebookresearch/pytorch3d/issues/916 . Test: Now get colored faces in ``` import torch from pytorch3d.utils import ico_sphere from pytorch3d.vis.plotly_vis import plot_batch_individually from pytorch3d.renderer import TexturesAtlas b = ico_sphere() face_colors = torch.rand(b.faces_padded().shape) tex = TexturesAtlas(face_colors[:,:,None,None]) b.textures=tex plot_batch_individually(b) ``` Reviewed By: gkioxari Differential Revision: D32190470 fbshipit-source-id: 258d30b7e9d79751a79db44684b5540657a2eff5
Showing
Please register or sign in to comment