MCPcopy Create free account
hub / github.com/TencentARC/T2I-Adapter / __init__

Method __init__

Adapter/extra_condition/openpose/api.py:18–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16class OpenposeInference(nn.Module):
17
18 def __init__(self):
19 super().__init__()
20 body_modelpath = os.path.join('checkpoints', "body_pose_model.pth")
21
22 if not os.path.exists(body_modelpath):
23 from basicsr.utils.download_util import load_file_from_url
24 load_file_from_url(remote_model_path, model_dir='checkpoints')
25
26 self.body_estimation = Body(body_modelpath)
27
28 def forward(self, x):
29 x = x[:, :, ::-1].copy()

Callers 1

__init__Method · 0.45

Calls 1

BodyClass · 0.85

Tested by

no test coverage detected