Skip to content

Commit 32f53d8

Browse files
committed
linter
1 parent 35771e8 commit 32f53d8

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

tools/accuracy_checker/.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ disable = C0103,
2121
max-line-length = 120
2222
ignore-docstrings = yes
2323
extension-pkg-whitelist=inference_engine,cv2,numpy,mxnet,tensorflow,pycocotools,onnxruntime
24-
ignored-modules = numpy,cv2,openvino.inference_engine,caffe,mxnet,tensorflow,pycocotools,onnxruntime
24+
ignored-modules = numpy,cv2,openvino.inference_engine,caffe,mxnet,tensorflow,pycocotools,onnxruntime,torch
2525
load-plugins = pylint_checkers
2626
ignored-classes = pathlib.PurePath
2727
jobs=0

tools/accuracy_checker/accuracy_checker/launcher/pytorch_launcher.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _generate_inputs(self):
6464

6565
@property
6666
def inputs(self):
67-
return self._inputs
67+
return self._inputs
6868

6969
@property
7070
def batch(self):
@@ -99,7 +99,7 @@ def fit_to_input(self, data, layer_name, layout):
9999
with torch.no_grad():
100100
return Variable(tensor)
101101

102-
def predict(self,inputs, metadata=None, **kwargs):
102+
def predict(self, inputs, metadata=None, **kwargs):
103103
results = []
104104
for batch_input in inputs:
105105
outputs = list(self.module(*batch_input.values()))
@@ -111,6 +111,9 @@ def predict(self,inputs, metadata=None, **kwargs):
111111

112112
return results
113113

114+
def predict_async(self, *args, **kwargs):
115+
raise ValueError('MxNet Launcher does not support async mode yet')
116+
114117
def release(self):
115118
del self.module
116119

tools/accuracy_checker/dataset_definitions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ datasets:
6060
- name: imagenet_1000_classes
6161
annotation_conversion:
6262
converter: imagenet
63-
annotation_file: val.txt
63+
annotation_file: /home/automation/datasets/imagenet/val.txt
6464
annotation: imagenet1000.pickle
65-
data_source: ILSVRC2012_img_val
65+
data_source: /home/automation/datasets/imagenet/images
6666
metrics:
6767
- name: accuracy@top1
6868
type: accuracy

tools/accuracy_checker/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ ignore = F401
55
[isort]
66
line_length = 120
77
use_parentheses = True
8-
known_third_party = openvino.inference_engine,caffe,cv2,mxnet,tensorflow
8+
known_third_party = openvino.inference_engine,caffe,cv2,mxnet,tensorflow,torch

0 commit comments

Comments
 (0)