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

Method update_fixed_params

models/base_model.py:161–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 self.old_lr = lr
160
161 def update_fixed_params(self): # finetune all scales instead of just finest scale
162 params = []
163 for s in range(self.n_scales):
164 params += list(getattr(self, 'netG'+str(s)).parameters())
165 self.optimizer_G = torch.optim.Adam(params, lr=self.old_lr, betas=(self.opt.beta1, 0.999))
166 self.finetune_all = True
167 print('------------ Now finetuning all scales -----------')
168
169 def update_training_batch(self, ratio): # increase number of backpropagated frames and number of frames in each GPU
170 nfb = self.n_frames_bp

Callers 2

init_paramsFunction · 0.80
update_modelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected