Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pointcept/PointTransformerV3
/ functions
Functions
50 in github.com/Pointcept/PointTransformerV3
⨍
Functions
50
◇
Types & classes
13
↓ 13 callers
Method
add
(self, module, name=None)
model.py:220
↓ 11 callers
Method
__init__
(self, patch_size, num_heads)
model.py:298
↓ 3 callers
Function
offset2bincount
(offset)
model.py:29
↓ 3 callers
Method
xyz2key
(self, x, y, z, depth)
serialization/z_order.py:40
↓ 2 callers
Function
hilbert_encode
(grid_coord: torch.Tensor, depth: int = 16)
serialization/default.py:54
↓ 2 callers
Function
right_shift
Right shift an array of binary values. Parameters: ----------- binary: An ndarray of binary values. k: The number of bits to
serialization/hilbert.py:12
↓ 2 callers
Method
sparsify
Point Cloud Serialization Point cloud is sparse, here we use "sparsify" to specifically refer to preparing "spconv.Spars
model.py:138
↓ 2 callers
Function
z_order_encode
(grid_coord: torch.Tensor, depth: int = 16)
serialization/default.py:41
↓ 1 callers
Function
batch2offset
(batch)
model.py:44
↓ 1 callers
Function
binary2gray
Convert an array of binary values into Gray codes. This uses the classic X ^ (X >> 1) trick to compute the Gray code. Parameters: -
serialization/hilbert.py:46
↓ 1 callers
Method
decode_lut
(self, device=torch.device("cpu"))
serialization/z_order.py:34
↓ 1 callers
Function
encode
(grid_coord, batch=None, depth=16, order="z")
serialization/default.py:9
↓ 1 callers
Method
encode_lut
(self, device=torch.device("cpu"))
serialization/z_order.py:28
↓ 1 callers
Method
get_padding_and_inverse
(self, point)
model.py:383
↓ 1 callers
Method
get_rel_pos
(self, point, order)
model.py:373
↓ 1 callers
Function
gray2binary
Convert an array of Gray codes back into binary values. Parameters: ----------- gray: An ndarray of gray codes. axis: The ax
serialization/hilbert.py:69
↓ 1 callers
Function
hilbert_decode
(code: torch.Tensor, depth: int = 16)
serialization/default.py:58
↓ 1 callers
Method
key2xyz
(self, key, depth)
serialization/z_order.py:52
↓ 1 callers
Function
offset2batch
(offset)
model.py:36
↓ 1 callers
Method
serialization
Point Cloud Serialization relay on ["grid_coord" or "coord" + "grid_size", "batch", "feat"]
model.py:81
↓ 1 callers
Function
z_order_decode
(code: torch.Tensor, depth)
serialization/default.py:48
Method
__getitem__
(self, idx)
model.py:207
Method
__init__
(self, *args, **kwargs)
model.py:73
Method
__init__
(self, *args, **kwargs)
model.py:182
Method
__init__
(self, *args, **kwargs)
model.py:192
Method
__init__
( self, num_features, norm_layer, context_channels=256, condition
model.py:256
Method
__init__
( self, channels, num_heads, patch_size, qkv_bias=True,
model.py:320
Method
__init__
( self, in_channels, hidden_channels=None, out_channels=None, act
model.py:494
Method
__init__
( self, channels, num_heads, patch_size=48, mlp_ratio=4.0,
model.py:520
Method
__init__
( self, in_channels, out_channels, stride=2, norm_layer=None,
model.py:610
Method
__init__
( self, in_channels, skip_channels, out_channels, norm_layer=None
model.py:716
Method
__init__
( self, in_channels, embed_channels, norm_layer=None, act_layer=N
model.py:754
Method
__init__
( self, in_channels=6, order=("z", "z-trans", "hilbert", "hilbert-trans"),
model.py:787
Method
__init__
(self)
serialization/z_order.py:13
Method
__len__
(self)
model.py:217
Function
decode
(code, depth=16, order="z")
serialization/default.py:28
Function
decode
Decode an array of Hilbert integers into locations in a hypercube. This is a vectorized-ish version of the Hilbert curve implementation by John
serialization/hilbert.py:201
Function
encode
Decode an array of locations in a hypercube into a Hilbert integer. This is a vectorized-ish version of the Hilbert curve implementation by Joh
serialization/hilbert.py:91
Method
forward
(self, input)
model.py:227
Method
forward
(self, point)
model.py:278
Method
forward
(self, coord)
model.py:307
Method
forward
(self, point)
model.py:440
Method
forward
(self, x)
model.py:510
Method
forward
(self, point: Point)
model.py:586
Method
forward
(self, point: Point)
model.py:639
Method
forward
(self, point)
model.py:739
Method
forward
(self, point: Point)
model.py:781
Method
forward
A data_dict is a dictionary containing properties of a batched point cloud. It should contain the following properties for PTv3:
model.py:966
Function
key2xyz
r"""Decodes the shuffled key to :attr:`x`, :attr:`y`, :attr:`z` coordinates and the batch index based on pre-computed look up tables. Args
serialization/z_order.py:104
Function
xyz2key
r"""Encodes :attr:`x`, :attr:`y`, :attr:`z` coordinates to the shuffled keys based on pre-computed look up tables. The speed of this function is
serialization/z_order.py:66