Spaces:
Runtime error
Runtime error
File size: 413 Bytes
fc16538 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# TRI-VIDAR - Copyright 2022 Toyota Research Institute. All rights reserved.
import torch
from vidar.arch.networks.depth.MonoDepthResNet import MonoDepthResNet
from vidar.utils.config import read_config
### Create network
cfg = read_config('demos/run_network/config.yaml')
net = MonoDepthResNet(cfg)
### Create dummy input and run network
rgb = torch.randn((2, 3, 128, 128))
depth = net(rgb=rgb)['depths']
|