MCPcopy Create free account
hub / github.com/albertpumarola/GANimation / __init__

Method __init__

models/models.py:25–33  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

23class BaseModel(object):
24
25 def __init__(self, opt):
26 self._name = 'BaseModel'
27
28 self._opt = opt
29 self._gpu_ids = opt.gpu_ids
30 self._is_train = opt.is_train
31
32 self._Tensor = torch.cuda.FloatTensor if self._gpu_ids else torch.Tensor
33 self._save_dir = os.path.join(opt.checkpoints_dir, opt.name)
34
35
36 @property

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected