MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / init_dm_model

Function init_dm_model

src/evaluate.py:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def init_dm_model():
54 global dm_model
55 if dm_model is not None:
56 return
57
58 logger.info("Loading PerceptualSimilarity model ..")
59 dm_model = PerceptualSimilarity.dist_model.DistModel()
60 dm_model.initialize(model='net-lin', net='alex', use_gpu=True)
61
62
63def parse_args():

Callers 1

evaluate_imageFunction · 0.85

Calls 1

initializeMethod · 0.95

Tested by

no test coverage detected