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

Method __init__

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

Source from the content-addressed store, hash-verified

706
707class Image2Normal:
708 def __init__(self, device):
709 print("Initializing Image2Normal")
710 self.depth_estimator = pipeline("depth-estimation", model="Intel/dpt-hybrid-midas")
711 self.bg_threhold = 0.4
712
713 @prompts(name="Predict Normal Map On Image",
714 description="useful when you want to detect norm map of the image. "

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected