Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgentDataset with rasterizer set to None #149

Closed
ahmed-h-elsheikh opened this issue Sep 21, 2020 · 2 comments
Closed

AgentDataset with rasterizer set to None #149

ahmed-h-elsheikh opened this issue Sep 21, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ahmed-h-elsheikh
Copy link

Code crashes when rasterizer is set to None as a special case for handling data["image"]=None is missing in line 84 ego.py --> see specific error below

l5kit/dataset/ego.py in get_frame(self, scene_index, state_index, track_id)
     82         data = self.sample_function(state_index, frames, self.dataset.agents, self.dataset.tl_faces, track_id)
     83         # 0,1,C -> C,0,1
---> 84         image = data["image"].transpose(2, 0, 1)
@lucabergamini lucabergamini self-assigned this Sep 22, 2020
@lucabergamini lucabergamini added enhancement New feature or request bug Something isn't working labels Sep 22, 2020
@lucabergamini
Copy link
Contributor

Hey @ahmed-h-elsheikh are you on master or some released version?
We have an option (stub_debug) you can use into build_rasterizer to get an empty tensor each time.

@lucabergamini lucabergamini removed the bug Something isn't working label Sep 23, 2020
@lucabergamini
Copy link
Contributor

stub_debug is now available also in the latest release. I'll close this one for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants