MCPcopy Create free account
hub / github.com/Pixel-Talk/EHM-Tracker / __init__

Method __init__

src/modules/pixie/pixie.py:42–59  ·  view source on GitHub ↗
(self, config=None, device='cuda:0')

Source from the content-addressed store, hash-verified

40
41class PIXIE(object):
42 def __init__(self, config=None, device='cuda:0'):
43 if config is None:
44 self.cfg = cfg
45 else:
46 self.cfg = config
47
48 self.device = device
49 # parameters setting
50 self.param_list_dict = {}
51 for lst in self.cfg.params.keys():
52 param_list = cfg.params.get(lst)
53 self.param_list_dict[lst] = {
54 i: cfg.model.get('n_'+i) for i in param_list}
55
56 # Build the models
57 self._create_model()
58 # Set up the cropping modules used to generate face/hand crops from the body predictions
59 self._setup_cropper()
60
61 def _setup_cropper(self):
62 self.Cropper = {}

Callers 1

__init__Method · 0.45

Calls 4

_create_modelMethod · 0.95
_setup_cropperMethod · 0.95
keysMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected