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

Function hack_everything

cldm/hack.py:23–28  ·  view source on GitHub ↗
(clip_skip=0)

Source from the content-addressed store, hash-verified

21
22
23def hack_everything(clip_skip=0):
24 disable_verbosity()
25 ldm.modules.encoders.modules.FrozenCLIPEmbedder.forward = _hacked_clip_forward
26 ldm.modules.encoders.modules.FrozenCLIPEmbedder.clip_skip = clip_skip
27 print('Enabled clip hacks.')
28 return
29
30
31# Written by Lvmin

Callers

nothing calls this directly

Calls 1

disable_verbosityFunction · 0.85

Tested by

no test coverage detected