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

Function cat_process

tools/data_process.py:52–71  ·  view source on GitHub ↗
(cat)

Source from the content-addressed store, hash-verified

50
51
52def cat_process(cat):
53 if cat >= 1 and cat <= 11:
54 cat = cat - 1
55 elif cat >= 13 and cat <= 25:
56 cat = cat - 2
57 elif cat >= 27 and cat <= 28:
58 cat = cat - 3
59 elif cat >= 31 and cat <= 44:
60 cat = cat - 5
61 elif cat >= 46 and cat <= 65:
62 cat = cat - 6
63 elif cat == 67:
64 cat = cat - 7
65 elif cat == 70:
66 cat = cat - 9
67 elif cat >= 72 and cat <= 82:
68 cat = cat - 10
69 elif cat >= 84 and cat <= 90:
70 cat = cat - 11
71 return cat
72
73
74def bbox_process(bbox):

Callers 1

prepare_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected