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

Method __init__

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

Source from the content-addressed store, hash-verified

439
440class Image2Hed:
441 def __init__(self, device):
442 print("Initializing Image2Hed")
443 self.detector = HEDdetector.from_pretrained('lllyasviel/ControlNet')
444
445 @prompts(name="Hed Detection On Image",
446 description="useful when you want to detect the soft hed boundary of the image. "

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected