MCPcopy Create free account

hub / github.com/chaoyu1999/FPSAutomaticAiming / functions

Functions274 in github.com/chaoyu1999/FPSAutomaticAiming

↓ 22 callersMethodinfo
(self, verbose=False, img_size=640)
models/yolo.py:197
↓ 22 callersMethodplot
(self, save_dir='', names=())
utils/metrics.py:160
↓ 15 callersMethod__init__
(self, c1, c2, n=1, shortcut=True, g=1, e=0.5)
models/common.py:128
↓ 15 callersFunctiontime_synchronized
()
utils/torch_utils.py:89
↓ 14 callersMethodtolist
(self)
models/common.py:364
↓ 12 callersMethodlog
(self, log_dict)
utils/wandb_logging/wandb_utils.py:285
↓ 11 callersFunctioncolorstr
(*input)
utils/general.py:191
↓ 11 callersFunctionxyxy2xywh
(x)
utils/general.py:255
↓ 10 callersMethodsave
(self, save_dir='runs/hub/exp')
models/common.py:345
↓ 9 callersFunctioncreate
Creates a specified YOLOv5 model Arguments: name (str): name of model, i.e. 'yolov5s' pretrained (bool): load pretrained weights
hubconf.py:22
↓ 7 callersFunctionletterbox
(img, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=32)
utils/datasets.py:818
↓ 7 callersFunctionselect_device
(device='', batch_size=None)
utils/torch_utils.py:63
↓ 7 callersFunctionxywh2xyxy
(x)
utils/general.py:265
↓ 6 callersFunctionfitness
(x)
utils/metrics.py:12
↓ 6 callersFunctionscale_coords
(img1_shape, coords, img0_shape, ratio_pad=None)
utils/general.py:319
↓ 6 callersFunctionset_logging
(rank=-1)
utils/general.py:33
↓ 5 callersMethod__init__
(self, n, weight=False)
models/experimental.py:27
↓ 5 callersFunctionattempt_load
(weights, map_location=None)
models/experimental.py:113
↓ 5 callersFunctioncheck_file
(file)
utils/general.py:145
↓ 5 callersFunctioncheck_img_size
(img_size, s=32)
utils/general.py:123
↓ 5 callersFunctioncheck_requirements
(requirements='requirements.txt', exclude=())
utils/general.py:94
↓ 5 callersFunctionimg2label_paths
(img_paths)
utils/datasets.py:341
↓ 5 callersFunctionnon_max_suppression
Runs Non-Maximum Suppression (NMS) on inference results Returns: list of detections, on (n,6) tensor per image [xyxy, conf, cls]
utils/general.py:421
↓ 5 callersFunctionremove_prefix
(from_string, prefix=WANDB_ARTIFACT_PREFIX)
utils/wandb_logging/wandb_utils.py:23
↓ 4 callersFunctiondetect
(save_img=False)
detect.py:18
↓ 4 callersMethoddisplay
(self, pprint=False, show=False, save=False, render=False, save_dir='')
models/common.py:314
↓ 4 callersFunctionincrement_path
(path, exist_ok=True, sep='')
utils/general.py:594
↓ 4 callersFunctionis_parallel
(model)
utils/torch_utils.py:135
↓ 4 callersFunctionload_image
(self, index)
utils/datasets.py:629
↓ 4 callersFunctionmetric
(k)
utils/autoanchor.py:32
↓ 4 callersMethodshow
(self)
models/common.py:342
↓ 3 callersFunctionFindBestCenter
根据检测的结果,寻找最佳射击坐标 :param detections: 检测结果 :return: 最佳射击坐标
utils/FPSUtils.py:47
↓ 3 callersMethod__init__
(self, loss_fcn, gamma=1.5, alpha=0.25)
utils/loss.py:34
↓ 3 callersFunctionattempt_download
(file, repo='ultralytics/yolov5')
utils/google_utils.py:19
↓ 3 callersFunctioncheck_dataset
(dict)
utils/general.py:156
↓ 3 callersFunctioncolor_list
()
utils/plots.py:29
↓ 3 callersFunctioncreate_dataloader
(path, imgsz, batch_size, stride, opt, hyp=None, augment=False, cache=False, pad=0.0, rect=False,
utils/datasets.py:59
↓ 3 callersFunctionmake_divisible
(x, divisor)
utils/general.py:176
↓ 3 callersMethodpid_cmd
增量式PID控制
PID/PID.py:25
↓ 3 callersFunctionplot_mc_curve
(px, py, save_dir='mc_curve.png', names=(), xlabel='Confidence', ylabel='Metric')
utils/metrics.py:206
↓ 3 callersFunctionplot_one_box
(x, img, color=None, label=None, line_thickness=3)
utils/plots.py:57
↓ 3 callersFunctionprint_results
(k)
utils/autoanchor.py:92
↓ 3 callersFunctionrandom_perspective
(img, targets=(), segments=(), degrees=10, translate=.1, scale=.1, shear=10, perspective=0.0,
utils/datasets.py:851
↓ 3 callersFunctiontest
(data, weights=None, batch_size=32, imgsz=640, conf_thres=0.001,
test.py:21
↓ 3 callersFunctiontorch_distributed_zero_first
Decorator to make all processes in distributed training wait for each local_master to do something.
utils/torch_utils.py:28
↓ 3 callersFunctionxywhn2xyxy
(x, w=640, h=640, padw=0, padh=0)
utils/general.py:275
↓ 2 callersFunctionCenter
返回中心坐标; :param p: [lx,ly,w,h]->[左上x坐标,左上y坐标] :return: [x,y]
utils/FPSUtils.py:27
↓ 2 callersFunctionDWConv
(c1, c2, k=1, s=1, act=True)
models/common.py:28
↓ 2 callersFunctionanchor_fitness
(k)
utils/autoanchor.py:88
↓ 2 callersFunctionautopad
(k, p=None)
models/common.py:21
↓ 2 callersMethodautoshape
(self)
models/yolo.py:191
↓ 2 callersMethodbackward
(ctx, grad_output)
utils/activations.py:54
↓ 2 callersFunctionbox_area
(box)
utils/general.py:401
↓ 2 callersFunctionbox_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format. Arguments:
utils/general.py:388
↓ 2 callersMethodcache_labels
(self, path=Path('./labels.cache'), prefix='')
utils/datasets.py:454
↓ 2 callersFunctioncheck_anchor_order
(m)
utils/autoanchor.py:12
↓ 2 callersMethodcheck_and_upload_dataset
(self, opt)
utils/wandb_logging/wandb_utils.py:115
↓ 2 callersFunctioncopy_attr
(a, b, include=(), exclude=())
utils/torch_utils.py:260
↓ 2 callersMethodcreate_dataset_table
(self, dataset, class_to_id, name='dataset')
utils/wandb_logging/wandb_utils.py:228
↓ 2 callersMethoddownload_dataset_artifact
(self, path, alias)
utils/wandb_logging/wandb_utils.py:159
↓ 2 callersFunctionemojis
(str='')
utils/general.py:57
↓ 2 callersMethodforward_once
(self, x, profile=False)
models/yolo.py:125
↓ 2 callersFunctionget_hash
(files)
utils/datasets.py:39
↓ 2 callersFunctionget_run_info
(run_path)
utils/wandb_logging/wandb_utils.py:34
↓ 2 callersFunctionisdocker
()
utils/general.py:52
↓ 2 callersFunctionload_mosaic
(self, index)
utils/datasets.py:671
↓ 2 callersMethodmap_val_table_path
(self)
utils/wandb_logging/wandb_utils.py:222
↓ 2 callersMethodnew_video
(self, path)
utils/datasets.py:193
↓ 2 callersFunctionstrip_optimizer
(f='best.pt', s='')
utils/general.py:512
↓ 2 callersFunctiontrain
(hyp, opt, device, tb_writer=None)
train.py:41
↓ 2 callersMethodupdate
(self, model)
utils/torch_utils.py:289
↓ 2 callersFunctionxyn2xy
(x, w=640, h=640, padw=0, padh=0)
utils/general.py:285
↓ 1 callersFunctionDistence
两点间距离 :param a:a点 (xa,ya) :param b: b点(xb,yb) :return: sqrt((xa-xb)**2 + (yb-ya)**2)
utils/FPSUtils.py:36
↓ 1 callersFunctionPID_Controller_Increa
(pid, out_now)
PID/pid_demo.py:21
↓ 1 callersFunctionScreenShout
截取游戏中要检测区域的图片 :return: (h,w,c)
utils/FPSUtils.py:18
↓ 1 callersMethod__init__
(self, path, img_size=640, stride=32)
utils/datasets.py:123
↓ 1 callersMethod__init__
(self, cfg='yolov5s.yaml', ch=3, nc=None, anchors=None)
models/yolo.py:67
↓ 1 callersMethod__iter__
(self)
utils/datasets.py:151
↓ 1 callersMethod_initialize_biases
(self, cf=None)
models/yolo.py:146
↓ 1 callersMethod_make_grid
(nx=20, ny=20)
models/yolo.py:61
↓ 1 callersFunctionap_per_class
Compute the average precision, given the recall and precision curves. Source: https://github.com/rafaelpadilla/Object-Detection-Metrics. # Ar
utils/metrics.py:18
↓ 1 callersFunctionaugment_hsv
(img, hgain=0.5, sgain=0.5, vgain=0.5)
utils/datasets.py:646
↓ 1 callersFunctionbbox_ioa
(box1, box2)
utils/datasets.py:952
↓ 1 callersFunctionbbox_iou
(box1, box2, x1y1x2y2=True, GIoU=False, DIoU=False, CIoU=False, eps=1e-7)
utils/general.py:343
↓ 1 callersFunctionbox_candidates
(box1, box2, wh_thr=2, ar_thr=20, area_thr=0.1, eps=1e-16)
utils/datasets.py:940
↓ 1 callersMethodbuild_targets
(self, p, targets)
utils/loss.py:163
↓ 1 callersFunctionbutter_lowpass
(cutoff, fs, order)
utils/plots.py:48
↓ 1 callersFunctioncheck_anchors
(dataset, model, thr=4.0, imgsz=640)
utils/autoanchor.py:23
↓ 1 callersFunctioncheck_git_status
()
utils/general.py:72
↓ 1 callersFunctioncheck_imshow
()
utils/general.py:131
↓ 1 callersFunctioncheck_online
()
utils/general.py:62
↓ 1 callersFunctioncheck_wandb_resume
(opt)
utils/wandb_logging/wandb_utils.py:42
↓ 1 callersFunctionclean_str
(s)
utils/general.py:181
↓ 1 callersFunctionclip_coords
(boxes, img_shape)
utils/general.py:335
↓ 1 callersFunctioncoco80_to_coco91_class
()
utils/general.py:243
↓ 1 callersFunctioncompute_ap
Compute the average precision, given the recall and precision curves # Arguments recall: The recall curve (list) precision: Th
utils/metrics.py:81
↓ 1 callersFunctioncreate_dataset_artifact
(opt)
utils/wandb_logging/log_dataset.py:10
↓ 1 callersFunctioncreate_folder
(path='./new')
utils/datasets.py:994
↓ 1 callersFunctiondate_modified
(path=__file__)
utils/torch_utils.py:48
↓ 1 callersMethoddownload_model_artifact
(self, opt)
utils/wandb_logging/wandb_utils.py:167
next →1–100 of 274, ranked by callers