MCPcopy Create free account
hub / github.com/OpenTalker/StyleHEAT / __init__

Method __init__

utils/lpips.py:49–52  ·  view source on GitHub ↗
(self, use_gpu=True)

Source from the content-addressed store, hash-verified

47
48class LPIPS():
49 def __init__(self, use_gpu=True):
50 self.model = dm.DistModel()
51 self.model.initialize(model='net-lin', net='alex', use_gpu=use_gpu)
52 self.use_gpu = use_gpu
53
54 def __call__(self, image_1, image_2):
55 """

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected