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

Method parse

options/base_options.py:36–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self._initialized = True
35
36 def parse(self):
37 if not self._initialized:
38 self.initialize()
39 self._opt = self._parser.parse_args()
40
41 # set is train or set
42 self._opt.is_train = self.is_train
43
44 # set and check load_epoch
45 self._set_and_check_load_epoch()
46
47 # get and set gpus
48 self._get_set_gpus()
49
50 args = vars(self._opt)
51
52 # print in terminal args
53 self._print(args)
54
55 # save args to file
56 self._save(args)
57
58 return self._opt
59
60 def _set_and_check_load_epoch(self):
61 models_dir = os.path.join(self._opt.checkpoints_dir, self._opt.name)

Callers 2

__init__Method · 0.80
mainFunction · 0.80

Calls 5

initializeMethod · 0.95
_get_set_gpusMethod · 0.95
_printMethod · 0.95
_saveMethod · 0.95

Tested by 1

mainFunction · 0.64