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

Function get_obj_onehot_vector

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

Source from the content-addressed store, hash-verified

147
148
149def get_obj_onehot_vector(img_name, one_hot):
150 one_hot_path = img2onehot(img_name, one_hot)
151 v = load_dict(one_hot_path)
152 img_name = list(v.keys())[0]
153 return v[img_name]
154
155
156def classify_step(logit, classes):

Callers 1

get_object_featureMethod · 0.85

Calls 2

img2onehotFunction · 0.85
load_dictFunction · 0.85

Tested by

no test coverage detected