MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / downscale_pose

Function downscale_pose

dataset_loaders/cambridge_scenes.py:106–110  ·  view source on GitHub ↗

downscale translation pose to [-1:1] only

(poses, sc)

Source from the content-addressed store, hash-verified

104 return poses[:,:3,:].reshape(poses.shape[0],12)
105
106def downscale_pose(poses, sc):
107 ''' downscale translation pose to [-1:1] only '''
108 target_pose = poses.reshape(poses.shape[0],3,4)
109 target_pose[:,:3,3] = target_pose[:,:3,3] * sc
110 return target_pose.reshape(poses.shape[0],12)
111
112class Cambridge2(data.Dataset):
113 def __init__(self, scene, data_path, train, transform=None,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected