rm with-mask config and log .2f for timer.py (#208)

pull/12/head
AllentDan 2021-11-17 17:31:26 +08:00 committed by GitHub
parent acf1dc5d88
commit 45a623966f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 10 deletions

View File

@ -1,4 +1,6 @@
_base_ = ['../_base_/mask_base_dynamic.py', '../../_base_/backends/ppl.py']
_base_ = [
'../_base_/base_instance-seg_dynamic.py', '../../_base_/backends/ppl.py'
]
onnx_config = dict(input_shape=(1344, 800))

View File

@ -1,3 +0,0 @@
_base_ = [
'../_base_/base_instance-seg_dynamic.py', '../../_base_/backends/ppl.py'
]

View File

@ -1,5 +0,0 @@
_base_ = [
'../_base_/base_instance-seg_static.py', '../../_base_/backends/ppl.py'
]
codebase_config = dict(post_processing=dict(export_postprocess_mask=True))

View File

@ -72,7 +72,7 @@ class TimeCounter:
times_per_count = 1000 * execute_time / (
count - warmup)
msg = f'[{func.__name__}]-{count} times per count: '\
f'{times_per_count:.1f} ms, '\
f'{times_per_count:.2f} ms, '\
f'{1000/times_per_count:.2f} FPS'
if cls.file != sys.stdout:
msg += '\n'