Techt3o's picture
b9e876b2bcec19ad9413c7406a81140932a9ab818b77fb491c8f4ac74828cb4f
2f5ca7a verified
raw
history blame
304 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)