open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.31k stars 1.25k forks source link

AttributeError: FasterRCNN: 'ConfigDict' object has no attribute 'rpn' #2020

Closed adao777 closed 2 years ago

adao777 commented 2 years ago

Hi. config file: slowonly_omnisource_pretrained_r50_4x16x1_20e_ava_rgb.py I tried to use FasterRCNN for FastRCNN. model = dict( type='FasterRCNN',

I also added the following content to the config file but got error. rpn_head=dict( type='RPNHead', in_channels=256, feat_channels=256, anchor_generator=dict( type='AnchorGenerator', scales=[8], ratios=[0.5, 1.0, 2.0], strides=[4, 8, 16, 32, 64]), bbox_coder=dict( type='DeltaXYWHBBoxCoder', target_means=[.0, .0, .0, .0], target_stds=[1.0, 1.0, 1.0, 1.0]), loss_cls=dict( type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0), loss_bbox=dict(type='L1Loss', loss_weight=1.0)),

hukkai commented 2 years ago

FasterRCNN is not supported now.

adao777 commented 2 years ago

@Kai Hu  Thank you.  

王俊 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Kai @.>; 发送时间: 2022年10月26日(星期三) 上午6:15 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-mmlab/mmaction2] AttributeError: FasterRCNN: 'ConfigDict' object has no attribute 'rpn' (Issue #2020)

FasterRCNN is not supported now.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>