Skip to content

Commit e1c4560

Browse files
authored
Merge pull request #9 from sovrasov/vs/tiny_fixes
pylint-related fixes
2 parents 10cfa8f + 1970620 commit e1c4560

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

annotation_converters/objectron_2_coco.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ def load_video_info(data_root, subset, classes):
3030
avg_vid_len += len(ann)
3131
vid_path = osp.join(data_root, 'videos' + osp.sep + line.strip() + osp.sep + 'video.MOV')
3232
videos_info.append((vid_path, ann))
33-
if len(videos_info) > 2:
34-
break
3533

3634
avg_vid_len /= len(videos_info)
3735
return videos_info, avg_vid_len

annotation_converters/objectron_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from objectron.schema import annotation_data_pb2 as annotation_protocol
21
import os
32
import sys
43
import subprocess
@@ -11,6 +10,9 @@
1110
if module_path not in sys.path:
1211
sys.path.append(module_path)
1312

13+
#pylint: disable = wrong-import-position
14+
from objectron.schema import annotation_data_pb2 as annotation_protocol
15+
1416
# The annotations are stored in protocol buffer format.
1517
# The AR Metadata captured with each frame in the video
1618

tests/run_pylint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
'3rdparty/',
1111
'setup.py',
1212
'configs/detection',
13+
'.history/',
1314
'torchdet3d/models'
1415
]
1516

0 commit comments

Comments
 (0)