MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / __init__

Method __init__

code/eval_metrics.py:31–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29
30class psm_wrapper:
31 def __init__(self):
32 self.device = "cuda" if torch.cuda.is_available() else "cpu"
33 self.lpips = LearnedPerceptualImagePatchSimilarity(net_type='alex').to(self.device)
34
35 @torch.no_grad()
36 def __call__(self, img1, img2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected