MCPcopy Index your code
hub / github.com/modelscope/DiffSynth-Studio / to

Method to

diffsynth/controlnets/processors.py:42–45  ·  view source on GitHub ↗
(self,device)

Source from the content-addressed store, hash-verified

40 self.detect_resolution = detect_resolution
41
42 def to(self,device):
43 if hasattr(self.processor,"model") and hasattr(self.processor.model,"to"):
44
45 self.processor.model.to(device)
46
47 def __call__(self, image, mask=None):
48 width, height = image.size

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected