MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / get_param_groups

Method get_param_groups

models/base.py:360–361  ·  view source on GitHub ↗
(self, parameters)

Source from the content-addressed store, hash-verified

358 # Get param groups that will be passed into the optimizer. Models can override this, e.g. SDXL
359 # supports separate learning rates for unet and text encoders.
360 def get_param_groups(self, parameters):
361 return [{'params': parameters}]
362
363 # Default loss_fn. MSE between output and target, with mask support.
364 def get_loss_fn(self):

Callers 1

get_optimizerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected