We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e855ee4 commit a2b3ab3Copy full SHA for a2b3ab3
4 files changed
.github/workflows/build.yml
@@ -44,6 +44,7 @@ jobs:
44
- name: Install unittest dependencies
45
run: |
46
pip install -r requirements.txt
47
+ pip install -U numpy
48
- name: Build and install
49
run: rm -rf .eggs && pip install -e .
50
- name: Run unittests and generate coverage report
@@ -85,6 +86,7 @@ jobs:
85
86
python -V
87
python -m pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.torch_version}}/index.html
88
python -m pip install -r requirements.txt
89
+ python -m pip install -U numpy
90
91
92
rm -rf .eggs && python -m pip install -e .
@@ -128,6 +130,7 @@ jobs:
128
130
129
131
python -m pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cu111/${{matrix.torch_version}}/index.html
132
133
134
135
136
requirements/optional.txt
@@ -1,7 +1,7 @@
1
mmcls>=0.15.0,<=0.19.0
2
-mmdet>=2.19.0
+mmdet>=2.19.0,<=2.20.0
3
mmedit
4
-mmocr==0.3.0
+mmocr>=0.3.0
5
mmsegmentation
6
onnxruntime>=1.8.0
7
openvino-dev
tests/test_codebase/test_mmocr/test_mmocr_models.py
@@ -74,7 +74,7 @@ def get_encode_decode_recognizer_model():
74
cfg = dict(
75
preprocessor=None,
76
backbone=dict(type='VeryDeepVgg', leaky_relu=False, input_channels=1),
77
- encoder=dict(type='TFEncoder'),
+ encoder=None,
78
decoder=dict(type='CRNNDecoder', in_channels=512, rnn_flag=True),
79
loss=dict(type='CTCLoss'),
80
label_convertor=dict(
@@ -394,12 +394,15 @@ def test_forward_of_fpnc(backend: Backend):
394
model_inputs=[
395
dict(
396
input_shapes=dict(
397
- input=dict(
+ inputs=dict(
398
min_shape=[1, 3, 64, 64],
399
opt_shape=[1, 3, 64, 64],
400
max_shape=[1, 3, 64, 64])))
401
]),
402
- onnx_config=dict(input_shape=[64, 64], output_names=['output']),
+ onnx_config=dict(
403
+ input_shape=None,
404
+ input_names=['inputs'],
405
+ output_names=['output']),
406
codebase_config=dict(type='mmocr', task='TextDetection')))
407
408
input = torch.rand(1, 3, 64, 64).cuda()
tests/test_codebase/test_mmocr/test_text_detection_models.py
@@ -60,6 +60,7 @@ def test_forward(self, ori_shape):
60
'ori_shape': ori_shape,
61
'img_shape': [IMAGE_SIZE, IMAGE_SIZE, 3],
62
'scale_factor': [1., 1., 1., 1.],
63
+ 'filename': ''
64
}]]
65
results = self.end2end_model.forward(imgs, img_metas)
66
assert results is not None, 'failed to get output using '\
0 commit comments