Skip to content

Commit

Permalink
fix: spconv error
Browse files Browse the repository at this point in the history
  • Loading branch information
chongqinghuang committed Dec 4, 2022
1 parent 65199c8 commit cce3e23
Show file tree
Hide file tree
Showing 15 changed files with 839 additions and 72 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ painted_lidar
**/.DS_Store
**/__pycache__
# 数据
detector/data
detector/data
detector/output
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/PointPainting.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 87 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion detector/pcdet/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ def __init__(self, dataset_cfg=None, class_names=None, training=True, root_path=
self.data_augmentor = DataAugmentor(
self.root_path, self.dataset_cfg.DATA_AUGMENTOR, self.class_names, logger=self.logger
) if self.training else None
# # 定义数据处理类
# 解决:_init__() missing 1 required positional argument: 'num_point_features
# self.data_processor = DataProcessor(
# self.dataset_cfg.DATA_PROCESSOR, point_cloud_range=self.point_cloud_range, training=self.training
# )
self.data_processor = DataProcessor(
self.dataset_cfg.DATA_PROCESSOR, point_cloud_range=self.point_cloud_range, training=self.training
self.dataset_cfg.DATA_PROCESSOR, point_cloud_range=self.point_cloud_range,
training=self.training, num_point_features=self.point_feature_encoder.num_point_features
)

self.grid_size = self.data_processor.grid_size
Expand Down
Loading

0 comments on commit cce3e23

Please sign in to comment.