l5kit.rasterization.stub_rasterizer module¶
- class l5kit.rasterization.stub_rasterizer.StubRasterizer(render_context: l5kit.rasterization.render_context.RenderContext)¶
Bases:
l5kit.rasterization.rasterizer.Rasterizer
This rasterizer doesn’t actually do anything, it returns an all-black image. Useful for testing.
- num_channels() int ¶
- rasterize(history_frames: numpy.ndarray, history_agents: List[numpy.ndarray], history_tl_faces: List[numpy.ndarray], agent: Optional[numpy.ndarray] = None) numpy.ndarray ¶
Just return an empty raster_size x 3 black image
- to_rgb(in_im: numpy.ndarray, **kwargs: dict) numpy.ndarray ¶
Return a completely black image.