file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
experiments/multi_pose_hg_1x.sh
Shell
cd src # train python main.py multi_pose --exp_id hg_1x --dataset coco_hp --arch hourglass --batch_size 24 --master_batch 4 --lr 2.5e-4 --load_model ../models/ctdet_coco_hg.pth --gpus 0,1,2,3,4 --num_epochs 50 --lr_step 40 # test python test.py multi_pose --exp_id hg_1x --dataset coco_hp --arch hourglass --keep_res --r...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
experiments/multi_pose_hg_3x.sh
Shell
cd src # train python main.py multi_pose --exp_id hg_3x --dataset coco_hp --arch hourglass --batch_size 24 --master_batch 4 --lr 2.5e-4 -load_model ../models/ctdet_coco_hg.pth --gpus 0,1,2,3,4 --num_epochs 150 --lr_step 130 # or use the following command if your have dla_1x trained # python main.py multi_pose --exp_id ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/_init_paths.py
Python
import os.path as osp import sys def add_path(path): if path not in sys.path: sys.path.insert(0, path) this_dir = osp.dirname(__file__) # Add lib to PYTHONPATH lib_path = osp.join(this_dir, 'lib') add_path(lib_path)
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/demo.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import cv2 from opts import opts from detectors.detector_factory import detector_factory image_ext = ['jpg', 'jpeg', 'png', 'webp'] video_ext = ['mp4', 'mov', 'avi', 'mkv'] time_...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/dataset/coco.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import numpy as np import json import os import torch.utils.data as data class COCO(data.Dataset): num_classes = 80 default_resolu...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/dataset/coco_hp.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import numpy as np import json import os import torch.utils.data as data class COCOHP(data.Dataset): num_classes = 1 num_joints = ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/dataset/kitti.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import pycocotools.coco as coco import numpy as np import torch import json import cv2 import os import math import torch.utils.data as data class KITTI(data.Dataset): num_c...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/dataset/pascal.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco import numpy as np import torch import json import os import torch.utils.data as data class PascalVOC(data.Dataset): num_classes = 20 default_resolution = [384, 384] mean...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/dataset_factory.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .sample.ddd import DddDataset from .sample.exdet import EXDetDataset from .sample.ctdet import CTDetDataset from .sample.multi_pose import MultiPoseDataset from .dataset.coco import COCO from .dataset.pas...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/sample/ctdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import numpy as np import torch import json import cv2 import os from utils.image import flip, color_aug from utils.image import get_affine_transform, affine_transform from utils...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/sample/ddd.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import pycocotools.coco as coco import numpy as np import torch import json import cv2 import os import math from utils.image import flip, color_aug from utils.image import get_a...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/sample/exdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import pycocotools.coco as coco import numpy as np import torch import json import cv2 import os from utils.image import flip, color_aug from utils.image import get_affine_transf...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/datasets/sample/multi_pose.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import numpy as np import torch import json import cv2 import os from utils.image import flip, color_aug from utils.image import get_affine_transform, affine_transform from utils...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/base_detector.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch from models.model import create_model, load_model from utils.image import get_affine_transform from utils.debugger import Deb...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/ctdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch try: from external.nms import soft_nms except: print('NMS not imported! If you need it,' ' do \n cd $CenterNet_RO...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/ddd.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch from models.decode import ddd_decode from models.utils import flip_tensor from utils.image import get_affine_transform from ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/detector_factory.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .exdet import ExdetDetector from .ddd import DddDetector from .ctdet import CtdetDetector from .multi_pose import MultiPoseDetector detector_factory = { 'exdet': ExdetDetector, 'ddd': DddDetector, ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/exdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import cv2 import numpy as np from progress.bar import Bar import time import torch from models.decode import exct_decode, agnex_ct_decode from models.utils import flip_tensor fr...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/detectors/multi_pose.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch try: from external.nms import soft_nms_39 except: print('NMS not imported! If you need it,' ' do \n cd $CenterNet...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/external/nms.pyx
Cython
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- # ---------------------------------------------------------- # Soft-NMS...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/external/setup.py
Python
import numpy from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize extensions = [ Extension( "nms", ["nms.pyx"], extra_compile_args=["-Wno-cpp", "-Wno-unused-function"] ) ] setup( name="coco", ext_modules=cythonize(extens...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/logger.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function # Code referenced from https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 import os import time import sys import torch USE_TENSORBOARD = True try: import tensorboardX print('Using tensorboardX...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/data_parallel.py
Python
import torch from torch.nn.modules import Module from torch.nn.parallel.scatter_gather import gather from torch.nn.parallel.replicate import replicate from torch.nn.parallel.parallel_apply import parallel_apply from .scatter_gather import scatter_kwargs class _DataParallel(Module): r"""Implements data parallelis...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/decode.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn from .utils import _gather_feat, _transpose_and_gather_feat def _nms(heat, kernel=3): pad = (kernel - 1) // 2 hmax = nn.functional.max_pool2d( heat, (kernel,...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/losses.py
Python
# ------------------------------------------------------------------------------ # Portions of this code are from # CornerNet (https://github.com/princeton-vl/CornerNet) # Copyright (c) 2018, University of Michigan # Licensed under the BSD 3-Clause License # -------------------------------------------------------------...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/model.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torchvision.models as models import torch import torch.nn as nn import os from .networks.msra_resnet import get_pose_net from .networks.dlav0 import get_pose_net as get_dlav0 from .networks.pose_dla_dcn...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/build.py
Python
import os import torch from torch.utils.ffi import create_extension sources = ['src/dcn_v2.c'] headers = ['src/dcn_v2.h'] defines = [] with_cuda = False extra_objects = [] if torch.cuda.is_available(): print('Including CUDA code.') sources += ['src/dcn_v2_cuda.c'] headers += ['src/dcn_v2_cuda.h'] def...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/build_double.py
Python
import os import torch from torch.utils.ffi import create_extension sources = ['src/dcn_v2_double.c'] headers = ['src/dcn_v2_double.h'] defines = [] with_cuda = False extra_objects = [] if torch.cuda.is_available(): print('Including CUDA code.') sources += ['src/dcn_v2_cuda_double.c'] headers += ['src/dc...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/dcn_v2.py
Python
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import division import torch import math from torch import nn from torch.nn.modules.utils import _pair from .dcn_v2_func import DCNv2Function from .dcn_v2_func import DCNv2PoolingFunction class DCNv2(nn...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/dcn_v2_func.py
Python
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import division import torch from torch.autograd import Function from ._ext import dcn_v2 as _backend # from _ext import dcn_v2_double as _backend class DCNv2Function(Function): def __init__(self,...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/make.sh
Shell
#!/usr/bin/env bash cd src/cuda # compile dcn nvcc -c -o dcn_v2_im2col_cuda.cu.o dcn_v2_im2col_cuda.cu -x cu -Xcompiler -fPIC nvcc -c -o dcn_v2_im2col_cuda_double.cu.o dcn_v2_im2col_cuda_double.cu -x cu -Xcompiler -fPIC # compile dcn-roi-pooling nvcc -c -o dcn_v2_psroi_pooling_cuda.cu.o dcn_v2_psroi_pooling_cuda.cu -...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.cu
CUDA
#include "dcn_v2_im2col_cuda.h" #include <cstdio> #include <algorithm> #include <cstring> #define CUDA_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; \ i < (n); \ i += blockDim.x * gridDim.x) const int CUDA_NUM_...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.h
C/C++ Header
/*! ******************* BEGIN Caffe Copyright Notice and Disclaimer **************** * * COPYRIGHT * * All contributions by the University of California: * Copyright (c) 2014-2017 The Regents of the University of California (Regents) * All rights reserved. * * All other contributions: * Copyright (c) 2014-201...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda_double.cu
CUDA
#include "dcn_v2_im2col_cuda_double.h" #include <cstdio> #include <algorithm> #include <cstring> #define CUDA_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; \ i < (n); \ i += blockDim.x * gridDim.x) const int CUDA_NU...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda_double.h
C/C++ Header
/*! ******************* BEGIN Caffe Copyright Notice and Disclaimer **************** * * COPYRIGHT * * All contributions by the University of California: * Copyright (c) 2014-2017 The Regents of the University of California (Regents) * All rights reserved. * * All other contributions: * Copyright (c) 2014-201...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.cu
CUDA
/*! * Copyright (c) 2017 Microsoft * Licensed under The MIT License [see LICENSE for details] * \file deformable_psroi_pooling.cu * \brief * \author Yi Li, Guodong Zhang, Jifeng Dai */ /***************** Adapted by Charles Shang *********************/ #include "dcn_v2_psroi_pooling_cuda.h" #include <cstdio> #inclu...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.h
C/C++ Header
/*! * Copyright (c) 2017 Microsoft * Licensed under The MIT License [see LICENSE for details] * \file deformable_psroi_pooling.cu * \brief * \author Yi Li, Guodong Zhang, Jifeng Dai */ /***************** Adapted by Charles Shang *********************/ #ifndef DCN_V2_PSROI_POOLING_CUDA #define DCN_V2_PSROI_POOLING...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda_double.cu
CUDA
/*! * Copyright (c) 2017 Microsoft * Licensed under The MIT License [see LICENSE for details] * \file deformable_psroi_pooling.cu * \brief * \author Yi Li, Guodong Zhang, Jifeng Dai */ /***************** Adapted by Charles Shang *********************/ #include "dcn_v2_psroi_pooling_cuda_double.h" #include <cstdio>...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda_double.h
C/C++ Header
/*! * Copyright (c) 2017 Microsoft * Licensed under The MIT License [see LICENSE for details] * \file deformable_psroi_pooling.cu * \brief * \author Yi Li, Guodong Zhang, Jifeng Dai */ /***************** Adapted by Charles Shang *********************/ #ifndef DCN_V2_PSROI_POOLING_CUDA_DOUBLE #define DCN_V2_PSROI_...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2.c
C
#include <TH/TH.h> #include <stdio.h> #include <math.h> void dcn_v2_forward(THFloatTensor *input, THFloatTensor *weight, THFloatTensor *bias, THFloatTensor *ones, THFloatTensor *offset, THFloatTensor *mask, THFloatTensor *output, THFloatTensor *co...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2.h
C/C++ Header
void dcn_v2_forward(THFloatTensor *input, THFloatTensor *weight, THFloatTensor *bias, THFloatTensor *ones, THFloatTensor *offset, THFloatTensor *mask, THFloatTensor *output, THFloatTensor *columns, const int pad_h, const int...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_cuda.c
C
#include <THC/THC.h> #include "cuda/dcn_v2_im2col_cuda.h" #include "cuda/dcn_v2_psroi_pooling_cuda.h" extern THCState *state; // author: Charles Shang // https://github.com/torch/cunn/blob/master/lib/THCUNN/generic/SpatialConvolutionMM.cu void dcn_v2_cuda_forward(THCudaTensor *input, THCudaTensor *weight, ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_cuda.h
C/C++ Header
// #ifndef DCN_V2_CUDA // #define DCN_V2_CUDA // #ifdef __cplusplus // extern "C" // { // #endif void dcn_v2_cuda_forward(THCudaTensor *input, THCudaTensor *weight, THCudaTensor *bias, THCudaTensor *ones, THCudaTensor *offset, THCudaTensor *mask, ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_cuda_double.c
C
#include <THC/THC.h> #include "cuda/dcn_v2_im2col_cuda_double.h" #include "cuda/dcn_v2_psroi_pooling_cuda_double.h" extern THCState *state; // author: Charles Shang // https://github.com/torch/cunn/blob/master/lib/THCUNN/generic/SpatialConvolutionMM.cu void dcn_v2_cuda_forward(THCudaDoubleTensor *input, THCudaDouble...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_cuda_double.h
C/C++ Header
// #ifndef DCN_V2_CUDA // #define DCN_V2_CUDA // #ifdef __cplusplus // extern "C" // { // #endif void dcn_v2_cuda_forward(THCudaDoubleTensor *input, THCudaDoubleTensor *weight, THCudaDoubleTensor *bias, THCudaDoubleTensor *ones, THCudaDoubleTensor *offset, THCudaDoubl...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_double.c
C
#include <TH/TH.h> #include <stdio.h> #include <math.h> void dcn_v2_forward(THDoubleTensor *input, THDoubleTensor *weight, THDoubleTensor *bias, THDoubleTensor *ones, THDoubleTensor *offset, THDoubleTensor *mask, THDoubleTensor *output, THDoubleTensor *column...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/src/dcn_v2_double.h
C/C++ Header
void dcn_v2_forward(THDoubleTensor *input, THDoubleTensor *weight, THDoubleTensor *bias, THDoubleTensor *ones, THDoubleTensor *offset, THDoubleTensor *mask, THDoubleTensor *output, THDoubleTensor *columns, const int pad_h, const int pad_w, ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/DCNv2/test.py
Python
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import division import time import torch import torch.nn as nn from torch.autograd import gradcheck from dcn_v2 import DCNv2 from dcn_v2_func import DCNv2Function from dcn_v2 import DCNv2Pooling from dcn...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/dlav0.py
Python
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import math from os.path import join import torch from torch import nn import torch.utils.model_zoo as model_zoo import numpy as np BatchNorm = nn.BatchNorm2d d...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/large_hourglass.py
Python
# ------------------------------------------------------------------------------ # This code is base on # CornerNet (https://github.com/princeton-vl/CornerNet) # Copyright (c) 2018, University of Michigan # Licensed under the BSD 3-Clause License # ----------------------------------------------------------------------...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/msra_resnet.py
Python
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Xingyi Zhou # ------------------------------------------------------------------------------ from __future__ import a...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/pose_dla_dcn.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import math import logging import numpy as np from os.path import join import torch from torch import nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from .DCNv2.dcn_v2 ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/networks/resnet_dcn.py
Python
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Dequan Wang and Xingyi Zhou # ------------------------------------------------------------------------------ from __f...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/scatter_gather.py
Python
import torch from torch.autograd import Variable from torch.nn.parallel._functions import Scatter, Gather def scatter(inputs, target_gpus, dim=0, chunk_sizes=None): r""" Slices variables into approximately equal chunks and distributes them across given GPUs. Duplicates references to objects that are n...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/models/utils.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn def _sigmoid(x): y = torch.clamp(x.sigmoid_(), min=1e-4, max=1-1e-4) return y def _gather_feat(feat, ind, mask=None): dim = feat.size(2) ind = ind.unsqueeze(2)...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/opts.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys class opts(object): def __init__(self): self.parser = argparse.ArgumentParser() # basic experiment setting self.parser.add_argument('task', default='ctdet', ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/base_trainer.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import time import torch from progress.bar import Bar from models.data_parallel import DataParallel from utils.utils import AverageMeter class ModelWithLoss(torch.nn.Module): def __init__(self, model, loss)...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/ctdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numpy as np from models.losses import FocalLoss from models.losses import RegL1Loss, RegLoss, NormRegL1Loss, RegWeightedL1Loss from models.decode import ctdet_decode from models.utils impor...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/ddd.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numpy as np from models.losses import FocalLoss, L1Loss, BinRotLoss from models.decode import ddd_decode from models.utils import _sigmoid from utils.debugger import Debugger from utils.pos...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/exdet.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numpy as np import cv2 import sys import time from utils.debugger import Debugger from models.data_parallel import DataParallel from models.losses import FocalLoss, RegL1Loss from models.dec...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/multi_pose.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numpy as np from models.losses import FocalLoss, RegL1Loss, RegLoss, RegWeightedL1Loss from models.decode import multi_pose_decode from models.utils import _sigmoid, flip_tensor, flip_lr_of...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/trains/train_factory.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .ctdet import CtdetTrainer from .ddd import DddTrainer from .exdet import ExdetTrainer from .multi_pose import MultiPoseTrainer train_factory = { 'exdet': ExdetTrainer, 'ddd': DddTrainer, 'ctdet': ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/ddd_utils.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import cv2 def compute_box_3d(dim, location, rotation_y): # dim: 3 # location: 3 # rotation_y: 1 # return: 8 x 3 c, s = np.cos(rotation_y), np.sin(rotation_y) R = np.array([[c, 0...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/debugger.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import cv2 from .ddd_utils import compute_box_3d, project_to_image, draw_box_3d class Debugger(object): def __init__(self, ipynb=False, theme='black', num_classes=-1, datas...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/image.py
Python
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Xingyi Zhou # ------------------------------------------------------------------------------ from __future__ import a...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/oracle_utils.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import numba @numba.jit(nopython=True, nogil=True) def gen_oracle_map(feat, ind, w, h): # feat: B x maxN x featDim # ind: B x maxN batch_size = feat.shape[0] max_objs = feat.shape[1]...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/post_process.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from .image import transform_preds from .ddd_utils import ddd2locrot def get_pred_depth(depth): return depth def get_alpha(rot): # output: (B, 8) [bin1_cls[0], bin1_cls[1], bin1_sin, b...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/lib/utils/utils.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/main.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import torch import torch.utils.data from opts import opts from models.model import create_model, load_model, save_model from models.data_parallel import DataParallel from logger ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/test.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import json import cv2 import numpy as np import time from progress.bar import Bar import torch from external.nms import soft_nms from opts import opts from logger import Logger f...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/_init_paths.py
Python
import os.path as osp import sys def add_path(path): if path not in sys.path: sys.path.insert(0, path) this_dir = osp.dirname(__file__) # Add lib to PYTHONPATH lib_path = osp.join(this_dir, '../lib') add_path(lib_path)
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/calc_coco_overlap.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as COCO import cv2 import numpy as np from pycocotools import mask as maskUtils ANN_PATH = '../../data/coco/annotations/' IMG_PATH = '../../data/coco/' ANN_FILES = {'train': 'instances_t...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/convert_hourglass_weight.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function MODEL_PATH = '../../models/ExtremeNet_500000.pkl' OUT_PATH = '../../models/ExtremeNet_500000.pth' import torch state_dict = torch.load(MODEL_PATH) key_map = {'t_heats': 'hm_t', 'l_heats': 'hm_l', 'b_heats': 'h...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/convert_kitti_to_coco.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pickle import json import numpy as np import cv2 DATA_PATH = '../../data/kitti/' DEBUG = False # VAL_PATH = DATA_PATH + 'training/label_val/' import os SPLITS = ['3dop', 'subcnn'] import _init_paths fro...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/eval_coco.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import sys import cv2 import numpy as np import pickle import os this_dir = os.path.dirname(__file__) ANN_PATH = this_dir + '../../data...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/eval_coco_hp.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import sys import cv2 import numpy as np import pickle import os this_dir = os.path.dirname(__file__) ANN_PATH = this_dir + '../../data...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/get_kitti.sh
Shell
mkdir kitti cd kitti wget http://www.cvlibs.net/download.php?file=data_object_image_2.zip wget http://www.cvlibs.net/download.php?file=data_object_label_2.zip wget http://www.cvlibs.net/download.php?file=data_object_calib.zip unzip data_object_image_2.zip unzip data_object_label_2.zip unzip data_object_calib.zip
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/get_pascal_voc.sh
Shell
mkdir voc cd voc wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCdevkit_08-Jun-2007.tar wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-Ma...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/kitti_eval/evaluate_object_3d.cpp
C++
// from https://github.com/prclibo/kitti_eval #include <iostream> #include <algorithm> #include <stdio.h> #include <math.h> #include <vector> #include <numeric> #include <strings.h> #include <assert.h> #include <dirent.h> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/kitti_eval/evaluate_object_3d_offline.cpp
C++
#include <iostream> #include <algorithm> #include <stdio.h> #include <math.h> #include <vector> #include <numeric> #include <strings.h> #include <assert.h> #include <dirent.h> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/geometry.hpp> #include <boost/geometry/geomet...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/kitti_eval/mail.h
C/C++ Header
#ifndef MAIL_H #define MAIL_H #include <stdio.h> #include <stdarg.h> #include <string.h> class Mail { public: Mail (std::string email = "") { if (email.compare("")) { mail = popen("/usr/lib/sendmail -t -f noreply@cvlibs.net","w"); fprintf(mail,"To: %s\n", email.c_str()); fprintf(mail,"From: ...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/merge_pascal_json.py
Python
import json # ANNOT_PATH = '/home/zxy/Datasets/VOC/annotations/' ANNOT_PATH = 'voc/annotations/' OUT_PATH = ANNOT_PATH INPUT_FILES = ['pascal_train2012.json', 'pascal_val2012.json', 'pascal_train2007.json', 'pascal_val2007.json'] OUTPUT_FILE = 'pascal_trainval0712.json' KEYS = ['images', 'type', 'annota...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/reval.py
Python
#!/usr/bin/env python # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # Modified by Xingyi Zhou # -------------------------------------------------------- # Reval = re-eval. Re-...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/vis_pred.py
Python
import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import sys import cv2 import numpy as np import pickle IMG_PATH = '../../data/coco/val2017/' ANN_PATH = '../../data/coco/annotations/instances_val2017.json' DEBUG = True def _coco_box_to_bbox(box): bbox = np.array([box[0], box[1], box[0] + box...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/datasets/bbox.pyx
Cython
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Sergey Karayev # -------------------------------------------------------- cimport cython import numpy as np cimport numpy as np DTYPE = np.floa...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/datasets/ds_utils.py
Python
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import print_...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/datasets/imdb.py
Python
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # Modified by Xingyi Zhou # -------------------------------------------------------- from __future__ import absolut...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/datasets/pascal_voc.py
Python
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ i...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/datasets/voc_eval.py
Python
# -------------------------------------------------------- # Fast/er R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Bharath Hariharan # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ import pr...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/model/bbox_transform.py
Python
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division f...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/model/config.py
Python
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import os.path as osp import numpy as np # `pip install easydict` if you don't have it from easydict import EasyDict as edict __C = edict() # Consumers can get config by: # from fast_rcnn_config im...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/model/nms_wrapper.py
Python
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division f...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/model/test.py
Python
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/cpu_nms.c
C
/* Generated by Cython 0.20.1 on Wed Oct 5 13:15:30 2016 */ #define PY_SSIZE_T_CLEAN #ifndef CYTHON_USE_PYLONG_INTERNALS #ifdef PYLONG_BITS_IN_DIGIT #define CYTHON_USE_PYLONG_INTERNALS 0 #else #include "pyconfig.h" #ifdef PYLONG_BITS_IN_DIGIT #define CYTHON_USE_PYLONG_INTERNALS 1 #else #define CYTHON_USE_PYLONG_INTER...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/cpu_nms.pyx
Cython
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import numpy as np cimport numpy as np cdef inline np.float32_t max(np...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/gpu_nms.cpp
C++
/* Generated by Cython 0.20.1 on Wed Oct 5 13:15:30 2016 */ #define PY_SSIZE_T_CLEAN #ifndef CYTHON_USE_PYLONG_INTERNALS #ifdef PYLONG_BITS_IN_DIGIT #define CYTHON_USE_PYLONG_INTERNALS 0 #else #include "pyconfig.h" #ifdef PYLONG_BITS_IN_DIGIT #define CYTHON_USE_PYLONG_INTERNALS 1 #else #define CYTHON_USE_PYLONG_INTER...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/gpu_nms.hpp
C++ Header
void _nms(int* keep_out, int* num_out, const float* boxes_host, int boxes_num, int boxes_dim, float nms_overlap_thresh, int device_id);
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/gpu_nms.pyx
Cython
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import numpy as np cimport numpy as np assert sizeof(int) == sizeof(...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/nms_kernel.cu
CUDA
// ------------------------------------------------------------------ // Faster R-CNN // Copyright (c) 2015 Microsoft // Licensed under The MIT License [see fast-rcnn/LICENSE for details] // Written by Shaoqing Ren // ------------------------------------------------------------------ #include "gpu_nms.hpp" #include <v...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta
src/tools/voc_eval_lib/nms/py_cpu_nms.py
Python
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import numpy as np def py_cpu_nms(dets, thresh): """Pure Python NM...
xingyizhou/CenterNet
7,541
Object detection, 3D detection, and pose estimation using center point detection:
Python
xingyizhou
Xingyi Zhou
Meta