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

An error of check_loaded_data function #45

Open
xueyouxz opened this issue Dec 19, 2024 · 1 comment
Open

An error of check_loaded_data function #45

xueyouxz opened this issue Dec 19, 2024 · 1 comment

Comments

@xueyouxz
Copy link

xueyouxz commented Dec 19, 2024

In the check_loaded_data function, there is a line of code:
agents = np.concatenate([data['obj_trajs'][..., :2], data['obj_trajs_future_state'][..., :2]], axis=-2)
I’m not sure what this line does, but this function is called in base_dataset.py, as shown in the following form:

def draw_figures(cfg):
   ...
    for n, data in tqdm(enumerate(train_loader)):
        input_dict = data['input_dict']
        for i in range(data['batch_size']):
              plt = check_loaded_data(data['input_dict'], i)
              ...

An error occurs when calling check_loaded_data, and the external parameter passed to data is i. I am currently unsure about the role and meaning of this parameter. Could you help clarify this?

@Alan-LanFeng
Copy link
Collaborator

It represents visualizing the ith sample in the batch

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

No branches or pull requests

2 participants