repo stringclasses 454
values | file_path stringlengths 5 201 | extension stringclasses 1
value | content stringlengths 8 509k | num_lines int64 3 16.9k | size_bytes int64 8 511k |
|---|---|---|---|---|---|
insightface | detection/scrfd/configs/scrfd/base_34g.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 186 | 6,006 |
insightface | detection/scrfd/configs/scrfd/scrfd_10g_bnkps.py | .py | optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
optimizer_config = dict(grad_clip=None)
lr_mult = 8
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=1500,
warmup_ratio=0.001,
step=[55*lr_mult, 68*lr_mult])
total_epochs = 80*lr_mult
checkpoint_config = dict(inte... | 236 | 7,775 |
insightface | detection/scrfd/configs/scrfd/scrfd_1.3g.py | .py | lr_mult = 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
optimizer_config = dict(grad_clip=None)
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=1500,
warmup_ratio=0.001,
step=[55*lr_mult, 68*lr_mult])
total_epochs = 80*lr_mult
checkpoint_config = dict(inte... | 236 | 7,791 |
insightface | detection/scrfd/configs/scrfd/base_1.3g.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 186 | 6,040 |
insightface | detection/scrfd/configs/scrfd/scrfd_2.5g_bnkps.py | .py | lr_mult = 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
optimizer_config = dict(grad_clip=None)
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=1500,
warmup_ratio=0.001,
step=[55*lr_mult, 68*lr_mult])
total_epochs = 80*lr_mult
checkpoint_config = dict(inte... | 236 | 7,791 |
insightface | detection/scrfd/configs/scrfd/scrfd_10g.py | .py | optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
optimizer_config = dict(grad_clip=None)
lr_mult = 8
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=1500,
warmup_ratio=0.001,
step=[55*lr_mult, 68*lr_mult])
total_epochs = 80*lr_mult
checkpoint_config = dict(inte... | 236 | 7,775 |
insightface | detection/scrfd/configs/scrfd/base_1g.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 186 | 6,047 |
insightface | detection/scrfd/configs/scrfd/base_10g.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 192 | 6,112 |
insightface | detection/scrfd/configs/scrfd/scrfd_2.5g.py | .py | lr_mult = 8
optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0005)
optimizer_config = dict(grad_clip=None)
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=1500,
warmup_ratio=0.001,
step=[55*lr_mult, 68*lr_mult])
total_epochs = 80*lr_mult
checkpoint_config = dict(inte... | 236 | 7,791 |
insightface | detection/scrfd/configs/scrfd/base_500m.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 186 | 6,045 |
insightface | detection/scrfd/configs/scrfdgen2.5g/scrfdgen2.5g_0.py | .py | _base_ = [
#'../_base_/datasets/retinaface.py',
'../_base_/schedules/schedule_retinaface_sgd.py', '../_base_/default_runtime.py'
]
dataset_type = 'RetinaFaceDataset'
data_root = 'data/retinaface/'
train_root = data_root+'train/'
val_root = data_root+'val/'
#img_norm_cfg = dict(
# mean=[123.675, 116.28, 103.5... | 168 | 5,285 |
insightface | detection/scrfd/search_tools/search_train.py | .py | import os, sys
def train(group, prefix, idx, gpuid):
assert idx>=0
cmd = "CUDA_VISIBLE_DEVICES='%d' PORT=%d bash ./tools/dist_train.sh ./configs/%s/%s_%d.py 1 --no-validate"%(gpuid,29100+idx, group, prefix, idx)
print(cmd)
os.system(cmd)
gpuid = int(sys.argv[1])
idx_from = int(sys.argv[2])
idx_to =... | 22 | 475 |
insightface | detection/scrfd/search_tools/generate_configs_2.5g.py | .py |
import os
import os.path as osp
import io
import numpy as np
import argparse
import datetime
import importlib
import configparser
from tqdm import tqdm
from mmdet.models import build_detector
import torch
import autotorch as at
from mmcv import Config
from mmdet.models import build_detector
try:
from mmcv.cnn i... | 259 | 9,322 |
insightface | detection/scrfd/search_tools/search_stat.py | .py | import os
import json
import os.path as osp
import io
import torch
import numpy as np
from mmcv import Config
from mmdet.models import build_detector
from mmcv.cnn import get_model_complexity_info
def get_flops(cfg, input_shape):
model = build_detector(
cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.tes... | 79 | 2,764 |
insightface | detection/retinaface/retinaface.py | .py | from __future__ import print_function
import sys
import os
import datetime
import time
import numpy as np
import mxnet as mx
from mxnet import ndarray as nd
import cv2
#from rcnn import config
from rcnn.logger import logger
#from rcnn.processing.bbox_transform import nonlinear_pred, clip_boxes, landmark_pred
from rcnn.... | 840 | 36,157 |
insightface | detection/retinaface/train.py | .py | from __future__ import print_function
import sys
import argparse
import os
import pprint
import re
import mxnet as mx
import numpy as np
from mxnet.module import Module
import mxnet.optimizer as optimizer
from rcnn.logger import logger
from rcnn.config import config, default, generate_config
from rcnn.symbol import *
... | 503 | 20,395 |
insightface | detection/retinaface/test_widerface.py | .py | from __future__ import print_function
import argparse
import sys
import os
import time
import numpy as np
import mxnet as mx
from mxnet import ndarray as nd
import cv2
from rcnn.logger import logger
#from rcnn.config import config, default, generate_config
#from rcnn.tools.test_rcnn import test_rcnn
#from rcnn.tools.t... | 260 | 9,713 |
insightface | detection/retinaface/test.py | .py | import cv2
import sys
import numpy as np
import datetime
import os
import glob
from retinaface import RetinaFace
thresh = 0.8
scales = [1024, 1980]
count = 1
gpuid = 0
detector = RetinaFace('./model/R50', 0, gpuid, 'net3')
img = cv2.imread('t1.jpg')
print(img.shape)
im_shape = img.shape
target_size = scales[0]
max_... | 64 | 1,805 |
insightface | detection/retinaface/rcnn/logger.py | .py | import logging
# set up logger
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
| 7 | 113 |
insightface | detection/retinaface/rcnn/sample_config.py | .py | import numpy as np
from easydict import EasyDict as edict
config = edict()
# network related params
config.PIXEL_MEANS = np.array([103.939, 116.779, 123.68])
config.PIXEL_STDS = np.array([1.0, 1.0, 1.0])
config.PIXEL_SCALE = 1.0
config.IMAGE_STRIDE = 0
# dataset related params
config.NUM_CLASSES = 2
config.PRE_SCALE... | 352 | 10,005 |
insightface | detection/retinaface/rcnn/pycocotools/setup.py | .py | from distutils.core import setup
from Cython.Build import cythonize
from distutils.extension import Extension
import numpy as np
# To compile and install locally run "python setup.py build_ext --inplace"
# To install library to Python site-packages run "python setup.py build_ext install"
ext_modules = [
Extension... | 19 | 572 |
insightface | detection/retinaface/rcnn/pycocotools/coco.py | .py | __author__ = 'tylin'
__version__ = '2.0'
# Interface for accessing the Microsoft COCO dataset.
# Microsoft COCO is a large image dataset designed for object detection,
# segmentation, and caption generation. pycocotools is a Python API that
# assists in loading, parsing and visualizing the annotations in COCO.
# Pleas... | 478 | 19,454 |
insightface | detection/retinaface/rcnn/pycocotools/cocoeval.py | .py | __author__ = 'tsungyi'
import numpy as np
import datetime
import time
from collections import defaultdict
from .mask import *
import copy
class COCOeval:
# Interface for evaluating detection on the Microsoft COCO dataset.
#
# The usage for CocoEval is as follows:
# cocoGt=..., cocoDt=... # loa... | 593 | 25,235 |
insightface | detection/retinaface/rcnn/dataset/retinaface.py | .py | from __future__ import print_function
try:
import cPickle as pickle
except ImportError:
import pickle
import cv2
import os
import numpy as np
import json
#from PIL import Image
from ..logger import logger
from .imdb import IMDB
from .ds_utils import unique_boxes, filter_small_boxes
from ..config import config
... | 198 | 7,284 |
insightface | detection/retinaface/rcnn/dataset/imdb.py | .py | """
General image database
An image database creates a list of relative image path called image_set_index and
transform index to absolute image path. As to training, it is necessary that ground
truth and proposals are mixed together for training.
roidb
basic format [image_index]
['image', 'height', 'width', 'flipped',
... | 352 | 14,788 |
insightface | detection/retinaface/rcnn/dataset/ds_utils.py | .py | import numpy as np
def unique_boxes(boxes, scale=1.0):
""" return indices of unique boxes """
v = np.array([1, 1e3, 1e6, 1e9])
hashes = np.round(boxes * scale).dot(v).astype(np.int)
_, index = np.unique(hashes, return_index=True)
return np.sort(index)
def filter_small_boxes(boxes, min_size):
... | 17 | 458 |
insightface | detection/retinaface/rcnn/cython/setup.py | .py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os
from os.path import join as pjoin
from setuptools import setu... | 166 | 5,698 |
insightface | detection/retinaface/rcnn/tools/test_rpn.py | .py | import argparse
import pprint
import mxnet as mx
from ..logger import logger
from ..config import config, default, generate_config
from ..symbol import *
from ..dataset import *
from ..core.loader import TestLoader
from ..core.tester import Predictor, generate_proposals, test_proposals
from ..utils.load_model import l... | 161 | 5,816 |
insightface | detection/retinaface/rcnn/tools/reeval.py | .py | import argparse
try:
import cPickle as pickle
except ImportError:
import pickle
import os
import mxnet as mx
from ..logger import logger
from ..config import config, default, generate_config
from ..dataset import *
def reeval(args):
# load imdb
imdb = eval(args.dataset)(args.image_set, args.root_path... | 69 | 1,981 |
insightface | detection/retinaface/rcnn/tools/test_rcnn.py | .py | import argparse
import pprint
import mxnet as mx
from ..logger import logger
from ..config import config, default, generate_config
from ..symbol import *
from ..dataset import *
from ..core.loader import TestLoader
from ..core.tester import Predictor, pred_eval
from ..utils.load_model import load_param
def test_rcnn... | 162 | 6,232 |
insightface | detection/retinaface/rcnn/tools/train_rcnn.py | .py | import argparse
import pprint
import mxnet as mx
from ..logger import logger
from ..config import config, default, generate_config
from ..symbol import *
from ..core import callback, metric
from ..core.loader import ROIIter
from ..core.module import MutableModule
from ..processing.bbox_regression import add_bbox_regre... | 287 | 11,244 |
insightface | detection/retinaface/rcnn/tools/train_rpn.py | .py | import argparse
import logging
import pprint
import mxnet as mx
from ..config import config, default, generate_config
from ..symbol import *
from ..core import callback, metric
from ..core.loader import AnchorLoaderFPN
from ..core.module import MutableModule
from ..utils.load_data import load_gt_roidb, merge_roidb, fi... | 301 | 11,633 |
insightface | detection/retinaface/rcnn/symbol/symbol_mnet.py | .py | import mxnet as mx
import mxnet.ndarray as nd
import mxnet.gluon as gluon
import mxnet.gluon.nn as nn
import mxnet.autograd as ag
import numpy as np
from rcnn.config import config
from rcnn.PY_OP import rpn_fpn_ohem3
from rcnn.symbol.symbol_common import get_sym_train
def conv_only(from_layer, name, num_filter, kerne... | 835 | 38,136 |
insightface | detection/retinaface/rcnn/symbol/symbol_ssh.py | .py | import mxnet as mx
import numpy as np
from rcnn.config import config
from rcnn.PY_OP import rpn_fpn_ohem3
FPN = False
USE_DCN = False
def conv_act_layer(from_layer, name, num_filter, kernel=(1,1), pad=(0,0), \
stride=(1,1), act_type="relu", bias_wd_mult=0.0, dcn=False):
weight = mx.symbol.Variable(name="{}_we... | 726 | 32,227 |
insightface | detection/retinaface/rcnn/symbol/pyramidbox.py | .py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import six
import paddle.fluid as fluid
from paddle.fluid.param_attr import ParamAttr
from paddle.fluid.initializer import Xavier
from paddle.fluid.initializer import Constant
from paddle.flu... | 490 | 21,458 |
insightface | detection/retinaface/rcnn/symbol/symbol_resnet.py | .py | import mxnet as mx
import mxnet.ndarray as nd
import mxnet.gluon as gluon
import mxnet.gluon.nn as nn
import mxnet.autograd as ag
import numpy as np
from rcnn.config import config
from rcnn.PY_OP import rpn_fpn_ohem3
from rcnn.symbol.symbol_common import get_sym_train
def conv_only(from_layer, name, num_filter, kernel... | 828 | 36,906 |
insightface | detection/retinaface/rcnn/symbol/symbol_common.py | .py | import mxnet as mx
import mxnet.ndarray as nd
import numpy as np
from rcnn.config import config
from rcnn.PY_OP import rpn_fpn_ohem3, cascade_refine
PREFIX = 'RF'
F1 = 0
F2 = 0
_bwm = 1.0
def conv_only(from_layer, name, num_filter, kernel=(1,1), pad=(0,0), \
stride=(1,1), bias_wd_mult=0.0, shared_weight=None, sha... | 758 | 33,267 |
insightface | detection/retinaface/rcnn/core/callback.py | .py | import mxnet as mx
def do_checkpoint(prefix, means, stds):
def _callback(iter_no, sym, arg, aux):
if 'bbox_pred_weight' in arg:
arg['bbox_pred_weight_test'] = (arg['bbox_pred_weight'].T *
mx.nd.array(stds)).T
arg['bbox_pred_bias_test'] = ... | 17 | 617 |
insightface | detection/retinaface/rcnn/core/metric.py | .py | from __future__ import print_function
import sys
import mxnet as mx
import numpy as np
from rcnn.config import config
def get_rpn_names():
pred = ['rpn_cls_prob', 'rpn_bbox_loss', 'rpn_label', 'rpn_bbox_weight']
label = ['rpn_label', 'rpn_bbox_target', 'rpn_bbox_weight']
return pred, label
class RPNAcc... | 167 | 6,545 |
insightface | detection/retinaface/rcnn/core/module_bak.py | .py | """A `MutableModule` implement the `BaseModule` API, and allows input shape
varying with training iterations. If shapes vary, executors will rebind,
using shared arrays from the initial module binded with maximum shape.
"""
import logging
from mxnet import context as ctx
from mxnet.initializer import Uniform
from mxn... | 261 | 9,594 |
insightface | detection/retinaface/rcnn/core/module.py | .py | """A `MutableModule` implement the `BaseModule` API, and allows input shape
varying with training iterations. If shapes vary, executors will rebind,
using shared arrays from the initial module binded with maximum shape.
"""
import logging
from mxnet import context as ctx
from mxnet.initializer import Uniform
from mxn... | 260 | 9,563 |
insightface | detection/retinaface/rcnn/core/tester.py | .py | from __future__ import print_function
try:
import cPickle as pickle
except ImportError:
import pickle
import os
import sys
import time
import mxnet as mx
import numpy as np
from builtins import range
from mxnet.module import Module
from .module import MutableModule
from rcnn.logger import logger
from rcnn.conf... | 528 | 19,271 |
insightface | detection/retinaface/rcnn/core/loader.py | .py | from __future__ import print_function
import sys
import mxnet as mx
import numpy as np
import random
import datetime
import multiprocessing
import cv2
from mxnet.executor_manager import _split_input_slice
from rcnn.config import config
from rcnn.io.image import tensor_vstack
from rcnn.io.rpn import get_rpn_testbatch, ... | 550 | 21,359 |
insightface | detection/retinaface/rcnn/utils/load_model.py | .py | import mxnet as mx
def load_checkpoint(prefix, epoch):
"""
Load model checkpoint from file.
:param prefix: Prefix of model name.
:param epoch: Epoch number of model we would like to load.
:return: (arg_params, aux_params)
arg_params : dict of str to NDArray
Model parameter, dict of nam... | 60 | 1,999 |
insightface | detection/retinaface/rcnn/utils/combine_model.py | .py | from .load_model import load_checkpoint
from .save_model import save_checkpoint
def combine_model(prefix1, epoch1, prefix2, epoch2, prefix_out, epoch_out):
args1, auxs1 = load_checkpoint(prefix1, epoch1)
args2, auxs2 = load_checkpoint(prefix2, epoch2)
arg_names = args1.keys() + args2.keys()
aux_names ... | 23 | 711 |
insightface | detection/retinaface/rcnn/utils/save_model.py | .py | import mxnet as mx
def save_checkpoint(prefix, epoch, arg_params, aux_params):
"""Checkpoint the model data into file.
:param prefix: Prefix of model name.
:param epoch: The epoch number of the model.
:param arg_params: dict of str to NDArray
Model parameter, dict of name to NDArray of net's w... | 19 | 760 |
insightface | detection/retinaface/rcnn/utils/load_data.py | .py | import numpy as np
from ..logger import logger
from ..config import config
from ..dataset import *
def load_gt_roidb(dataset_name,
image_set_name,
root_path,
dataset_path,
flip=False):
""" load ground truth roidb """
imdb = eval(dataset_n... | 65 | 2,084 |
insightface | detection/retinaface/rcnn/PY_OP/cascade_refine.py | .py | from __future__ import print_function
import sys
import mxnet as mx
import numpy as np
import datetime
from distutils.util import strtobool
from ..config import config, generate_config
from ..processing.generate_anchor import generate_anchors, anchors_plane
from ..processing.bbox_transform import bbox_overlaps, bbox_tr... | 519 | 24,233 |
insightface | detection/retinaface/rcnn/PY_OP/rpn_fpn_ohem3.py | .py | from __future__ import print_function
import sys
import mxnet as mx
import numpy as np
from distutils.util import strtobool
from ..config import config, generate_config
STAT = {0: 0}
STEP = 28800
class RPNFPNOHEM3Operator(mx.operator.CustomOp):
def __init__(self, stride=0, network='', dataset='', prefix=''):
... | 176 | 7,624 |
insightface | detection/retinaface/rcnn/io/image.py | .py | from __future__ import print_function
import numpy as np
import cv2
import os
import math
import sys
import random
from ..config import config
def brightness_aug(src, x):
alpha = 1.0 + random.uniform(-x, x)
src *= alpha
return src
def contrast_aug(src, x):
alpha = 1.0 + random.uniform(-x, x)
coe... | 887 | 34,873 |
insightface | detection/retinaface/rcnn/io/rpn.py | .py | """
RPN:
data =
{'data': [num_images, c, h, w],
'im_info': [num_images, 4] (optional)}
label =
{'gt_boxes': [num_boxes, 5] (optional),
'label': [batch_size, 1] <- [batch_size, num_anchors, feat_height, feat_width],
'bbox_target': [batch_size, num_anchors, feat_height, feat_width],
'bbox_weig... | 888 | 38,033 |
insightface | detection/retinaface/rcnn/io/rcnn.py | .py | """
Fast R-CNN:
data =
{'data': [num_images, c, h, w],
'rois': [num_rois, 5]}
label =
{'label': [num_rois],
'bbox_target': [num_rois, 4 * num_classes],
'bbox_weight': [num_rois, 4 * num_classes]}
roidb extended format [image_index]
['image', 'height', 'width', 'flipped',
'boxes', 'gt_classe... | 662 | 26,808 |
insightface | parsing/dml_csr/train.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : train.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 The A... | 419 | 19,356 |
insightface | parsing/dml_csr/test.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : datasets.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 Th... | 183 | 6,879 |
insightface | parsing/dml_csr/dataset/datasets.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : datasets.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 Th... | 181 | 5,860 |
insightface | parsing/dml_csr/loss/consistency_loss.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : consistency_loss.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright... | 76 | 2,799 |
insightface | parsing/dml_csr/loss/criterion.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : criterion.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 T... | 161 | 8,297 |
insightface | parsing/dml_csr/loss/lovasz_softmax.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : lovaz_softmax.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 20... | 281 | 9,520 |
insightface | parsing/dml_csr/loss/kl_loss.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : kl_loss.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 The... | 48 | 1,648 |
insightface | parsing/dml_csr/networks/dml_csr.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : dml_csr.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2015 The... | 104 | 4,011 |
insightface | parsing/dml_csr/networks/modules/edges.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : edges.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The A... | 67 | 2,497 |
insightface | parsing/dml_csr/networks/modules/util.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : util.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The Au... | 59 | 1,827 |
insightface | parsing/dml_csr/networks/modules/ddgcn.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : ddgcn.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The A... | 183 | 6,097 |
insightface | parsing/dml_csr/networks/modules/parsing.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : parsing.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The... | 52 | 1,712 |
insightface | parsing/dml_csr/utils/logging.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : logging.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The... | 136 | 4,836 |
insightface | parsing/dml_csr/utils/schp.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : schp.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The Au... | 88 | 2,786 |
insightface | parsing/dml_csr/utils/utils.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : utils.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The A... | 107 | 3,450 |
insightface | parsing/dml_csr/utils/transforms.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : transforms.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 ... | 123 | 3,641 |
insightface | parsing/dml_csr/utils/miou.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : miou.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 The Au... | 243 | 8,114 |
insightface | parsing/dml_csr/utils/encoding.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : encoding.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright 2022 Th... | 258 | 9,603 |
insightface | parsing/dml_csr/utils/warmup_scheduler.py | .py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author : Qingping Zheng
@Contact : qingpingzheng2014@gmail.com
@File : warmup_scheduler.py
@Time : 10/01/21 00:00 PM
@Desc :
@License : Licensed under the Apache License, Version 2.0 (the "License");
@Copyright : Copyright... | 73 | 3,308 |
python-telegram-bot | changes/config.py | .py | # noqa: INP001
# pylint: disable=import-error
"""Configuration for the chango changelog tool"""
import re
from collections.abc import Collection
from pathlib import Path
from chango import Version
from chango.concrete import DirectoryChanGo, DirectoryVersionScanner, HeaderVersionHistory
from chango.concrete.sections ... | 105 | 4,058 |
python-telegram-bot | docs/source/conf.py | .py | import os
import re
import sys
from pathlib import Path
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
from sphinx.application i... | 360 | 15,711 |
python-telegram-bot | docs/auxil/link_code.py | .py | #
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Softwa... | 80 | 2,922 |
python-telegram-bot | docs/auxil/tg_const_role.py | .py | #
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Softwa... | 102 | 3,993 |
python-telegram-bot | docs/auxil/bot_insertion.py | .py | #
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Softwa... | 123 | 4,448 |
python-telegram-bot | docs/auxil/admonition_inserter.py | .py | #
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Softwa... | 579 | 26,227 |
python-telegram-bot | docs/auxil/sphinx_hooks.py | .py | #
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Softwa... | 242 | 9,330 |
python-telegram-bot | tests/test_replykeyboardmarkup.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 171 | 7,195 |
python-telegram-bot | tests/test_telegramobject.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 872 | 32,799 |
python-telegram-bot | tests/test_keyboardbuttonrequestmanagedbot.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 100 | 3,908 |
python-telegram-bot | tests/test_paidmedia.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 516 | 16,710 |
python-telegram-bot | tests/test_directmessagepricechanged.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 87 | 3,494 |
python-telegram-bot | tests/test_modules.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 68 | 2,525 |
python-telegram-bot | tests/test_botaccesssettings.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 88 | 3,378 |
python-telegram-bot | tests/test_managedbot.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 197 | 7,481 |
python-telegram-bot | tests/test_menubutton.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 228 | 7,361 |
python-telegram-bot | tests/test_sentguestmessage.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 65 | 2,310 |
python-telegram-bot | tests/test_update.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 485 | 15,217 |
python-telegram-bot | tests/test_birthdate.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 84 | 2,852 |
python-telegram-bot | tests/test_giveaway.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 454 | 18,865 |
python-telegram-bot | tests/test_messageentity.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 195 | 7,238 |
python-telegram-bot | tests/test_chatinvitelink.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 219 | 9,092 |
python-telegram-bot | tests/test_chatboost.py | .py | # python-telegram-bot - a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# by the python-telegram-bot contributors <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free ... | 605 | 20,690 |
python-telegram-bot | tests/test_checklists.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 446 | 16,937 |
python-telegram-bot | tests/test_gifts.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 608 | 22,403 |
python-telegram-bot | tests/test_writeaccessallowed.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 58 | 1,996 |
python-telegram-bot | tests/test_chatbackground.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 604 | 19,973 |
python-telegram-bot | tests/test_chatadministratorrights.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 191 | 6,797 |
python-telegram-bot | tests/test_loginurl.py | .py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2026
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | 72 | 2,607 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.