Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kapture/core/PoseTransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, r=[1, 0, 0, 0], t=[0, 0, 0]):
# already a quaternion : copy aziz (lumière)
self._r = r
elif isinstance(r, (list, np.ndarray, np.generic)):
# its a list or numpy => convert to quaternion if valid
# it's a list or numpy => convert to quaternion if valid
self._r = quaternion.from_float_array(r)
else: # unknown entry
self._r = None
Expand All @@ -47,7 +47,7 @@ def __init__(self, r=[1, 0, 0, 0], t=[0, 0, 0]):
# numpy : copy aziz lumière
self._t = t
elif isinstance(t, list):
# its a list: convert to numpy if valid
# it's a list: convert to numpy if valid
self._t = np.array(t, dtype=float)
else:
self._t = None
Expand All @@ -59,7 +59,7 @@ def __init__(self, r=[1, 0, 0, 0], t=[0, 0, 0]):
# sum trick from https://stackoverflow.com/questions/6736590/fast-check-for-nan-in-numpy
self._t = None
else:
# make sure af the shape of t
# make sure of the shape of t
self._t = self._t.reshape((3, 1))

@property
Expand Down
2 changes: 1 addition & 1 deletion kapture/core/Sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def camera_params(self) -> List[float]:

def create_sensor(sensor_type: str, sensor_params: Optional[list] = None, name: Optional[str] = None):
"""
Creates a instance of a sensor
Creates an instance of a sensor

:param sensor_type: type of sensor ('camera', ...)
:param sensor_params: sensor specific parameters
Expand Down
2 changes: 1 addition & 1 deletion kapture/io/binary.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2020-present NAVER Corp. Under BSD 3-clause license

"""
This files contains IO operations on binary file.
This file contains IO operations on binary file.
"""
import os
import os.path as path
Expand Down
2 changes: 1 addition & 1 deletion tools/kapture_export_4seasons_pairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def export_4seasons_pairfile(kapture_dir_path: str,
for mapping_ts, query_ts in tqdm(pairs, disable=hide_progress):
try:
if mapping_ts not in kapture_data.trajectories:
# mapping, means its probab
# mapping, means its probable
raise IndexError(f'No pose available in trajectory for mapping at time {mapping_ts}. '
f'Have you merged mapping and query in the same kapture dataset ?')

Expand Down
4 changes: 2 additions & 2 deletions tools/kapture_export_LTVL2020.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def export_ltvl(kapture_dirpath: str,
:param prepend_camera_name: 2nd operation, if True, it will prepend the camera name to the image file names
:param truncate_extensions: 3rd operation, if True, name is image_name before the first dot
"""
# only load (1) image records + (2) trajectories (that all that matters).
# only load (1) image records + (2) trajectories (that's all that matters).
# 1: load records
records_camera_filepath = kapture.io.csv.get_csv_fullpath(kapture.RecordsCamera, kapture_dirpath)
logger.debug(f'loading {records_camera_filepath}')
Expand Down Expand Up @@ -125,7 +125,7 @@ def export_ltvl2020_command_line() -> None:
parser.add_argument('-p', '--prepend_cam', action='store_true', default=False,
help=('2nd operation applied: '
'when False (default), nothing is changed.'
'wen True, prepend camera names to filename (required for some dataset)'))
'when True, prepend camera names to filename (required for some dataset)'))
parser.add_argument('--truncate-extensions', action='store_true', default=False,
help=('2nd operation applied: '
'when False (default), nothing is changed.'
Expand Down
Loading