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

TypeError: ' RadarPointCloud ' object is not iterable #8

Open
Tipper-sun opened this issue Feb 20, 2023 · 1 comment
Open

TypeError: ' RadarPointCloud ' object is not iterable #8

Tipper-sun opened this issue Feb 20, 2023 · 1 comment

Comments

@Tipper-sun
Copy link

When the training starts,i met this problem:

radar_sample = [radar.enrich_radar_data(pc.points) for pc in pcs]
TypeError: 'RadarPointCloud' object is not iterable

RadarPointCloud:
pcs, times = RadarPointCloud.from_file_multisweep(self.nusc, sample, sensor_channel,
sensor_channel, nsweeps=required_sweep_count,
min_distance=0.0)

@nacayu
Copy link
Owner

nacayu commented Feb 20, 2023

you can transform pcs in 'radar_sample = [radar.enrich_radar_data(pc.points) for pc in pcs]' to list before iterate.
such as :

pcs = list(pcs)
radar_sample = [radar.enrich_radar_data(pc.points) for pc in pcs]

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