pablovela5620's picture
initial commit with working dpvo
899c526
raw
history blame
297 Bytes
import torch
import cuda_ba
neighbors = cuda_ba.neighbors
reproject = cuda_ba.reproject
def BA(poses, patches, intrinsics, target, weight, lmbda, ii, jj, kk, t0, t1, iterations=2):
return cuda_ba.forward(poses.data, patches, intrinsics, target, weight, lmbda, ii, jj, kk, t0, t1, iterations)