MCPcopy
hub / github.com/ali-vilab/AnyDoor / update

Method update

dinov2/dinov2/logging/helpers.py:27–32  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

25 self.output_file = output_file
26
27 def update(self, **kwargs):
28 for k, v in kwargs.items():
29 if isinstance(v, torch.Tensor):
30 v = v.item()
31 assert isinstance(v, (float, int))
32 self.meters[k].update(v)
33
34 def __getattr__(self, attr):
35 if attr in self.meters:

Callers 15

eval_linearFunction · 0.95
evaluateFunction · 0.95
do_trainFunction · 0.95
__init__Method · 0.45
encodeMethod · 0.45
p_lossesMethod · 0.45
p_lossesMethod · 0.45
encodeMethod · 0.45
_make_dinov2_modelFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected