Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/doubletake/experiment_modules/doubletake_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
from doubletake.utils.metrics_utils import compute_depth_metrics
from doubletake.utils.visualization_utils import colormap_image

from huggingface_hub import PyTorchModelHubMixin

logger = logging.getLogger(__name__)


class DepthModelCVHint(pl.LightningModule):
class DepthModelCVHint(pl.LightningModule, PyTorchModelHubMixin, repo_url="https://github.com/nianticlabs/doubletake", pipeline_tag="image-to-3d", license="other"):
"""Class for DoubleTake depth estimators.

This class handles training and inference for DoubleTake models.
Expand Down
4 changes: 3 additions & 1 deletion src/doubletake/experiment_modules/sr_depth_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
from doubletake.utils.metrics_utils import compute_depth_metrics
from doubletake.utils.visualization_utils import colormap_image

from huggingface_hub import PyTorchModelHubMixin

logger = logging.getLogger(__name__)


class DepthModel(pl.LightningModule):
class DepthModel(pl.LightningModule, PyTorchModelHubMixin, repo_url="https://github.com/nianticlabs/doubletake", pipeline_tag="image-to-3d", license="other"):
"""Class for SimpleRecon depth estimators.

This class handles training and inference for SimpleRecon models.
Expand Down