Spaces:
Running
on
Zero
Running
on
Zero
File size: 339 Bytes
6bc32b6 |
1 2 3 4 5 6 7 8 9 10 11 |
# Copyright (c) Meta Platforms, Inc. and affiliates.
from .base import DepthModel
class MoGe(DepthModel):
def __call__(self, image):
output = self.model.infer(
image.to(self.device), force_projection=False
)
pointmaps = output["points"]
output["pointmaps"] = pointmaps
return output |