new config file but get 0 in mAP metric #918
mahilaMoghadami
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello
I trained ooyoloe with mmyolo on VisDrone dataset which is converted to coco format annotation.
after training 100 epochs, I got 0.0 mAP
this is my config file and i need help if you think there is problem with my config file.
appreciate for your help
config file:
base = 'ppyoloe_s_fast_8xb32-300e_coco.py'
data_root = '/media/2TB_1/moghadami/YOLO/datasets/VisDrone/COCO/'
class_name = ('pedestrian', 'people','bicycle','car', 'van', 'truck', 'tricycle', 'awning-tricycle', 'bus', 'motor')
num_classes = len(class_name)
metainfo = dict(classes=class_name, palette=[(20, 220, 60)])
num_last_epochs = 5
max_epochs = 300
train_batch_size_per_gpu = 8
train_num_workers = 2
load_from = 'https://download.openmmlab.com/mmyolo/v0/ppyoloe/ppyoloe_plus_s_fast_8xb8-80e_coco/ppyoloe_plus_s_fast_8xb8-80e_coco_20230101_154052-9fee7619.pth' # noqa
model = dict(
backbone=dict(frozen_stages=4),
bbox_head=dict(head_module=dict(num_classes=num_classes)),
train_cfg=dict(
initial_assigner=dict(num_classes=num_classes),
assigner=dict(num_classes=num_classes)))
train_dataloader = dict(
batch_size=train_batch_size_per_gpu,
num_workers=train_num_workers,
dataset=dict(
data_root=data_root,
metainfo=metainfo,
ann_file='annotations/VisDrone2019-DET-train.json',
data_prefix=dict(img='VisDrone2019-DET-train/')))
val_dataloader = dict(
dataset=dict(
metainfo=metainfo,
data_root=data_root,
ann_file='annotations/VisDrone2019-DET-val.json',
data_prefix=dict(img='VisDrone2019-DET-val/')))
test_dataloader = val_dataloader
default_hooks = dict(
param_scheduler=dict(
warmup_min_iter=10,
warmup_epochs=3,
total_epochs=int(max_epochs * 1.2)))
val_evaluator = dict(ann_file=data_root + 'annotations/VisDrone2019-DET-val.json')
test_evaluator = val_evaluator
default_hooks = dict(
checkpoint=dict(interval=10, max_keep_ckpts=2, save_best='auto'),
logger=dict(type='LoggerHook', interval=5))
train_cfg = dict(max_epochs=max_epochs, val_interval=10)
visualizer = dict(vis_backends = [dict(type='LocalVisBackend'), dict(type='WandbVisBackend')]) # noqa
Beta Was this translation helpful? Give feedback.
All reactions