MCPcopy Create free account
hub / github.com/NVIDIA/FastPhotoStyle / __init__

Method __init__

process_stylization_ade20k_ssn.py:44–46  ·  view source on GitHub ↗
(self, mapping_name, min_ratio=0.02)

Source from the content-addressed store, hash-verified

42
43class SegReMapping:
44 def __init__(self, mapping_name, min_ratio=0.02):
45 self.label_mapping = np.load(mapping_name)
46 self.min_ratio = min_ratio
47
48 def cross_remapping(self, cont_seg, styl_seg):
49 cont_label_info = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected