isl-org / Open3D-ML

An extension of Open3D to address 3D Machine Learning tasks
Other
1.82k stars 313 forks source link

Random model initialization doesn't work #543

Open AlibiZhenis opened 2 years ago

AlibiZhenis commented 2 years ago

Checklist

My Question

So I was just exploring stuff and tried to train tf PointPillars model as in the tutorial. I didn't set any arguments as the tutorial said that they would initialize randomly.

model = ml3d.models.PointPillars()

But I get the following error:

TypeError: init() missing 1 required positional argument: 'voxel_size'

I tried setting the voxel_size manually but it didn't work either.

noordahx commented 2 years ago

Hi! Same problem here, seems like you forgot to load configs `cfg_file = "ml3d/configs/pointpillars_kitti.yml" cfg = _ml3d.utils.Config.load_from_file(cfg_file)

model = ml3d.models.PointPillars(**cfg.model)` Reference to https://github.com/isl-org/Open3D-ML#3d-object-detection