MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / disabled_train

Function disabled_train

ldm/modules/midas/api.py:22–25  ·  view source on GitHub ↗

Overwrite model.train with this function to make sure train/eval mode does not change anymore.

(self, mode=True)

Source from the content-addressed store, hash-verified

20
21
22def disabled_train(self, mode=True):
23 """Overwrite model.train with this function to make sure train/eval mode
24 does not change anymore."""
25 return self
26
27
28def load_midas_transform(model_type):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected