repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
GFocalV2 | GFocalV2-master/tests/test_assigner.py | """Tests the Assigner objects.
CommandLine:
pytest tests/test_assigner.py
xdoctest tests/test_assigner.py zero
"""
import torch
from mmdet.core.bbox.assigners import (ApproxMaxIoUAssigner,
CenterRegionAssigner, MaxIoUAssigner,
Point... | 11,913 | 30.435356 | 78 | py |
GFocalV2 | GFocalV2-master/tests/test_fp16.py | import numpy as np
import pytest
import torch
import torch.nn as nn
from mmcv.runner import auto_fp16, force_fp32
from mmcv.runner.fp16_utils import cast_tensor_type
def test_cast_tensor_type():
inputs = torch.FloatTensor([5.])
src_type = torch.float32
dst_type = torch.int32
outputs = cast_tensor_type... | 9,714 | 31.275748 | 75 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_roi_extractor.py | import pytest
import torch
from mmdet.models.roi_heads.roi_extractors import GenericRoIExtractor
def test_groie():
# test with pre/post
cfg = dict(
roi_layer=dict(type='RoIAlign', output_size=7, sampling_ratio=2),
out_channels=256,
featmap_strides=[4, 8, 16, 32],
pre_cfg=dict(... | 3,209 | 27.157895 | 77 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_forward.py | """pytest tests/test_forward.py."""
import copy
from os.path import dirname, exists, join
import numpy as np
import pytest
import torch
def _get_config_directory():
"""Find the predefined detector config directory."""
try:
# Assume we are running in the source mmdetection repo
repo_dpath = di... | 12,095 | 30.664921 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_backbones.py | import pytest
import torch
from mmcv.ops import DeformConv2dPack
from torch.nn.modules import AvgPool2d, GroupNorm
from torch.nn.modules.batchnorm import _BatchNorm
from mmdet.models.backbones import RegNet, Res2Net, ResNet, ResNetV1d, ResNeXt
from mmdet.models.backbones.hourglass import HourglassNet
from mmdet.models... | 29,683 | 33.637106 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_necks.py | import pytest
import torch
from torch.nn.modules.batchnorm import _BatchNorm
from mmdet.models.necks import FPN, ChannelMapper
def test_fpn():
"""Tests fpn."""
s = 64
in_channels = [8, 16, 32, 64]
feat_sizes = [s // 2**i for i in range(4)] # [64, 32, 16, 8]
out_channels = 8
# `num_outs` is n... | 7,781 | 31.560669 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_heads.py | import mmcv
import numpy as np
import torch
from mmdet.core import bbox2roi, build_assigner, build_sampler
from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps
from mmdet.models.dense_heads import (AnchorHead, CornerHead, FCOSHead,
FSAFHead, GuidedAnchorHead, PAAHead,
... | 46,020 | 36.385053 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_pisa_heads.py | import mmcv
import torch
from mmdet.models.dense_heads import PISARetinaHead, PISASSDHead
from mmdet.models.roi_heads import PISARoIHead
def test_pisa_retinanet_head_loss():
"""Tests pisa retinanet head loss when truth is empty and non-empty."""
s = 256
img_metas = [{
'img_shape': (s, s, 3),
... | 8,757 | 34.746939 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_models/test_losses.py | import pytest
import torch
from mmdet.models import Accuracy, build_loss
def test_ce_loss():
# use_mask and use_sigmoid cannot be true at the same time
with pytest.raises(AssertionError):
loss_cfg = dict(
type='CrossEntropyLoss',
use_mask=True,
use_sigmoid=True,
... | 4,327 | 30.591241 | 78 | py |
GFocalV2 | GFocalV2-master/tests/test_data/test_dataset.py | import bisect
import logging
import math
import os.path as osp
import tempfile
from collections import defaultdict
from unittest.mock import MagicMock, patch
import mmcv
import numpy as np
import pytest
import torch
import torch.nn as nn
from mmcv.runner import EpochBasedRunner
from torch.utils.data import DataLoader
... | 16,754 | 32.917004 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_data/test_transform.py | import copy
import os.path as osp
import mmcv
import numpy as np
import pytest
import torch
from mmcv.utils import build_from_cfg
from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps
from mmdet.datasets.builder import PIPELINES
def test_resize():
# test assertion if img_scale is a list
with pytest.... | 25,008 | 35.886431 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_data/test_sampler.py | import torch
from mmdet.core.bbox.assigners import MaxIoUAssigner
from mmdet.core.bbox.samplers import (OHEMSampler, RandomSampler,
ScoreHLRSampler)
def test_random_sampler():
assigner = MaxIoUAssigner(
pos_iou_thr=0.5,
neg_iou_thr=0.5,
ignore_iof_thr... | 9,745 | 28.533333 | 79 | py |
GFocalV2 | GFocalV2-master/tests/test_data/test_models_aug_test.py | import os.path as osp
import mmcv
import torch
from mmcv.parallel import collate
from mmcv.utils import build_from_cfg
from mmdet.datasets.builder import PIPELINES
from mmdet.models import build_detector
def model_aug_test_template(cfg_file):
# get config
cfg = mmcv.Config.fromfile(cfg_file)
# init mode... | 3,843 | 31.302521 | 79 | py |
GFocalV2 | GFocalV2-master/demo/webcam_demo.py | import argparse
import cv2
import torch
from mmdet.apis import inference_detector, init_detector
def parse_args():
parser = argparse.ArgumentParser(description='MMDetection webcam demo')
parser.add_argument('config', help='test config file path')
parser.add_argument('checkpoint', help='checkpoint file')... | 1,260 | 25.829787 | 78 | py |
GFocalV2 | GFocalV2-master/configs/ghm/retinanet_ghm_x101_32x4d_fpn_1x_coco.py | _base_ = './retinanet_ghm_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='... | 372 | 25.642857 | 53 | py |
GFocalV2 | GFocalV2-master/configs/ghm/retinanet_ghm_r101_fpn_1x_coco.py | _base_ = './retinanet_ghm_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 123 | 40.333333 | 76 | py |
GFocalV2 | GFocalV2-master/configs/ghm/retinanet_ghm_x101_64x4d_fpn_1x_coco.py | _base_ = './retinanet_ghm_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='... | 372 | 25.642857 | 53 | py |
GFocalV2 | GFocalV2-master/configs/dcn/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_1x_coco.py | _base_ = '../faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=... | 506 | 30.6875 | 72 | py |
GFocalV2 | GFocalV2-master/configs/htc/htc_x101_64x4d_fpn_16x1_20e_coco.py | _base_ = './htc_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requi... | 504 | 25.578947 | 53 | py |
GFocalV2 | GFocalV2-master/configs/htc/htc_without_semantic_r50_fpn_1x_coco.py | _base_ = [
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='HybridTaskCascade',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
... | 8,009 | 32.236515 | 79 | py |
GFocalV2 | GFocalV2-master/configs/htc/htc_x101_32x4d_fpn_16x1_20e_coco.py | _base_ = './htc_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requi... | 504 | 25.578947 | 53 | py |
GFocalV2 | GFocalV2-master/configs/htc/htc_x101_64x4d_fpn_dconv_c3-c5_mstrain_400_1400_16x1_20e_coco.py | _base_ = './htc_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requi... | 1,402 | 31.627907 | 79 | py |
GFocalV2 | GFocalV2-master/configs/htc/htc_r101_fpn_20e_coco.py | _base_ = './htc_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
# learning policy
lr_config = dict(step=[16, 19])
total_epochs = 20
| 181 | 29.333333 | 76 | py |
GFocalV2 | GFocalV2-master/configs/reppoints/reppoints_moment_r101_fpn_dconv_c3-c5_gn-neck+head_2x_coco.py | _base_ = './reppoints_moment_r50_fpn_gn-neck+head_2x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(
depth=101,
dcn=dict(type='DCN', deform_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)))
| 280 | 34.125 | 72 | py |
GFocalV2 | GFocalV2-master/configs/reppoints/reppoints_moment_r101_fpn_gn-neck+head_2x_coco.py | _base_ = './reppoints_moment_r50_fpn_gn-neck+head_2x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 139 | 45.666667 | 76 | py |
GFocalV2 | GFocalV2-master/configs/reppoints/reppoints_moment_r50_fpn_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='RepPointsDetector',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0,... | 1,937 | 27.5 | 79 | py |
GFocalV2 | GFocalV2-master/configs/reppoints/reppoints_moment_x101_fpn_dconv_c3-c5_gn-neck+head_2x_coco.py | _base_ = './reppoints_moment_r50_fpn_gn-neck+head_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm... | 511 | 31 | 72 | py |
GFocalV2 | GFocalV2-master/configs/gfl/gfl_x101_32x4d_fpn_dconv_c4-c5_mstrain_2x_coco.py | _base_ = './gfl_r50_fpn_mstrain_2x_coco.py'
model = dict(
type='GFL',
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_c... | 534 | 28.722222 | 72 | py |
GFocalV2 | GFocalV2-master/configs/gfl/gfl_x101_32x4d_fpn_mstrain_2x_coco.py | _base_ = './gfl_r50_fpn_mstrain_2x_coco.py'
model = dict(
type='GFL',
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_c... | 410 | 24.6875 | 53 | py |
GFocalV2 | GFocalV2-master/configs/gfl/gfl_r101_fpn_mstrain_2x_coco.py | _base_ = './gfl_r50_fpn_mstrain_2x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 346 | 25.692308 | 53 | py |
GFocalV2 | GFocalV2-master/configs/gfl/gfl_r50_fpn_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='GFL',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 1,655 | 27.551724 | 72 | py |
GFocalV2 | GFocalV2-master/configs/gfl/gfl_r101_fpn_dconv_c3-c5_mstrain_2x_coco.py | _base_ = './gfl_r50_fpn_mstrain_2x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
dcn=dict(type='D... | 469 | 30.333333 | 72 | py |
GFocalV2 | GFocalV2-master/configs/nas_fpn/retinanet_r50_fpn_crop640_50e_coco.py | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py'
]
cudnn_benchmark = True
norm_cfg = dict(type='BN', requires_grad=True)
model = dict(
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
... | 2,407 | 28.728395 | 77 | py |
GFocalV2 | GFocalV2-master/configs/nas_fpn/retinanet_r50_nasfpn_crop640_50e_coco.py | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py'
]
cudnn_benchmark = True
# model settings
norm_cfg = dict(type='BN', requires_grad=True)
model = dict(
type='RetinaNet',
pretrained='torchvision://resnet50',
backbone=dict(
... | 2,397 | 28.975 | 77 | py |
GFocalV2 | GFocalV2-master/configs/paa/paa_r50_fpn_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='PAA',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 2,016 | 27.408451 | 73 | py |
GFocalV2 | GFocalV2-master/configs/paa/paa_r101_fpn_1x_coco.py | _base_ = './paa_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
lr_config = dict(step=[16, 22])
total_epochs = 24
| 163 | 31.8 | 76 | py |
GFocalV2 | GFocalV2-master/configs/yolact/yolact_r50_1x8_coco.py | _base_ = '../_base_/default_runtime.py'
# model settings
img_size = 550
model = dict(
type='YOLACT',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=-1, # do not freeze stem
n... | 4,947 | 29.732919 | 77 | py |
GFocalV2 | GFocalV2-master/configs/yolact/yolact_r101_1x8_coco.py | _base_ = './yolact_r50_1x8_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 114 | 27.75 | 76 | py |
GFocalV2 | GFocalV2-master/configs/point_rend/point_rend_r50_caffe_fpn_mstrain_1x_coco.py | _base_ = '../mask_rcnn/mask_rcnn_r50_caffe_fpn_mstrain_1x_coco.py'
# model settings
model = dict(
type='PointRend',
roi_head=dict(
type='PointRendRoIHead',
mask_roi_extractor=dict(
type='GenericRoIExtractor',
aggregation='concat',
roi_layer=dict(
... | 1,391 | 31.372093 | 77 | py |
GFocalV2 | GFocalV2-master/configs/point_rend/point_rend_r50_caffe_fpn_mstrain_3x_coco.py | _base_ = './point_rend_r50_caffe_fpn_mstrain_1x_coco.py'
# learning policy
lr_config = dict(step=[28, 34])
total_epochs = 36
| 125 | 24.2 | 56 | py |
GFocalV2 | GFocalV2-master/configs/detectors/detectors_cascade_rcnn_r50_1x_coco.py | _base_ = [
'../_base_/models/cascade_rcnn_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
backbone=dict(
type='DetectoRS_ResNet',
conv_cfg=dict(type='ConvAWS'),
sac=dict(type='SAC', use_def... | 1,053 | 30.939394 | 72 | py |
GFocalV2 | GFocalV2-master/configs/detectors/detectors_htc_r50_1x_coco.py | _base_ = '../htc/htc_r50_fpn_1x_coco.py'
model = dict(
backbone=dict(
type='DetectoRS_ResNet',
conv_cfg=dict(type='ConvAWS'),
sac=dict(type='SAC', use_deform=True),
stage_with_sac=(False, True, True, True),
output_img=True),
neck=dict(
type='RFP',
rfp_ste... | 916 | 30.62069 | 57 | py |
GFocalV2 | GFocalV2-master/configs/detectors/cascade_rcnn_r50_rfp_1x_coco.py | _base_ = [
'../_base_/models/cascade_rcnn_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
backbone=dict(
type='DetectoRS_ResNet',
conv_cfg=dict(type='ConvAWS'),
output_img=True),
neck=d... | 851 | 28.37931 | 72 | py |
GFocalV2 | GFocalV2-master/configs/detectors/htc_r50_rfp_1x_coco.py | _base_ = '../htc/htc_r50_fpn_1x_coco.py'
model = dict(
backbone=dict(
type='DetectoRS_ResNet',
conv_cfg=dict(type='ConvAWS'),
output_img=True),
neck=dict(
type='RFP',
rfp_steps=2,
aspp_out_channels=64,
aspp_dilations=(1, 3, 6, 1),
rfp_backbone=dic... | 714 | 27.6 | 57 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_center-normbbox-centeronreg-giou_r50_caffe_fpn_gn-head_4x4_1x_coco.py | _base_ = 'fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron2/resnet50_caffe',
bbox_head=dict(
norm_on_bbox=True,
centerness_on_reg=True,
dcn_on_last_conv=False,
center_sampling=True,
conv_bias=True,
loss_bbox=dict(type='G... | 1,694 | 31.596154 | 72 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r101_caffe_fpn_gn-head_4x4_1x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron/resnet101_caffe',
backbone=dict(depth=101))
| 156 | 30.4 | 56 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r101_caffe_fpn_gn-head_mstrain_640-800_4x4_2x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron/resnet101_caffe',
backbone=dict(depth=101))
img_norm_cfg = dict(
mean=[102.9801, 115.9465, 122.7717], std=[1.0, 1.0, 1.0], to_rgb=False)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(typ... | 1,446 | 31.155556 | 75 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_x101_64x4d_fpn_gn-head_mstrain_640-800_4x2_2x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=di... | 1,883 | 30.4 | 77 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_center_r50_caffe_fpn_gn-head_4x4_1x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(bbox_head=dict(center_sampling=True, center_sample_radius=1.5))
| 132 | 43.333333 | 76 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r101_caffe_fpn_gn-head_4x4_2x_coco.py | _base_ = ['./fcos_r50_caffe_fpn_gn-head_4x4_2x_coco.py']
model = dict(
pretrained='open-mmlab://detectron/resnet101_caffe',
backbone=dict(depth=101))
| 158 | 30.8 | 56 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r50_caffe_fpn_gn-head_mstrain_640-800_4x4_2x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
img_norm_cfg = dict(
mean=[102.9801, 115.9465, 122.7717], std=[1.0, 1.0, 1.0], to_rgb=False)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations', with_bbox=True),
dict(
type='Resize',
img_scale=[(1333, 640)... | 1,299 | 31.5 | 75 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_center-normbbox-centeronreg-giou_r50_caffe_fpn_gn-head_dcn_4x4_1x_coco.py | _base_ = 'fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron2/resnet50_caffe',
backbone=dict(
dcn=dict(type='DCNv2', deform_groups=1, fallback_on_stride=False),
stage_with_dcn=(False, True, True, True)),
bbox_head=dict(
norm_on_bbox=True,
... | 1,838 | 32.436364 | 74 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='FCOS',
pretrained='open-mmlab://detectron/resnet50_caffe',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
... | 3,146 | 28.688679 | 75 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r50_caffe_fpn_gn-head_4x4_2x_coco.py | _base_ = './fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
| 124 | 19.833333 | 54 | py |
GFocalV2 | GFocalV2-master/configs/fcos/fcos_r50_caffe_fpn_4x4_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='FCOS',
pretrained='open-mmlab://detectron/resnet50_caffe',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
... | 3,169 | 28.626168 | 75 | py |
GFocalV2 | GFocalV2-master/configs/legacy_1.x/faster_rcnn_r50_fpn_1x_coco_v1.py | _base_ = [
'../_base_/models/faster_rcnn_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet50',
rpn_head=dict(
type='RPNHead',
anchor_genera... | 1,323 | 33.842105 | 78 | py |
GFocalV2 | GFocalV2-master/configs/legacy_1.x/cascade_mask_rcnn_r50_fpn_1x_coco_v1.py | _base_ = [
'../_base_/models/cascade_mask_rcnn_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,... | 2,753 | 33.425 | 79 | py |
GFocalV2 | GFocalV2-master/configs/legacy_1.x/retinanet_r50_caffe_fpn_1x_coco_v1.py | _base_ = './retinanet_r50_fpn_1x_coco_v1.py'
model = dict(
pretrained='open-mmlab://detectron/resnet50_caffe',
backbone=dict(
norm_cfg=dict(requires_grad=False), norm_eval=True, style='caffe'))
# use caffe img_norm
img_norm_cfg = dict(
mean=[102.9801, 115.9465, 122.7717], std=[1.0, 1.0, 1.0], to_rgb... | 1,334 | 34.131579 | 75 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_r50_caffe_fpn_1x_coco.py | _base_ = '../mask_rcnn/mask_rcnn_r50_caffe_fpn_1x_coco.py'
model = dict(
type='MaskScoringRCNN',
roi_head=dict(
type='MaskScoringRoIHead',
mask_iou_head=dict(
type='MaskIoUHead',
num_convs=4,
num_fcs=2,
roi_feat_size=14,
in_channels=256... | 508 | 28.941176 | 58 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_x101_64x4d_fpn_1x_coco.py | _base_ = './ms_rcnn_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', r... | 366 | 25.214286 | 53 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_r50_caffe_fpn_2x_coco.py | _base_ = './ms_rcnn_r50_caffe_fpn_1x_coco.py'
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
| 114 | 22 | 45 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_x101_32x4d_fpn_1x_coco.py | _base_ = './ms_rcnn_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', r... | 366 | 25.214286 | 53 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_r101_caffe_fpn_2x_coco.py | _base_ = './ms_rcnn_r101_caffe_fpn_1x_coco.py'
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
| 115 | 22.2 | 46 | py |
GFocalV2 | GFocalV2-master/configs/ms_rcnn/ms_rcnn_r101_caffe_fpn_1x_coco.py | _base_ = './ms_rcnn_r50_caffe_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron2/resnet101_caffe',
backbone=dict(depth=101))
| 148 | 28.8 | 57 | py |
GFocalV2 | GFocalV2-master/configs/fast_rcnn/fast_rcnn_r101_fpn_2x_coco.py | _base_ = './fast_rcnn_r50_fpn_2x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 119 | 39 | 76 | py |
GFocalV2 | GFocalV2-master/configs/fast_rcnn/fast_rcnn_r101_fpn_1x_coco.py | _base_ = './fast_rcnn_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 119 | 39 | 76 | py |
GFocalV2 | GFocalV2-master/configs/fast_rcnn/fast_rcnn_r101_caffe_fpn_1x_coco.py | _base_ = './fast_rcnn_r50_caffe_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron2/resnet101_caffe',
backbone=dict(depth=101))
| 150 | 29.2 | 57 | py |
GFocalV2 | GFocalV2-master/configs/fast_rcnn/fast_rcnn_r50_caffe_fpn_1x_coco.py | _base_ = './fast_rcnn_r50_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://detectron2/resnet50_caffe',
backbone=dict(
norm_cfg=dict(type='BN', requires_grad=False), style='caffe'))
# use caffe img_norm
img_norm_cfg = dict(
mean=[103.530, 116.280, 123.675], std=[1.0, 1.0, 1.0], to_rgb=False)
... | 1,639 | 34.652174 | 78 | py |
GFocalV2 | GFocalV2-master/configs/hrnet/fcos_hrnetv2p_w32_gn-head_4x4_1x_coco.py | _base_ = '../fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
pretrained='open-mmlab://msra/hrnetv2_w32',
backbone=dict(
_delete_=True,
type='HRNet',
extra=dict(
stage1=dict(
num_modules=1,
num_branches=1,
block='BO... | 1,176 | 29.179487 | 60 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r2_101_fpn_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://res2net101_v1d_26w_4s',
backbone=dict(
type='Res2Net',
depth=101,
scales=4,
base_width=26,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(t... | 401 | 25.8 | 53 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r101_fpn_mdconv_c3-c5_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mdconv_c3-c5_mstrain_2x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
n... | 486 | 31.466667 | 74 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r50_fpn_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='VFNet',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indice... | 3,224 | 27.043478 | 77 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r2_101_fpn_mdconv_c3-c5_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mdconv_c3-c5_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://res2net101_v1d_26w_4s',
backbone=dict(
type='Res2Net',
depth=101,
scales=4,
base_width=26,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
no... | 539 | 30.764706 | 74 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r101_fpn_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mstrain_2x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 123 | 40.333333 | 76 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_x101_32x4d_fpn_mdconv_c3-c5_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mdconv_c3-c5_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cf... | 534 | 30.470588 | 74 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r101_fpn_1x_coco.py | _base_ = './vfnet_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 115 | 37.666667 | 76 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_r101_fpn_2x_coco.py | _base_ = './vfnet_r50_fpn_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
lr_config = dict(step=[16, 22])
total_epochs = 24
| 165 | 32.2 | 76 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_x101_32x4d_fpn_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='... | 396 | 25.466667 | 53 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_x101_64x4d_fpn_mdconv_c3-c5_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mdconv_c3-c5_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cf... | 534 | 30.470588 | 74 | py |
GFocalV2 | GFocalV2-master/configs/vfnet/vfnet_x101_64x4d_fpn_mstrain_2x_coco.py | _base_ = './vfnet_r50_fpn_mstrain_2x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='... | 396 | 25.466667 | 53 | py |
GFocalV2 | GFocalV2-master/configs/foveabox/fovea_r50_fpn_4x4_1x_coco.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='FOVEA',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indice... | 1,548 | 28.226415 | 78 | py |
GFocalV2 | GFocalV2-master/configs/foveabox/fovea_r101_fpn_4x4_2x_coco.py | _base_ = './fovea_r50_fpn_4x4_2x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 119 | 39 | 76 | py |
GFocalV2 | GFocalV2-master/configs/foveabox/fovea_align_r101_fpn_gn-head_mstrain_640-800_4x4_2x_coco.py | _base_ = './fovea_r50_fpn_4x4_1x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(depth=101),
bbox_head=dict(
with_deform=True,
norm_cfg=dict(type='GN', num_groups=32, requires_grad=True)))
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12,... | 937 | 32.5 | 77 | py |
GFocalV2 | GFocalV2-master/configs/foveabox/fovea_r101_fpn_4x4_1x_coco.py | _base_ = './fovea_r50_fpn_4x4_1x_coco.py'
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
| 119 | 39 | 76 | py |
GFocalV2 | GFocalV2-master/configs/foveabox/fovea_align_r101_fpn_gn-head_4x4_2x_coco.py | _base_ = './fovea_r50_fpn_4x4_1x_coco.py'
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(depth=101),
bbox_head=dict(
with_deform=True,
norm_cfg=dict(type='GN', num_groups=32, requires_grad=True)))
# learning policy
lr_config = dict(step=[16, 22])
total_epochs = 24
| 312 | 27.454545 | 69 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-8GF_fpn_1x_coco.py | _base_ = './mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_8.0gf',
backbone=dict(
type='RegNet',
arch='regnetx_8.0gf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 470 | 26.705882 | 53 | py |
GFocalV2 | GFocalV2-master/configs/regnet/retinanet_regnetx-1.6GF_fpn_1x_coco.py | _base_ = './retinanet_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_1.6gf',
backbone=dict(
type='RegNet',
arch='regnetx_1.6gf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 469 | 26.647059 | 53 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-12GF_fpn_1x_coco.py | _base_ = './mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_12gf',
backbone=dict(
type='RegNet',
arch='regnetx_12gf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 469 | 26.647059 | 53 | py |
GFocalV2 | GFocalV2-master/configs/regnet/retinanet_regnetx-800MF_fpn_1x_coco.py | _base_ = './retinanet_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_800mf',
backbone=dict(
type='RegNet',
arch='regnetx_800mf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 469 | 26.647059 | 53 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-4GF_fpn_1x_coco.py | _base_ = './mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_4.0gf',
backbone=dict(
type='RegNet',
arch='regnetx_4.0gf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 470 | 26.705882 | 53 | py |
GFocalV2 | GFocalV2-master/configs/regnet/faster_rcnn_regnetx-3.2GF_fpn_mstrain_3x_coco.py | _base_ = [
'../_base_/models/faster_rcnn_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://regnetx_3.2gf',
backbone=dict(
_delete_=True,
type='RegNet',
arch='regne... | 2,063 | 31.25 | 73 | py |
GFocalV2 | GFocalV2-master/configs/regnet/retinanet_regnetx-3.2GF_fpn_1x_coco.py | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://regnetx_3.2gf',
backbone=dict(
_delete_=True,
type='RegNet',
arch='regnetx... | 1,953 | 32.118644 | 73 | py |
GFocalV2 | GFocalV2-master/configs/regnet/faster_rcnn_regnetx-3.2GF_fpn_1x_coco.py | _base_ = [
'../_base_/models/faster_rcnn_r50_fpn.py',
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://regnetx_3.2gf',
backbone=dict(
_delete_=True,
type='RegNet',
arch='regne... | 1,869 | 31.807018 | 73 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py | _base_ = [
'../_base_/models/mask_rcnn_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://regnetx_3.2gf',
backbone=dict(
_delete_=True,
type='RegNet',
arch='regnetx_... | 1,964 | 32.87931 | 77 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-3.2GF_fpn_mstrain_3x_coco.py | _base_ = [
'../_base_/models/mask_rcnn_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='open-mmlab://regnetx_3.2gf',
backbone=dict(
_delete_=True,
type='RegNet',
arch='regnetx_... | 2,174 | 31.954545 | 77 | py |
GFocalV2 | GFocalV2-master/configs/regnet/mask_rcnn_regnetx-6.4GF_fpn_1x_coco.py | _base_ = './mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py'
model = dict(
pretrained='open-mmlab://regnetx_6.4gf',
backbone=dict(
type='RegNet',
arch='regnetx_6.4gf',
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | 471 | 26.764706 | 53 | py |
GFocalV2 | GFocalV2-master/configs/gfocal/gfocal_r101_fpn_ms2x.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='GFL',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 3,639 | 28.836066 | 77 | py |
GFocalV2 | GFocalV2-master/configs/gfocal/gfocal_r50_fpn_1x.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='GFL',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 3,863 | 28.953488 | 77 | py |
GFocalV2 | GFocalV2-master/configs/gfocal/gfocal_r101_dcn_fpn_ms2x.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='GFL',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 3,762 | 29.346774 | 77 | py |
GFocalV2 | GFocalV2-master/configs/gfocal/gfocal_r50_fpn_ms2x.py | _base_ = [
'../_base_/datasets/coco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='GFL',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
... | 3,636 | 28.811475 | 77 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.