Skip to content
Open
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
16 changes: 14 additions & 2 deletions core/foundation_stereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# license agreement from NVIDIA CORPORATION is strictly prohibited.


import argparse

import torch,pdb,logging,timm
import torch.nn as nn
import torch.nn.functional as F
Expand Down Expand Up @@ -124,8 +126,18 @@ def forward(self, x, features):



class FoundationStereo(nn.Module, huggingface_hub.PyTorchModelHubMixin):
def __init__(self, args):
class FoundationStereo(nn.Module, huggingface_hub.PyTorchModelHubMixin,
repo_url="https://github.com/NVlabs/FoundationStereo",
paper_url="https://huggingface.co/papers/2501.09898",
pipeline_tag="depth-estimation",
license="other",
coders={
argparse.Namespace : (
lambda x: vars(x),
lambda data: argparse.Namespace(**data),
)
}):
def __init__(self, args: argparse.Namespace):
super().__init__()
self.args = args

Expand Down