MCPcopy
hub / github.com/Pointcept/PointTransformerV3 / __init__

Method __init__

model.py:73–79  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

71 """
72
73 def __init__(self, *args, **kwargs):
74 super().__init__(*args, **kwargs)
75 # If one of "offset" or "batch" do not exist, generate by the existing one
76 if "batch" not in self.keys() and "offset" in self.keys():
77 self["batch"] = offset2batch(self.offset)
78 elif "offset" not in self.keys() and "batch" in self.keys():
79 self["offset"] = batch2offset(self.batch)
80
81 def serialization(self, order="z", depth=None, shuffle_orders=False):
82 """

Callers

nothing calls this directly

Calls 3

offset2batchFunction · 0.85
batch2offsetFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected