MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / clear_store

Method clear_store

diffusers/examples/community/fresco_v2v.py:891–896  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

889 }
890
891 def clear_store(self):
892 del self.stored_attn
893 torch.cuda.empty_cache()
894 gc.collect()
895 self.stored_attn = self.get_empty_store()
896 self.disable_intraattn()
897
898 # store attention feature of the input frame for spatial-guided attention
899 def enable_store(self):

Callers 1

get_intraframe_parasFunction · 0.80

Calls 2

get_empty_storeMethod · 0.95
disable_intraattnMethod · 0.95

Tested by

no test coverage detected