Repository navigation
Conversation
cupy.bool8 follows numpy.bool8, which NumPy 2 removed, so creating a SemanticMap fails with AttributeError on current CuPy. cp.bool_ is the same dtype and exists in every CuPy version.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
SemanticMapcreatesdelete_new_layerswithcp.bool8. CuPy mirrors NumPy's aliases, and NumPy 2 removedbool8, so any map with semantic layers fails at construction:Fix
Use
cp.bool_(two places insemantic_map.py). It is the same dtype and exists in every CuPy version.Testing
elevation_mapping_cupy/script/elevation_mapping_cupy/testswith CuPy 13.6 and NumPy 2:bool8AttributeError.bool8errors. The remaining failures were already masked before this change, and are not caused by it:../../../config/weights.datandplugin_config.yamlfrom paths that don't exist;SemanticMapmethods that were renamed or removed (get_fusion_of_pcl,get_indices_fusionsignature).I also ran a full replay through
ElevationMap.input_pointcloud/input_imagewith semantic image layers onmainwith this change.Separate note, not changed here:
main's CUDA kernels use CuPy'sfloat16device type, which no longer compiles with CuPy 14, somainneeds CuPy 13 or older.