@@ -110,7 +110,7 @@ def append_cam_intrinsic(self, cam_intrinsic: CameraIntrinsic):
110
110
def append_cam_extrinsic (self , cam_extrinsic : CameraExtrinsic ):
111
111
self ._append_child ("cam_extrinsic" , cam_extrinsic )
112
112
113
- def get_view (self , views : list = [], exclude = [], size = None , grid_size = None , ** kwargs ):
113
+ def get_view (self , views : list = [], exclude = [], size = None , grid_size = None , title = None , ** kwargs ):
114
114
"""Render the spatial augmented tensor.
115
115
116
116
Parameters
@@ -130,7 +130,7 @@ def get_view(self, views: list = [], exclude=[], size=None, grid_size=None, **kw
130
130
"""
131
131
_views = [v for v in views if isinstance (v , View )]
132
132
if len (_views ) > 0 :
133
- return View (Renderer .get_grid_view (_views , grid_size = None , cell_grid_size = size , ** kwargs ))
133
+ return View (Renderer .get_grid_view (_views , grid_size = None , cell_grid_size = size , ** kwargs ), title = title )
134
134
135
135
# Include type
136
136
include_type = [
@@ -194,7 +194,7 @@ def __get_view(sa_tensor: SpatialAugmentedTensor, info={}):
194
194
grid_size = None
195
195
196
196
view = Renderer .get_grid_view (n_views , grid_size = grid_size , cell_grid_size = size , ** kwargs )
197
- return View (view )
197
+ return View (view , title = title )
198
198
199
199
def relative_to_absolute (self , x , dim , assert_integer = False ):
200
200
dim = dim .lower ()
0 commit comments