MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / img2onehot

Function img2onehot

functions.py:143–146  ·  view source on GitHub ↗
(img_name, one_hot)

Source from the content-addressed store, hash-verified

141
142
143def img2onehot(img_name, one_hot):
144 img_name = img_name.split('/')
145 p = os.path.join(one_hot, img_name[-3], img_name[-2], img_name[-1].split('.')[0] + '.json')
146 return p
147
148
149def get_obj_onehot_vector(img_name, one_hot):

Callers 1

get_obj_onehot_vectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected