MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / to

Method to

diffsynth/controlnets/controlnet_unit.py:31–35  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

29 model.cpu()
30
31 def to(self, device):
32 for model in self.models:
33 model.to(device)
34 for processor in self.processors:
35 processor.to(device)
36
37 def process_image(self, image, processor_id=None):
38 if processor_id is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected