Giter Club home page Giter Club logo

Comments (5)

fcakyon avatar fcakyon commented on June 7, 2024

I also tried with this config:

_base_ = [
    '../../_base_/models/retinanet_r50_fpn.py',
    '../../_base_/datasets/custom_cocovid_dataset.py',
    '../../_base_/default_runtime.py'
]

model = dict(
    type='SELSA',
    pretrains=None,
    detector=dict(
        bbox_head=dict(
            type='SelsaBBoxHead',
            num_shared_fcs=2,
            aggregator=dict(
                type='SelsaAggregator',
                in_channels=1024,
                num_attention_blocks=16
            ),
            num_classes=1,
        )
    )
)

This time Im getting a different error:

Traceback (most recent call last):
  File "tools/train.py", line 168, in <module>
    main()
  File "tools/train.py", line 141, in main
    model = build_model(cfg.model)
  File "mmtracking\mmtrack\models\builder.py", line 69, in build_model
    return build(cfg, MODELS)
  File "mmtracking\mmtrack\models\builder.py", line 34, in build
    return build_from_cfg(cfg, registry, default_args)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmcv\utils\registry.py", line 171, in build_from_cfg
    return obj_cls(**args)
  File "mmtracking\mmtrack\models\vid\selsa.py", line 23, in __init__
    self.detector = build_detector(detector)
  File "mmtracking\mmtrack\models\builder.py", line 60, in build_detector
    return build(cfg, DETECTORS)
  File "mmtracking\mmtrack\models\builder.py", line 34, in build
    return build_from_cfg(cfg, registry, default_args)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmcv\utils\registry.py", line 171, in build_from_cfg
    return obj_cls(**args)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmdet\models\detectors\retinanet.py", line 16, in __init__
    super(RetinaNet, self).__init__(backbone, neck, bbox_head, train_cfg,
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmdet\models\detectors\single_stage.py", line 30, in __init__        
    self.bbox_head = build_head(bbox_head)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmdet\models\builder.py", line 59, in build_head
    return build(cfg, HEADS)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmdet\models\builder.py", line 34, in build
    return build_from_cfg(cfg, registry, default_args)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmcv\utils\registry.py", line 171, in build_from_cfg
    return obj_cls(**args)
  File "mmtracking\mmtrack\models\roi_heads\bbox_heads\selsa_bbox_head.py", line 19, in __init__
    super(SelsaBBoxHead, self).__init__(*args, **kwargs)
  File "C:\Users\FCA\Miniconda3\envs\mmtracking\lib\site-packages\mmdet\models\roi_heads\bbox_heads\convfc_bbox_head.py", line 33, in __init__
    super(ConvFCBBoxHead, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'stacked_convs'

from mmtracking.

GT9505 avatar GT9505 commented on June 7, 2024

SELSA need aggregate the features of proposals, and RetinaNet doesn't own proposals. Therefore, SELSA cann't be applied into RetinaNet.

from mmtracking.

fcakyon avatar fcakyon commented on June 7, 2024

@GT9505 i see. how to train selsa with proposal generating detectors other than fasterrcnn? config stays the same and i only need to change the base model config?

from mmtracking.

GT9505 avatar GT9505 commented on June 7, 2024

The architecture of second stage in fasterrcnn is RoI Align -> fc1 -> fc2 -> cls/reg, and selsa is plugged after each fc (RoI Align -> fc1 -> selsa -> fc2 -> selsa -> cls/reg).
Thus, for the image detectors having the similar architecture with fasterrcnn, you just need to modify the base model config. Otherwise, you need change the code.

from mmtracking.

fcakyon avatar fcakyon commented on June 7, 2024

@GT9505 thanks for the feedback

from mmtracking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.