MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / ExtractCam

Function ExtractCam

utils.py:52–60  ·  view source on GitHub ↗
(gall_img)

Source from the content-addressed store, hash-verified

50 return sample_pos
51
52def ExtractCam(gall_img):
53 gall_cam = []
54 for i in range(len(gall_img)):
55 cam_id = int(gall_img[i][-10])
56 # if cam_id ==3:
57 # cam_id = 2
58 gall_cam.append(cam_id)
59
60 return np.array(gall_cam)
61
62
63class IdentitySampler(Sampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected