MCPcopy Create free account
hub / github.com/NVIDIA/vid2vid / initialize

Method initialize

models/base_model.py:10–15  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

8 return 'BaseModel'
9
10 def initialize(self, opt):
11 self.opt = opt
12 self.gpu_ids = opt.gpu_ids
13 self.isTrain = opt.isTrain
14 self.Tensor = torch.cuda.FloatTensor if self.gpu_ids else torch.Tensor
15 self.save_dir = os.path.join(opt.checkpoints_dir, opt.name)
16
17 def set_input(self, input):
18 self.input = input

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected