MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / count_parameters

Function count_parameters

dzoedepth/utils/misc.py:155–156  ·  view source on GitHub ↗
(model, include_all=False)

Source from the content-addressed store, hash-verified

153
154
155def count_parameters(model, include_all=False):
156 return sum(p.numel() for p in model.parameters() if p.requires_grad or include_all)
157
158
159def compute_errors(gt, pred):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected