parameters: (self, vertices, faces)
return_statement: return masks
docstring: Renders masks.
          Args:
              vertices: B X N X 3 numpy array
              faces: B X F X 3 numpy array
          Returns:
              masks: B X 256 X 256 numpy array
docstring_summary: Renders masks.
          Args:
              vertices: B X N X 3 numpy array
              faces: B X F X 3 numpy array
          Returns:
              masks: B X 256 X 256 numpy array
docstring_tokens: Renders masks . Args : vertices : B X N X 3 numpy array faces : B X F X 3 numpy array Returns : masks : B X 256 X 256 numpy array
function: def forward_mask(self, vertices, faces):
          ''' Renders masks.
          Args:
              vertices: B X N X 3 numpy array
              faces: B X F X 3 numpy array
          Returns:
              masks: B X 256 X 256 numpy array
          '''
          self.faces = chainer.Variable(chainer.cuda.to_gpu(faces, self.cuda_device))
          self.vertices = chainer.Variable(chainer.cuda.to_gpu(vertices, self.cuda_device))
  
          self.masks = self.renderer.render_silhouettes(self.vertices, self.faces)
          masks = self.masks.data.get()
          return masks
function_tokens: def forward_mask ( self , vertices , faces ) : self . faces = chainer . Variable ( chainer . cuda . to_gpu ( faces , self . cuda_device ) ) self . vertices = chainer . Variable ( chainer . cuda . to_gpu ( vertices , self . cuda_device ) ) self . masks = self . renderer . render_silhouettes ( self . vertices , self . faces ) masks = self . masks . data . get ( ) return masks