Skip to content

Commit

Permalink
To fix VoxelNeXt training bugs in spconv 2.2 / 2.3 (open-mmlab#1313)
Browse files Browse the repository at this point in the history
* VoxelNeXt

* Update .gitignore

* Update voxelnext_head.py

* Update spconv_utils.py
  • Loading branch information
yukang2017 authored Apr 9, 2023
1 parent 53c259f commit a68aaa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pcdet/models/dense_heads/voxelnext_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..model_utils import centernet_utils
from ..model_utils import model_nms_utils
from ...utils import loss_utils
import spconv.pytorch as spconv
from ...utils.spconv_utils import replace_feature, spconv
import copy
from easydict import EasyDict

Expand Down
4 changes: 4 additions & 0 deletions pcdet/utils/spconv_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from typing import Set

import spconv
if float(spconv.__version__[2:]) >= 2.2:
spconv.constants.SPCONV_USE_DIRECT_TABLE = False

try:
import spconv.pytorch as spconv
except:
Expand Down

0 comments on commit a68aaa6

Please sign in to comment.