Skip to content

Commit

Permalink
fix gmmtree
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed May 11, 2024
1 parent c553922 commit 66a9b87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion probreg/cc/gmmtree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Integer child(Integer j) { return (j + 1) * N_NODE; }
Integer level(Integer l) { return N_NODE * (std::pow(N_NODE, l) - 1) / (N_NODE - 1); }

void initializeNodes(NodeParamArray& nodes, const MatrixX3& points, Integer max_tree_level) {
const auto idxs = (points.rows() * Vector::Random(max_tree_level * N_NODE)).array().abs().cast<Integer>();
const auto idxs = (points.rows() * Vector::Random(std::pow(N_NODE, max_tree_level))).array().abs().cast<Integer>();
const Integer lf_idx = level(max_tree_level - 1);
for (Integer j = 0; j < std::pow(N_NODE, max_tree_level); ++j) {
std::get<0>(nodes[lf_idx + j]) = 1.0 / N_NODE;
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scikit-learn = "^1.0"
matplotlib = "^3.3.3"
open3d = "0.18.0"
dq3d = {version = "^0.3.6", optional = true}
cupy = {version = "^9.5.0", optional = true}
cupy = {version = "^11.0.0", optional = true}
pyyaml = "^6.0"
addict = "^2.4.0"
pandas = "^2.0.0"
Expand Down

0 comments on commit 66a9b87

Please sign in to comment.