get+normals work on batches
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ class Dataset(Dataset):
|
||||
|
||||
start = time.perf_counter()
|
||||
# TODO: is it sure I need this K, and not some transformed one?
|
||||
normal_image = get_normals_from_depth(depth_image[None,:,:], depth_mask[None,:,:], K)
|
||||
normal_image = get_normals_from_depth(depth_image[None,None,:,:], depth_mask[None,:,:], K)
|
||||
print(f'normals time: {time.perf_counter() - start}')
|
||||
|
||||
depth_mask_body = (pix_to_face <= body_faces.shape[0]) * depth_mask
|
||||
|
||||
Reference in New Issue
Block a user