MCPcopy
hub / github.com/KlingAIResearch/ReCamMaster / 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 15

__getitem__Method · 0.45
test_stepMethod · 0.45
__getitem__Method · 0.45
training_stepMethod · 0.45
__init__Method · 0.45
offloadMethod · 0.45
onloadMethod · 0.45
forwardMethod · 0.45
offloadMethod · 0.45
onloadMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 1

test_stepMethod · 0.36