diff --git a/happypose/pose_estimators/cosypose/cosypose/integrated/detector.py b/happypose/pose_estimators/cosypose/cosypose/integrated/detector.py index 3a2a6d96..a968a1b1 100644 --- a/happypose/pose_estimators/cosypose/cosypose/integrated/detector.py +++ b/happypose/pose_estimators/cosypose/cosypose/integrated/detector.py @@ -12,6 +12,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu") + class Detector(DetectorModule): def __init__(self, model, ds_name): super().__init__() diff --git a/happypose/pose_estimators/megapose/inference/detector.py b/happypose/pose_estimators/megapose/inference/detector.py index e15aee69..84b01dbc 100644 --- a/happypose/pose_estimators/megapose/inference/detector.py +++ b/happypose/pose_estimators/megapose/inference/detector.py @@ -31,6 +31,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu") + class Detector(DetectorModule): def __init__(self, model: torch.nn.Module) -> None: super().__init__()