MCPcopy Create free account
hub / github.com/SooLab/CGFormer / dumps_pyarrow

Function dumps_pyarrow

tools/folder2lmdb.py:26–32  ·  view source on GitHub ↗

Serialize an object. Returns: Implementation-dependent bytes-like object

(obj)

Source from the content-addressed store, hash-verified

24
25
26def dumps_pyarrow(obj):
27 """
28 Serialize an object.
29 Returns:
30 Implementation-dependent bytes-like object
31 """
32 return pa.serialize(obj).to_buffer()
33
34
35def folder2lmdb(json_data, img_dir, mask_dir, output_dir, split, write_frequency=1000):

Callers 1

folder2lmdbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected