MCPcopy Create free account

hub / github.com/roboflow/rf-detr / functions

Functions3,167 in github.com/roboflow/rf-detr

↓ 1 callersFunctionget_dinov2_weight_decay_rate
(name, weight_decay_rate=1.0)
src/rfdetr/models/backbone/backbone.py:232
↓ 1 callersFunctionget_image_list
(ann_file)
src/rfdetr/export/benchmark.py:42
↓ 1 callersMethodget_input_names
( self, )
src/rfdetr/export/benchmark.py:228
↓ 1 callersMethodget_md5
Get expected MD5 hash for a model by filename. Args: filename: The model filename Returns: MD5 hash string i
src/rfdetr/assets/model_weights.py:146
↓ 1 callersMethodget_model
Retrieve a model context from the provided architecture configuration. Args: config: Architecture configuration. Returns
src/rfdetr/detr.py:1693
↓ 1 callersMethodget_model
Return a fresh ``_DummyModel`` instance.
tests/inference/helpers.py:104
↓ 1 callersMethodget_model_config
Retrieve the configuration parameters used by the model.
src/rfdetr/detr.py:282
↓ 1 callersMethodget_named_param_lr_pairs
(self, args, prefix: str)
src/rfdetr/models/backbone/base.py:17
↓ 1 callersMethodget_num_keypoints_per_class
Return the current keypoint schema inferred from the active-keypoint mask.
src/rfdetr/models/lwdetr.py:276
↓ 1 callersMethodget_output_names
( self, )
src/rfdetr/export/benchmark.py:237
↓ 1 callersFunctionget_param_dict
(args: Any, model_without_ddp: nn.Module)
src/rfdetr/training/param_groups.py:58
↓ 1 callersMethodget_train_config
Retrieve the configuration parameters that will be used for training.
src/rfdetr/detr.py:1689
↓ 1 callersFunctionget_uncertain_point_coords_with_randomness
Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The uncertainties are calculated for each point using 'uncertainty_
src/rfdetr/models/heads/segmentation.py:399
↓ 1 callersMethodget_valid_ratio
(self, mask: Tensor)
src/rfdetr/models/transformer.py:266
↓ 1 callersFunctioninfer_engine
(model, coco_evaluator, time_profile, prefix, img_list, device, repeats=1)
src/rfdetr/export/benchmark.py:139
↓ 1 callersFunctioninfer_onnx
(sess, coco_evaluator, time_profile, prefix, img_list, device, repeats=1)
src/rfdetr/export/benchmark.py:102
↓ 1 callersMethodinsert_fmha
(self, node_qkv, final_tranpose, mha_idx, heads, num_dynamic=0)
src/rfdetr/export/_onnx/exporter.py:752
↓ 1 callersMethodinsert_fmhca
(self, node_q, node_kv, final_tranpose, mhca_idx, heads, num_dynamic=0)
src/rfdetr/export/_onnx/exporter.py:630
↓ 1 callersMethodinterpolate_pos_encoding
This method allows to interpolate the pre-trained position encodings, to be able to use the model on higher resolution images. This implementa
src/rfdetr/models/backbone/dinov2_with_windowed_attn.py:337
↓ 1 callersMethodisbetter
(self, new_res: float, old_res: float)
src/rfdetr/training/model_ema.py:74
↓ 1 callersMethoditer_content
Yield the configured content chunks.
tests/utilities/test_file_validation.py:64
↓ 1 callersMethodlist_models
List all available model filenames. Returns: List of model filenames
src/rfdetr/assets/model_weights.py:159
↓ 1 callersMethodload_engine
Load engine.
src/rfdetr/export/benchmark.py:222
↓ 1 callersMethodload_onnx
Load onnx from file.
src/rfdetr/export/_onnx/exporter.py:219
↓ 1 callersFunctionmain
Download, validate, instantiate all models, and test from_checkpoint round-trip.
tests/run_smoke_all_models.py:230
↓ 1 callersMethodmaybe_download_pretrain_weights
Download pre-trained weights if they are not already downloaded. Bare filenames (no directory component, e.g. ``rf-detr-base.pth``) are resol
src/rfdetr/detr.py:258
↓ 1 callersMethodmerge_and_unload
(self)
tests/models/backbone/test_backbone_export.py:40
↓ 1 callersFunctionmodulate
Apply AdaLN modulation to a feature tensor. Args: features: Input feature map to modulate. scale: Per-feature scale terms.
src/rfdetr/models/heads/keypoints.py:39
↓ 1 callersFunctionno_batch_norm
(model)
src/rfdetr/export/main.py:69
↓ 1 callersMethodnum_boxes_for_targets
(self, outputs, targets)
tests/training/test_module_model.py:170
↓ 1 callersMethodnum_boxes_for_targets
(self, outputs, targets)
tests/training/test_metrics_csv.py:137
↓ 1 callersMethodon_test_batch_end
Accumulate predictions and matching data for one test batch. Mirrors :meth:`on_validation_batch_end` for the test evaluation loop triggered b
src/rfdetr/training/callbacks/coco_eval.py:421
↓ 1 callersMethodon_train_batch_end
Update EMA after optimizer steps.
src/rfdetr/training/callbacks/ema.py:151
↓ 1 callersMethodoptimizer
(cls, fn)
src/rfdetr/export/_onnx/symbolic.py:16
↓ 1 callersFunctionparse_trtexec_output
(output_text: str)
src/rfdetr/export/_tensorrt.py:63
↓ 1 callersFunctionplot_loss_metrics
Plot aggregate and component training losses from a PTL ``metrics.csv`` file. Reads the CSV written by PyTorch Lightning's ``CSVLogger``, groups
src/rfdetr/visualize/training.py:317
↓ 1 callersFunctionposition_supervised_loss
(inputs, targets, num_boxes, alpha: float = 0.25, gamma: float = 2)
src/rfdetr/models/criterion.py:72
↓ 1 callersMethodprepare_for_coco_detection
Format bounding-box predictions as COCO result dicts.
src/rfdetr/evaluation/coco_eval.py:541
↓ 1 callersMethodprepare_for_coco_keypoint
Format keypoint predictions as COCO result dicts.
src/rfdetr/evaluation/coco_eval.py:605
↓ 1 callersMethodprepare_for_coco_segmentation
Format segmentation mask predictions as COCO result dicts.
src/rfdetr/evaluation/coco_eval.py:567
↓ 1 callersFunctionprobe_max_micro_batch
Find the largest per-device batch size that fits in memory for one train step. Uses exponential search (1, 2, 4, ...) up to the first failure, th
src/rfdetr/training/auto_batch.py:157
↓ 1 callersMethodprune_heads
(self, heads: Set[int])
src/rfdetr/models/backbone/dinov2_with_windowed_attn.py:589
↓ 1 callersMethodraise_for_status
Raise the configured HTTP error, if any.
tests/utilities/test_file_validation.py:59
↓ 1 callersFunctionrecommend_grad_accum_steps
Recommend gradient accumulation steps to reach target effective batch size. Args: safe_micro_batch: Per-step batch size that fits in memo
src/rfdetr/training/auto_batch.py:276
↓ 1 callersMethodrefpoints_refine
(self, refpoints_unsigmoid: Tensor, new_refpoints_delta: Tensor)
src/rfdetr/models/transformer.py:582
↓ 1 callersFunctionrenderCard
(element, elementIndex)
docs/javascripts/cookbooks-card.js:34
↓ 1 callersMethodreset_keypoint_gaussian_parameters
Reset keypoint Gaussian precision outputs to unit values. Keypoint channels 4, 5, and 6 encode the lower-triangular precision Cholesk
src/rfdetr/models/lwdetr.py:320
↓ 1 callersMethodreset_parameters
(self)
src/rfdetr/models/position_encoding.py:112
↓ 1 callersFunctionresolve_auto_batch_config
Resolve batch_size='auto' into concrete batch_size and grad_accum_steps using a probe. Expects model_context to have attributes: .device (torch.d
src/rfdetr/training/auto_batch.py:296
↓ 1 callersMethodrun_async
(self, blob)
src/rfdetr/export/benchmark.py:270
↓ 1 callersFunctionrun_command_shell
(command: str, dry_run: bool = False)
src/rfdetr/export/_tensorrt.py:22
↓ 1 callersMethodrun_sync
(self, blob)
src/rfdetr/export/benchmark.py:264
↓ 1 callersMethodsave_onnx
(self, onnx_path: str)
src/rfdetr/export/_onnx/exporter.py:226
↓ 1 callersFunctionseed_everything
Reset random, numpy, torch, and CUDA seeds before each test. Defaults to seed 7. Override per-test via indirect parametrize:: @pytest.ma
tests/benchmarks/conftest.py:95
↓ 1 callersMethodset_severity
(self, severity)
src/rfdetr/export/_onnx/exporter.py:216
↓ 1 callersMethodsetup
Initialise the averaged model at fit start. Args: trainer: The Lightning Trainer instance. pl_module: The ``RFDETRMod
src/rfdetr/training/callbacks/ema.py:82
↓ 1 callersFunctionsigmoid_focal_loss
Loss used in RetinaNet for dense detection: https://arxiv.org/abs/1708.02002. Args: inputs: A float tensor of arbitrary shape.
src/rfdetr/models/criterion.py:31
↓ 1 callersFunctionsigmoid_varifocal_loss
(inputs, targets, num_boxes, alpha: float = 0.25, gamma: float = 2)
src/rfdetr/models/criterion.py:61
↓ 1 callersMethodsummary
(self)
src/rfdetr/training/model_ema.py:122
↓ 1 callersMethodto_detections
Materialize the current sample as a supervision ``Detections`` object.
src/rfdetr/datasets/yolo.py:125
↓ 1 callersMethodto_dict
Convert to dictionary, filtering out zero ratios.
src/rfdetr/datasets/synthetic.py:55
↓ 1 callersFunctiontrtexec
(onnx_dir: str, args: argparse.Namespace)
src/rfdetr/export/_tensorrt.py:34
↓ 1 callersMethodupdate_drop_path
Update drop_path rates for backbone encoder layers with linear schedule. Applies a linear schedule where the first layer has drop_path_rate=0
src/rfdetr/models/lwdetr.py:730
↓ 1 callersMethodupdate_dropout
(self, drop_rate)
src/rfdetr/models/lwdetr.py:749
↓ 1 callersFunctionvalidate_pretrain_weights
Validate MD5 hash of pretrained weights file. Args: pretrain_weights: Path to the pretrained weights file strict: If True, raise
src/rfdetr/assets/model_weights.py:397
Method__call__
Normalize image and convert target coordinates to relative format. Applies ImageNet-style channel normalization to the image, then converts
src/rfdetr/datasets/transforms.py:50
Method__call__
Apply the Albumentations transform to image and target. This method handles the data format conversion between RF-DETR and Albumentations:
src/rfdetr/datasets/transforms.py:781
Method__call__
Convert image and YOLO detections to RF-DETR format. Args: image: PIL Image target: dict with 'image_id' and 'detecti
src/rfdetr/datasets/yolo.py:650
Method__call__
(self, image: Image.Image, target: dict[str, Any])
src/rfdetr/datasets/coco.py:326
Method__call__
(self, blob)
src/rfdetr/export/benchmark.py:278
Method__call__
Export *model* to *output_path*. Args: model: The PyTorch model to export. input_shape: Input tensor shape (excluding
src/rfdetr/export/protocols.py:22
Method__call__
(self, outputs, targets, num_boxes=None)
tests/training/test_module_model.py:177
Method__call__
(self, outputs, targets, num_boxes=None)
tests/training/helpers.py:58
Method__call__
(self, outputs, orig_sizes)
tests/training/helpers.py:107
Method__call__
(self, outputs, targets, num_boxes=None)
tests/training/test_metrics_csv.py:141
Method__call__
(self, outputs, targets, group_detr=1)
tests/models/test_criterion.py:17
Method__call__
(self, outputs, targets, group_detr=1)
tests/models/test_criterion_keypoints.py:16
Method__call__
(self, *_args, **_kwargs)
tests/export/test_export.py:64
Function__dir__
Include lazy re-exports in interactive discovery.
src/rfdetr/detr.py:2172
Method__enter__
( self, )
src/rfdetr/export/benchmark.py:338
Method__enter__
(self)
tests/inference/test_optimize_for_inference.py:138
Method__enter__
(self)
tests/inference/test_optimize_for_inference.py:186
Method__enter__
Return self to satisfy context manager protocol.
tests/utilities/test_file_validation.py:29
Method__enter__
(self)
tests/training/callbacks/test_coco_eval_callback.py:495
Method__eq__
(self, other)
tests/utilities/test_tensors.py:60
Method__exit__
(self, type, value, traceback)
src/rfdetr/export/benchmark.py:344
Method__exit__
(self, *args)
tests/inference/test_optimize_for_inference.py:141
Method__exit__
(self, *args)
tests/inference/test_optimize_for_inference.py:189
Method__exit__
Propagate exceptions raised inside the context.
tests/utilities/test_file_validation.py:33
Method__exit__
(self, exc_type: object, exc: object, tb: object)
tests/training/callbacks/test_coco_eval_callback.py:499
Function__getattr__
Lazily resolve training/PTL and plus-only exports and handle removed-module aliases. This hook is only invoked on explicit attribute access (e.g.
src/rfdetr/__init__.py:151
Function__getattr__
Lazily resolve legacy re-exports without creating import-order cycles.
src/rfdetr/detr.py:2161
Function__getattr__
Lazy failure for missing plus exports: warn on import, raise on access.
src/rfdetr/platform/models.py:28
Method__getattr__
(self, name)
tests/training/test_cli.py:86
Method__getitem__
Return the item at the (possibly remapped) index.
src/rfdetr/training/module_data.py:99
Method__getitem__
(self, idx: int)
src/rfdetr/datasets/yolo.py:155
Method__getitem__
(self, idx: int)
src/rfdetr/datasets/yolo.py:794
Method__getitem__
(self, idx: int)
src/rfdetr/datasets/_develop.py:137
Method__getitem__
(self, idx: int)
src/rfdetr/datasets/coco.py:272
Method__getitem__
(self, idx)
tests/training/test_module_data.py:82
← previousnext →701–800 of 3,167, ranked by callers