MCPcopy Create free account
hub / github.com/Atrovast/THGS / sava_numpy

Function sava_numpy

scripts/image_encoding.py:173–177  ·  view source on GitHub ↗
(save_path, data)

Source from the content-addressed store, hash-verified

171 sava_numpy(save_path, curr)
172
173def sava_numpy(save_path, data):
174 save_path_s = save_path + '_s.npy'
175 save_path_f = save_path + '_f.npy'
176 np.save(save_path_s, data['seg_maps'].numpy())
177 np.save(save_path_f, data['feature'].numpy())
178
179def _embed_clip_sam_tiles(image, sam_encoder):
180 aug_imgs = torch.cat([image])

Callers 1

createFunction · 0.85

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected