MCPcopy Create free account
hub / github.com/SystemErrorWang/White-box-Cartoonization / process_slic

Function process_slic

train_code/utils.py:111–115  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

109def simple_superpixel(batch_image, seg_num=200):
110
111 def process_slic(image):
112 seg_label = segmentation.slic(image, n_segments=seg_num, sigma=1,
113 compactness=10, convert2lab=True)
114 image = color.label2rgb(seg_label, image, kind='mix')
115 return image
116
117 num_job = np.shape(batch_image)[0]
118 batch_out = Parallel(n_jobs=num_job)(delayed(process_slic)\

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected