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

Function bbox_process

tools/data_process.py:74–79  ·  view source on GitHub ↗
(bbox)

Source from the content-addressed store, hash-verified

72
73
74def bbox_process(bbox):
75 x_min = int(bbox[0])
76 y_min = int(bbox[1])
77 x_max = x_min + int(bbox[2])
78 y_max = y_min + int(bbox[3])
79 return list(map(int, [x_min, y_min, x_max, y_max]))
80
81
82def prepare_dataset(dataset, splits, output_dir, generate_mask=False):

Callers 1

prepare_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected