MCPcopy Create free account
hub / github.com/chenfei-wu/TaskMatrix / __init__

Method __init__

visual_chatgpt.py:383–385  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

381
382class Image2Line:
383 def __init__(self, device):
384 print("Initializing Image2Line")
385 self.detector = MLSDdetector.from_pretrained('lllyasviel/ControlNet')
386
387 @prompts(name="Line Detection On Image",
388 description="useful when you want to detect the straight line of the image. "

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected