mmtracking
mmtracking copied to clipboard
NameError: name 'file_client_args' is not defined
How to solve this error
Sorry, I gave the wrong configuration file. The correct one is as follows. Just delete this parameter.
dataset_type = 'CocoDataset'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile', to_float32=True),
dict(type='LoadAnnotations', with_bbox=True),
dict(
type='Resize',
img_scale=(1088, 1088),
ratio_range=(0.8, 1.2),
keep_ratio=True,
bbox_clip_border=False),
dict(type='PhotoMetricDistortion'),
dict(type='RandomCrop', crop_size=(1088, 1088), bbox_clip_border=False),
dict(type='RandomFlip', flip_ratio=0.5),
dict(type='Normalize', **img_norm_cfg),
dict(type='Pad', size_divisor=32),
dict(type='DefaultFormatBundle'),
dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels'])
]
test_pipeline = [
dict(type='LoadImageFromFile'),
dict(
type='MultiScaleFlipAug',
img_scale=(1088, 1088),
flip=False,
transforms=[
dict(type='Resize', keep_ratio=True),
dict(type='RandomFlip'),
dict(type='Normalize', **img_norm_cfg),
dict(type='Pad', size_divisor=32),
dict(type='ImageToTensor', keys=['img']),
dict(type='Collect', keys=['img'])
])
]
data_root = 'data/MOT17/'
data = dict(
samples_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
ann_file=data_root + 'annotations/half-train_cocoformat.json',
img_prefix=data_root + 'train',
classes=('pedestrian', ),
pipeline=train_pipeline),
val=dict(
type=dataset_type,
ann_file=data_root + 'annotations/half-val_cocoformat.json',
img_prefix=data_root + 'train',
classes=('pedestrian', ),
pipeline=test_pipeline),
test=dict(
type=dataset_type,
ann_file=data_root + 'annotations/half-val_cocoformat.json',
img_prefix=data_root + 'train',
classes=('pedestrian', ),
pipeline=test_pipeline))
Sorry, I gave the wrong configuration file. The correct one is as follows. Just delete this parameter.
dataset_type = 'CocoDataset' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile', to_float32=True), dict(type='LoadAnnotations', with_bbox=True), dict( type='Resize', img_scale=(1088, 1088), ratio_range=(0.8, 1.2), keep_ratio=True, bbox_clip_border=False), dict(type='PhotoMetricDistortion'), dict(type='RandomCrop', crop_size=(1088, 1088), bbox_clip_border=False), dict(type='RandomFlip', flip_ratio=0.5), dict(type='Normalize', **img_norm_cfg), dict(type='Pad', size_divisor=32), dict(type='DefaultFormatBundle'), dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels']) ] test_pipeline = [ dict(type='LoadImageFromFile'), dict( type='MultiScaleFlipAug', img_scale=(1088, 1088), flip=False, transforms=[ dict(type='Resize', keep_ratio=True), dict(type='RandomFlip'), dict(type='Normalize', **img_norm_cfg), dict(type='Pad', size_divisor=32), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img']) ]) ] data_root = 'data/MOT17/' data = dict( samples_per_gpu=2, workers_per_gpu=2, train=dict( type=dataset_type, ann_file=data_root + 'annotations/half-train_cocoformat.json', img_prefix=data_root + 'train', classes=('pedestrian', ), pipeline=train_pipeline), val=dict( type=dataset_type, ann_file=data_root + 'annotations/half-val_cocoformat.json', img_prefix=data_root + 'train', classes=('pedestrian', ), pipeline=test_pipeline), test=dict( type=dataset_type, ann_file=data_root + 'annotations/half-val_cocoformat.json', img_prefix=data_root + 'train', classes=('pedestrian', ), pipeline=test_pipeline))
Sorry, It is my problem, If I check it, i will find the obvious error.
hello I encountered this error with this configuration file ,how did you solve it. @pixeli99 @lijinrun
You are using a metric
method that is not supported. When running python test.py
, please note the argument after --eval
.
You are using a
metric
method that is not supported. When runningpython test.py
, please note the argument after--eval
. Hello thanks for your reply . But this is runningpython train.py
, val after train epoch. how to solve this argument .
Hi, I would like to ask about this error.Which parameter should I delete?