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

Class ReMapping

process_stylization.py:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17class ReMapping:
18 def __init__(self):
19 self.remapping = []
20
21 def process(self, seg):
22 new_seg = seg.copy()
23 for k, v in self.remapping.items():
24 new_seg[seg == k] = v
25 return new_seg
26
27
28class Timer:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected