Repository Analysis

pytorch/vision

Datasets, Transforms and Models specific to Computer Vision

15.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pytorch/vision, a Python project with 17,808 GitHub stars. SynthScan v2.0 examined 119,524 lines of code across 431 source files, recording 1658 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 15.4 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

15.4
Adjusted Score
15.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
17.8K
Stars
Python
Language
119.5K
Lines of Code
431
Files
1.7K
Pattern Hits
2026-07-14
Scan Date
0.18
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 79MEDIUM 66LOW 1513

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1658 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers578 hits · 486 pts
SeverityFileLineSnippetContext
LOWsetup.py248def get_stable_macros_and_flags():CODE
LOWsetup.py449def make_image_stable_extension():CODE
LOWtest/smoke_test.py24def smoke_test_torchvision_read_decode() -> None:CODE
LOWtest/smoke_test.py69def smoke_test_torchvision_decode_jpeg(device: str = "cpu"):CODE
LOWtest/test_utils.py42def test_make_grid_not_inplace():CODE
LOWtest/test_utils.py56def test_normalize_in_make_grid():CODE
LOWtest/test_utils.py83def test_save_image_single_pixel():CODE
LOWtest/test_utils.py91def test_save_image_file_object():CODE
LOWtest/test_utils.py103def test_save_image_single_pixel_file_object():CODE
LOWtest/test_utils.py138def test_draw_boxes_with_coloured_labels():CODE
LOWtest/test_utils.py153def test_draw_boxes_with_coloured_label_backgrounds():CODE
LOWtest/test_utils.py170def test_draw_boxes_with_coloured_label_text_boxes():CODE
LOWtest/test_utils.py208def test_draw_rotated_boxes_fill():CODE
LOWtest/test_utils.py262def test_draw_boxes_grayscale():CODE
LOWtest/test_utils.py321def test_draw_segmentation_masks(colors, alpha, device):CODE
LOWtest/test_utils.py363def test_draw_segmentation_masks_dtypes():CODE
LOWtest/test_utils.py384def test_draw_segmentation_masks_errors(device):CODE
LOWtest/test_utils.py421def test_draw_no_segmention_mask(device):CODE
LOWtest/test_utils.py430def test_draw_keypoints_vanilla():CODE
LOWtest/test_utils.py465def test_draw_keypoints_colored(colors):CODE
LOWtest/test_utils.py492def test_draw_keypoints_visibility(connectivity, vis):CODE
LOWtest/test_utils.py531def test_draw_keypoints_visibility_default():CODE
LOWtest/test_utils.py555def test_draw_keypoints_dtypes():CODE
LOWtest/test_utils.py571def test_draw_keypoints_errors():CODE
LOWtest/test_utils.py636def test_flow_to_image_errors(input_flow, match):CODE
LOWtest/conftest.py25def pytest_collection_modifyitems(items):CODE
LOWtest/test_transforms_video.py40 def test_random_resized_crop_video(self):CODE
LOWtest/test_transforms_video.py116 def samples_from_standard_normal(tensor):CODE
LOWtest/test_transforms_video.py164 def test_random_horizontal_flip_video(self, p):CODE
LOWtest/test_datasets_utils.py49 def test_get_redirect_url_max_hops_exceeded(self, mocker):CODE
LOWtest/test_datasets_utils.py81 def test_get_google_drive_file_id(self):CODE
LOWtest/test_datasets_utils.py88 def test_get_google_drive_file_id_invalid_url(self):CODE
LOWtest/test_datasets_utils.py116 def test_detect_file_type_incompatible(self, file):CODE
LOWtest/test_datasets_utils.py145 def test_decompress_no_compression(self):CODE
LOWtest/test_datasets_utils.py150 def test_decompress_remove_finished(self, tmpdir, use_pathlib):CODE
LOWtest/test_datasets_utils.py178 def test_extract_archive_defer_to_decompress(self, extension, remove_finished, mocker):CODE
LOWtest/test_datasets_utils.py270def test_make_dataset_no_valid_files(tmpdir, kwargs, expected_error_msg):CODE
LOWtest/test_datasets.py149 def _create_annotation_folder(self, root, name, file_name_fn, num_examples):CODE
LOWtest/test_datasets.py385 def test_feature_types_target_color(self):CODE
LOWtest/test_datasets.py391 def test_feature_types_target_polygon(self):CODE
LOWtest/test_datasets.py1053 def test_not_found_or_corrupted(self):CODE
LOWtest/test_datasets.py1330 def test_not_found_or_corrupted(self):CODE
LOWtest/test_datasets.py1700 def _is_valid_file_to_extensions(self, is_valid_file):CODE
LOWtest/test_datasets.py1992 def test_tv_decode_image_support(self):CODE
LOWtest/test_datasets.py2727 def _meta_to_split_and_classification_ann(self, meta, idx):CODE
LOWtest/test_datasets.py3403 def _create_annotation_folder(num_examples: int, root_dir: str):CODE
LOWtest/test_datasets.py3511 def test_augmented_view_usage(self):CODE
LOWtest/test_datasets_video_utils.py72 def test_video_clips_custom_fps(self, tmpdir):CODE
LOWtest/test_datasets_video_utils.py83 def test_compute_clips_for_video(self):CODE
LOWtest/test_backbone_utils.py98 def _create_feature_extractor(self, *args, **kwargs):CODE
LOWtest/test_backbone_utils.py131 def test_build_fx_feature_extractor(self, model_name):CODE
LOWtest/test_backbone_utils.py162 def test_node_name_conventions(self):CODE
LOWtest/test_backbone_utils.py186 def test_feature_extraction_methods_equivalence(self):CODE
LOWtest/test_backbone_utils.py207 def test_jit_forward_backward(self, model_name):CODE
LOWtest/test_backbone_utils.py294 def test_leaf_module_and_function(self):CODE
LOWtest/test_transforms_tensor.py31def _test_transform_vs_scripted(transform, s_transform, tensor, msg=None):CODE
LOWtest/test_transforms_tensor.py39def _test_transform_vs_scripted_on_batch(transform, s_transform, batch_tensors, msg=None):CODE
LOWtest/test_transforms_tensor.py140 def test_color_jitter_brightness(self, brightness, device, channels):CODE
LOWtest/test_transforms_tensor.py154 def test_color_jitter_contrast(self, contrast, device, channels):CODE
LOWtest/test_transforms_tensor.py168 def test_color_jitter_saturation(self, saturation, device, channels):CODE
518 more matches not shown…
Unused Imports587 hits · 403 pts
SeverityFileLineSnippetContext
LOWhubconf.py4CODE
LOWhubconf.py4CODE
LOWhubconf.py5CODE
LOWhubconf.py6CODE
LOWhubconf.py6CODE
LOWhubconf.py6CODE
LOWhubconf.py6CODE
LOWhubconf.py7CODE
LOWhubconf.py7CODE
LOWhubconf.py7CODE
LOWhubconf.py7CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py8CODE
LOWhubconf.py21CODE
LOWhubconf.py22CODE
LOWhubconf.py23CODE
LOWhubconf.py24CODE
LOWhubconf.py24CODE
LOWhubconf.py24CODE
LOWhubconf.py24CODE
LOWhubconf.py25CODE
LOWhubconf.py26CODE
LOWhubconf.py26CODE
LOWhubconf.py27CODE
LOWhubconf.py27CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py28CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py45CODE
LOWhubconf.py57CODE
527 more matches not shown…
Cross-File Repetition66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHreferences/classification/utils.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/depth/stereo/utils/logger.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/segmentation/utils.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/video_classification/utils.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/optical_flow/utils.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/detection/utils.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHreferences/classification/utils.py0this function disables printing when not in master processSTRING
HIGHreferences/segmentation/utils.py0this function disables printing when not in master processSTRING
HIGHreferences/video_classification/utils.py0this function disables printing when not in master processSTRING
HIGHreferences/detection/utils.py0this function disables printing when not in master processSTRING
HIGHtorchvision/datasets/stl10.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/usps.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/svhn.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/semeion.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/cifar.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/caltech.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/mnist.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/folder.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/fakedata.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/datasets/omniglot.py0args: index (int): index returns: tuple: (image, target) where target is index of the target character class.STRING
HIGHtorchvision/models/shufflenetv2.py0these weights were trained from scratch by using torchvision's `new training recipe <https://pytorch.org/blog/how-to-traSTRING
HIGHtorchvision/models/mnasnet.py0these weights were trained from scratch by using torchvision's `new training recipe <https://pytorch.org/blog/how-to-traSTRING
HIGHtorchvision/models/resnet.py0these weights were trained from scratch by using torchvision's `new training recipe <https://pytorch.org/blog/how-to-traSTRING
HIGHtorchvision/models/regnet.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/squeezenet.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/resnet.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/mobilenetv2.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/swin_transformer.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/alexnet.py0these weights reproduce closely the results of the paper using a simplified training recipe.STRING
HIGHtorchvision/models/regnet.py0these weights improve marginally upon the results of the original paper by using a modified version of torchvision's `neSTRING
HIGHtorchvision/models/efficientnet.py0these weights improve marginally upon the results of the original paper by using a modified version of torchvision's `neSTRING
HIGHtorchvision/models/mobilenetv2.py0these weights improve marginally upon the results of the original paper by using a modified version of torchvision's `neSTRING
HIGHtorchvision/models/convnext.py0these weights improve marginally upon the results of the original paper by using a modified version of torchvision's `neSTRING
HIGHtorchvision/models/mobilenetv3.py0these weights improve marginally upon the results of the original paper by using a modified version of torchvision's `neSTRING
HIGHtorchvision/models/segmentation/fcn.py0these weights were trained on a subset of coco, using only the 20 categories that are present in the pascal voc dataset.STRING
HIGHtorchvision/models/segmentation/lraspp.py0these weights were trained on a subset of coco, using only the 20 categories that are present in the pascal voc dataset.STRING
HIGHtorchvision/models/segmentation/deeplabv3.py0these weights were trained on a subset of coco, using only the 20 categories that are present in the pascal voc dataset.STRING
HIGHtorchvision/models/quantization/shufflenetv2.py0fuse conv/bn/relu modules in resnet models fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization. modSTRING
HIGHtorchvision/models/quantization/googlenet.py0fuse conv/bn/relu modules in resnet models fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization. modSTRING
HIGHtorchvision/models/quantization/inception.py0fuse conv/bn/relu modules in resnet models fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization. modSTRING
HIGHtorchvision/models/quantization/resnet.py0fuse conv/bn/relu modules in resnet models fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization. modSTRING
HIGHtorchvision/models/quantization/shufflenetv2.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/quantization/googlenet.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/quantization/inception.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/quantization/resnet.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/quantization/mobilenetv2.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/quantization/mobilenetv3.py0these weights were produced by doing quantization aware training (eager mode) on top of the unquantized weights listed bSTRING
HIGHtorchvision/models/detection/ssdlite.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/ssd.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/faster_rcnn.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/fcos.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/mask_rcnn.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/retinanet.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/keypoint_rcnn.py0these weights were produced by following a similar training recipe as on the paper.STRING
HIGHtorchvision/models/detection/faster_rcnn.py0implements keypoint r-cnn. the input to the model is expected to be a list of tensors, each of shape [c, h, w], one for STRING
HIGHtorchvision/models/detection/mask_rcnn.py0implements keypoint r-cnn. the input to the model is expected to be a list of tensors, each of shape [c, h, w], one for STRING
HIGHtorchvision/models/detection/keypoint_rcnn.py0implements keypoint r-cnn. the input to the model is expected to be a list of tensors, each of shape [c, h, w], one for STRING
HIGHtorchvision/models/detection/faster_rcnn.py0these weights were produced using an enhanced training recipe to boost the model accuracy.STRING
HIGHtorchvision/models/detection/mask_rcnn.py0these weights were produced using an enhanced training recipe to boost the model accuracy.STRING
HIGHtorchvision/models/detection/retinanet.py0these weights were produced using an enhanced training recipe to boost the model accuracy.STRING
6 more matches not shown…
Decorative Section Separators49 hits · 147 pts
SeverityFileLineSnippetContext
MEDIUMgallery/others/plot_optical_flow.py51# --------------------------------COMMENT
MEDIUMgallery/others/plot_optical_flow.py112# ----------------------------------COMMENT
MEDIUMgallery/others/plot_optical_flow.py152# ---------------------------COMMENT
MEDIUMgallery/others/plot_optical_flow.py174# ---------------------------------------COMMENT
MEDIUMgallery/others/plot_visualization_utils.py39# ----------------------------COMMENT
MEDIUMgallery/others/plot_visualization_utils.py57# --------------------------COMMENT
MEDIUMgallery/others/plot_visualization_utils.py105# ------------------------------COMMENT
MEDIUMgallery/others/plot_visualization_utils.py357# ------------------------------COMMENT
MEDIUMgallery/others/plot_repurposing_annotations.py62# -----------------------------------------------COMMENT
MEDIUMgallery/others/plot_repurposing_annotations.py162# ----------------------------------------------------COMMENT
MEDIUMgallery/transforms/plot_cutmix_mixup.py32# -----------------------COMMENT
MEDIUMgallery/transforms/plot_cutmix_mixup.py69# -----------------------------COMMENT
MEDIUMgallery/transforms/plot_cutmix_mixup.py125# -------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py36# ----------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py49# --------------------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py83# -------------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py128# --------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py156# ------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_getting_started.py225# ------------------------------------------COMMENT
MEDIUMgallery/transforms/plot_custom_transforms.py24# ===============================================================COMMENT
MEDIUMgallery/transforms/plot_custom_transforms.py84# =====================================COMMENT
MEDIUMgallery/transforms/plot_custom_transforms.py113# -----------------------------------------COMMENT
MEDIUMgallery/transforms/plot_custom_transforms.py151# --------------------------------------COMMENT
MEDIUMgallery/transforms/plot_keypoints_transforms.py43# -------------------------------COMMENT
MEDIUMgallery/transforms/plot_keypoints_transforms.py75# ------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_illustrations.py37# --------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_illustrations.py141# ----------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_illustrations.py253# -----------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_illustrations.py299# ---------------------------COMMENT
MEDIUMgallery/transforms/plot_rotated_box_transforms.py41# -------------------------------COMMENT
MEDIUMgallery/transforms/plot_rotated_box_transforms.py64# ------------------------COMMENT
MEDIUMgallery/transforms/plot_rotated_box_transforms.py97# -------------------------------------------COMMENT
MEDIUMgallery/transforms/plot_rotated_box_transforms.py169# --------------------------COMMENT
MEDIUMgallery/transforms/plot_tv_tensors.py35# -------------------COMMENT
MEDIUMgallery/transforms/plot_tv_tensors.py58# ------------------------------COMMENT
MEDIUMgallery/transforms/plot_tv_tensors.py69# ------------------------------COMMENT
MEDIUMgallery/transforms/plot_tv_tensors.py137# -----------------------------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_e2e.py43# -------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_e2e.py93# ----------COMMENT
MEDIUMgallery/transforms/plot_transforms_e2e.py142# ------------------------------COMMENT
MEDIUMgallery/transforms/plot_transforms_e2e.py172# -------------------COMMENT
MEDIUMgallery/transforms/plot_custom_tv_tensors.py93# -----------------------------------------------------------------------COMMENT
MEDIUMgallery/transforms/plot_custom_tv_tensors.py125# ------------------------------COMMENT
MEDIUMtorchvision/_autograd_registrations.py8# =====================================================================COMMENT
MEDIUMtorchvision/_autograd_registrations.py10# =====================================================================COMMENT
MEDIUMtorchvision/_autograd_registrations.py208# =====================================================================COMMENT
MEDIUMtorchvision/_autograd_registrations.py210# =====================================================================COMMENT
MEDIUMtorchvision/_autograd_registrations.py328# =====================================================================COMMENT
MEDIUMtorchvision/_autograd_registrations.py330# =====================================================================COMMENT
Over-Commented Block117 hits · 116 pts
SeverityFileLineSnippetContext
LOWpackaging/cut_release.sh1#!/usr/bin/env bashCOMMENT
LOWtest/smoke_test.py41 # if torch.cuda.is_available():COMMENT
LOWtest/conftest.py21 config.addinivalue_line("markers", "dont_collect: mark for tests that should not be collected")COMMENT
LOWtest/conftest.py81COMMENT
LOWtest/test_image.py861@pytest.mark.parametrize("scripted", (True, False))COMMENT
LOWtest/test_models.py841 # We first try to assert the entire output if possible. This is notCOMMENT
LOWtest/test_transforms_v2.py7161 dtype=torch.float32,COMMENT
LOWreferences/depth/stereo/transforms.py481 )COMMENT
LOWgallery/others/plot_optical_flow.py121# If you can, run this example on a GPU, it will be a lot faster.COMMENT
LOWgallery/others/plot_optical_flow.py141# vertical displacement of each pixel from the first image to the second image.COMMENT
LOWgallery/others/plot_optical_flow.py181COMMENT
LOWgallery/others/plot_visualization_utils.py101show(dogs_with_boxes)COMMENT
LOWgallery/others/plot_visualization_utils.py161# 1]``. To get boolean masks, we can do the following:COMMENT
LOWgallery/others/plot_visualization_utils.py241# Instance segmentation modelsCOMMENT
LOWgallery/others/plot_visualization_utils.py281# associated to those keys has ``num_instances`` elements in it. In our caseCOMMENT
LOWgallery/others/plot_visualization_utils.py341COMMENT
LOWgallery/others/plot_visualization_utils.py381# As we see the output contains a list of dictionaries.COMMENT
LOWgallery/others/plot_visualization_utils.py421# As we see, the keypoints appear as colored circles over the image.COMMENT
LOWgallery/others/plot_visualization_utils.py441#COMMENT
LOWgallery/others/plot_visualization_utils.py501# So we definitely don't want to display those keypoints and connections, and you don't have to.COMMENT
LOWgallery/others/plot_visualization_utils.py521# The :func:`~torchvision.models.detection.keypointrcnn_resnet50_fpn` model,COMMENT
LOWgallery/others/plot_scripted_tensor_transforms.py61# <v1_or_v2>` way to use transforms in your code.COMMENT
LOWgallery/others/plot_repurposing_annotations.py41COMMENT
LOWgallery/others/plot_repurposing_annotations.py161# Converting Segmentation Dataset to Detection DatasetCOMMENT
LOWgallery/transforms/plot_cutmix_mixup.py61 print(f"{images.shape = }, {labels.shape = }")COMMENT
LOWgallery/transforms/plot_cutmix_mixup.py81mixup = v2.MixUp(num_classes=NUM_CLASSES)COMMENT
LOWgallery/transforms/plot_cutmix_mixup.py121 breakCOMMENT
LOWgallery/transforms/plot_transforms_getting_started.py61COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py121# answer these in the next sections.COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py141img_dp = tv_tensors.Image(torch.randint(0, 256, (3, 256, 256), dtype=torch.uint8))COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py181# %%COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py201# :class:`~torchvision.tv_tensors.Image` class at all, and yet our imagesCOMMENT
LOWgallery/transforms/plot_transforms_getting_started.py221#COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py241# TVTensors, so they don't return TVTensors out of the box.COMMENT
LOWgallery/transforms/plot_transforms_getting_started.py261#COMMENT
LOWgallery/transforms/plot_custom_transforms.py21COMMENT
LOWgallery/transforms/plot_custom_transforms.py81# :ref:`tv_tensor_unwrapping_behaviour`COMMENT
LOWgallery/transforms/plot_custom_transforms.py141# ``structured_input``, the input is flattened and then each individual part isCOMMENT
LOWgallery/transforms/plot_custom_transforms.py181_ = my_random_transform(structured_input) # doesn't transformCOMMENT
LOWgallery/transforms/plot_transforms_illustrations.py41#COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py61# ~~~~~~~~~~COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py81# (see also :func:`~torchvision.transforms.functional.perspective`)COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py101# (see also :func:`~torchvision.transforms.functional.affine`)COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py121# The :class:`~torchvision.transforms.RandomCrop` transformCOMMENT
LOWgallery/transforms/plot_transforms_illustrations.py141# ----------------------COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py161# ~~~~~~~~~~~COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py181# The :class:`~torchvision.transforms.RandomInvert` transformCOMMENT
LOWgallery/transforms/plot_transforms_illustrations.py201# ~~~~~~~~~~~~~~COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py221# RandomAutocontrastCOMMENT
LOWgallery/transforms/plot_transforms_illustrations.py241# JPEGCOMMENT
LOWgallery/transforms/plot_transforms_illustrations.py281# ~~~~~~~~~~~~~~~~~~COMMENT
LOWgallery/transforms/plot_transforms_illustrations.py301# The following transforms are randomly-applied given a probability ``p``. That is, given ``p = 0.5``,COMMENT
LOWgallery/transforms/plot_rotated_box_transforms.py81resized_imgs = [COMMENT
LOWgallery/transforms/plot_rotated_box_transforms.py101# transformed (cropped) image. In general, this may happen on most of theCOMMENT
LOWgallery/transforms/plot_rotated_box_transforms.py161print(soft_center_crops_and_boxes)COMMENT
LOWgallery/transforms/plot_tv_tensors.py41COMMENT
LOWgallery/transforms/plot_tv_tensors.py61# Everything that is supported on a plain :class:`torch.Tensor` like ``.sum()`` orCOMMENT
LOWgallery/transforms/plot_tv_tensors.py81# Similar to other PyTorch creations ops, the constructor also takes the ``dtype``, ``device``, and ``requires_grad``COMMENT
LOWgallery/transforms/plot_tv_tensors.py121# into a TVTensor. This is useful when you already have an object of theCOMMENT
LOWgallery/transforms/plot_tv_tensors.py181# Why is this happening?COMMENT
57 more matches not shown…
Deep Nesting96 hits · 91 pts
SeverityFileLineSnippetContext
LOWsetup.py522CODE
LOWpackaging/wheel/relocate.py282CODE
LOWtest/conftest.py25CODE
LOWtest/test_datasets.py292CODE
LOWtest/test_datasets.py1002CODE
LOWtest/test_datasets.py1763CODE
LOWtest/test_datasets.py2530CODE
LOWtest/test_datasets_download.py80CODE
LOWtest/test_extended_models.py244CODE
LOWtest/test_transforms_v2.py7194CODE
LOWtest/test_transforms_v2.py1789CODE
LOWtest/test_transforms_v2.py4238CODE
LOWtest/test_ops.py290CODE
LOWtest/test_ops.py340CODE
LOWtest/test_ops.py427CODE
LOWtest/test_ops.py661CODE
LOWtest/test_ops.py962CODE
LOWtest/common_utils.py410CODE
LOWtest/common_utils.py54CODE
LOWtest/datasets_utils.py971CODE
LOWtest/datasets_utils.py483CODE
LOWtest/datasets_utils.py576CODE
LOWtest/datasets_utils.py709CODE
LOWreferences/classification/presets.py21CODE
LOWreferences/depth/stereo/transforms.py519CODE
LOWreferences/depth/stereo/train.py36CODE
LOWreferences/depth/stereo/train.py267CODE
LOWreferences/depth/stereo/cascade_evaluation.py109CODE
LOWreferences/optical_flow/train.py13CODE
LOWreferences/optical_flow/train.py133CODE
LOWreferences/detection/presets.py21CODE
LOWgallery/transforms/helpers.py9CODE
LOWtorchvision/utils.py25CODE
LOWtorchvision/utils.py177CODE
LOWtorchvision/utils.py285CODE
LOWtorchvision/utils.py418CODE
LOWtorchvision/utils.py487CODE
LOWtorchvision/utils.py722CODE
LOWtorchvision/datasets/flickr.py40CODE
LOWtorchvision/datasets/folder.py49CODE
LOWtorchvision/datasets/lfw.py137CODE
LOWtorchvision/datasets/celeba.py175CODE
LOWtorchvision/datasets/_stereo_matching.py579CODE
LOWtorchvision/datasets/widerface.py113CODE
LOWtorchvision/datasets/_optical_flow.py349CODE
LOWtorchvision/datasets/inaturalist.py142CODE
LOWtorchvision/datasets/inaturalist.py209CODE
LOWtorchvision/models/googlenet.py32CODE
LOWtorchvision/models/mnasnet.py112CODE
LOWtorchvision/models/vgg.py36CODE
LOWtorchvision/models/regnet.py297CODE
LOWtorchvision/models/vision_transformer.py789CODE
LOWtorchvision/models/vision_transformer.py54CODE
LOWtorchvision/models/densenet.py152CODE
LOWtorchvision/models/inception.py29CODE
LOWtorchvision/models/feature_extraction.py369CODE
LOWtorchvision/models/efficientnet.py366CODE
LOWtorchvision/models/efficientnet.py234CODE
LOWtorchvision/models/resnet.py167CODE
LOWtorchvision/models/mobilenetv2.py68CODE
36 more matches not shown…
Docstring Block Structure12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtest/datasets_utils.py881Create a video file from random data. Args: root (Union[str, pathlib.Path]): Root directory the video file STRING
HIGHtest/datasets_utils.py929Create a folder of random videos. Args: root (Union[str, pathlib.Path]): Root directory the video folder wiSTRING
HIGHreferences/classification/utils.py324 This method can be used to prepare weights files for new models. It receives as input a model architecture and STRING
HIGHtorchvision/utils.py728 Parses a specification of colors for a set of objects. Args: colors: A specification of colors for theSTRING
HIGHtorchvision/datasets/places365.py13`Places365 <http://places2.csail.mit.edu/index.html>`_ classification dataset. Args: root (str or ``pathlibSTRING
HIGHtorchvision/datasets/folder.py174Generates a list of samples of a form (path_to_sample, class). This can be overridden to e.g. read files from aSTRING
HIGHtorchvision/datasets/folder.py208Find the class folders in a dataset structured as follows:: directory/ ├── class_x STRING
HIGHtorchvision/datasets/utils.py248Detect the archive type and/or compression of a file. Args: file (str): the filename Returns: STRING
HIGHtorchvision/datasets/kinetics.py23`Generic Kinetics <https://www.deepmind.com/open-source/kinetics>`_ dataset. Kinetics-400/600/700 are action reSTRING
HIGHtorchvision/models/feature_extraction.py210 Dev utility to return node names in order of execution. See note on node names under :func:`create_feature_extrSTRING
HIGHtorchvision/transforms/functional.py217Convert a tensor image to the given ``dtype`` and scale the values accordingly This function does not support PIL ImSTRING
HIGHtorchvision/ops/deform_conv.py24 Performs Deformable Convolution v2, described in `Deformable ConvNets v2: More Deformable, Better Results <STRING
Modern Structural Boilerplate53 hits · 53 pts
SeverityFileLineSnippetContext
LOWtest/datasets_utils.py38__all__ = [CODE
LOWreferences/depth/stereo/utils/losses.py95 def set_gamma(self, gamma: float) -> None:CODE
LOWreferences/depth/stereo/utils/losses.py373 def set_gamma(self, gamma: float) -> None:CODE
LOWtorchvision/utils.py13__all__ = [CODE
LOWtorchvision/datasets/samplers/clip_sampler.py102 def set_epoch(self, epoch: int) -> None:CODE
LOWtorchvision/io/__init__.py49__all__ = [CODE
LOWtorchvision/io/video.py14__all__ = [CODE
LOWtorchvision/models/shufflenetv2.py15__all__ = [CODE
LOWtorchvision/models/googlenet.py18__all__ = ["GoogLeNet", "GoogLeNetOutputs", "_GoogLeNetOutputs", "GoogLeNet_Weights", "googlenet"]CODE
LOWtorchvision/models/mnasnet.py16__all__ = [CODE
LOWtorchvision/models/vgg.py14__all__ = [CODE
LOWtorchvision/models/regnet.py17__all__ = [CODE
LOWtorchvision/models/vision_transformer.py17__all__ = [CODE
LOWtorchvision/models/squeezenet.py15__all__ = ["SqueezeNet", "SqueezeNet1_0_Weights", "SqueezeNet1_1_Weights", "squeezenet1_0", "squeezenet1_1"]CODE
LOWtorchvision/models/_api.py18__all__ = ["WeightsEnum", "Weights", "get_model", "get_model_builder", "get_model_weights", "get_weight", "list_models"]CODE
LOWtorchvision/models/densenet.py18__all__ = [CODE
LOWtorchvision/models/inception.py17__all__ = ["Inception3", "InceptionOutputs", "_InceptionOutputs", "Inception_V3_Weights", "inception_v3"]CODE
LOWtorchvision/models/feature_extraction.py17__all__ = ["create_feature_extractor", "get_graph_node_names"]CODE
LOWtorchvision/models/efficientnet.py20__all__ = [CODE
LOWtorchvision/models/resnet.py15__all__ = [CODE
LOWtorchvision/models/mobilenetv2.py15__all__ = ["MobileNetV2", "MobileNet_V2_Weights", "mobilenet_v2"]CODE
LOWtorchvision/models/mobilenetv3.py16__all__ = [CODE
LOWtorchvision/models/swin_transformer.py18__all__ = [CODE
LOWtorchvision/models/alexnet.py14__all__ = ["AlexNet", "AlexNet_Weights", "alexnet"]CODE
LOWtorchvision/models/maxvit.py19__all__ = [CODE
LOWtorchvision/models/convnext.py18__all__ = [CODE
LOWtorchvision/models/video/s3d.py15__all__ = [CODE
LOWtorchvision/models/video/resnet.py15__all__ = [CODE
LOWtorchvision/models/video/mvit.py19__all__ = [CODE
LOWtorchvision/models/video/swin_transformer.py21__all__ = [CODE
LOWtorchvision/models/segmentation/fcn.py14__all__ = ["FCN", "FCN_ResNet50_Weights", "FCN_ResNet101_Weights", "fcn_resnet50", "fcn_resnet101"]CODE
LOWtorchvision/models/segmentation/lraspp.py16__all__ = ["LRASPP", "LRASPP_MobileNet_V3_Large_Weights", "lraspp_mobilenet_v3_large"]CODE
LOWtorchvision/models/segmentation/deeplabv3.py19__all__ = [CODE
LOWtorchvision/models/quantization/shufflenetv2.py22__all__ = [CODE
LOWtorchvision/models/quantization/googlenet.py18__all__ = [CODE
LOWtorchvision/models/quantization/inception.py19__all__ = [CODE
LOWtorchvision/models/quantization/resnet.py24__all__ = [CODE
LOWtorchvision/models/quantization/mobilenetv2.py16__all__ = [CODE
LOWtorchvision/models/quantization/mobilenetv3.py23__all__ = [CODE
LOWtorchvision/models/detection/ssdlite.py23__all__ = [CODE
LOWtorchvision/models/detection/ssd.py22__all__ = [CODE
LOWtorchvision/models/detection/faster_rcnn.py24__all__ = [CODE
LOWtorchvision/models/detection/fcos.py24__all__ = [CODE
LOWtorchvision/models/detection/mask_rcnn.py18__all__ = [CODE
LOWtorchvision/models/detection/retinanet.py25__all__ = [CODE
LOWtorchvision/models/detection/keypoint_rcnn.py18__all__ = [CODE
LOWtorchvision/models/detection/_utils.py397 def set_low_quality_matches_(self, matches: Tensor, all_matches: Tensor, match_quality_matrix: Tensor) -> None:CODE
LOWtorchvision/transforms/transforms.py20__all__ = [CODE
LOWtorchvision/transforms/_presets.py14__all__ = [CODE
LOWtorchvision/transforms/autoaugment.py10__all__ = ["AutoAugmentPolicy", "AutoAugment", "RandAugment", "TrivialAugmentWide", "AugMix"]CODE
LOWtorchvision/transforms/_transforms_video.py12__all__ = [CODE
LOWtorchvision/tv_tensors/_dataset_wrapper.py16__all__ = ["wrap_dataset_for_transforms_v2"]CODE
LOWtorchvision/ops/__init__.py33__all__ = [CODE
AI Structural Patterns43 hits · 43 pts
SeverityFileLineSnippetContext
LOWtest/common_extended_utils.py186CODE
LOWtest/common_utils.py313CODE
LOWreferences/classification/presets.py21CODE
LOWreferences/depth/stereo/presets.py45CODE
LOWreferences/depth/stereo/cascade_evaluation.py109CODE
LOWreferences/optical_flow/presets.py23CODE
LOWtorchvision/utils.py285CODE
LOWtorchvision/datasets/video_utils.py102CODE
LOWtorchvision/datasets/ucf101.py54CODE
LOWtorchvision/datasets/hmdb51.py61CODE
LOWtorchvision/datasets/kinetics.py91CODE
LOWtorchvision/io/image.py77CODE
LOWtorchvision/io/image.py131CODE
LOWtorchvision/io/image.py153CODE
LOWtorchvision/io/image.py351CODE
LOWtorchvision/models/shufflenetv2.py101CODE
LOWtorchvision/models/densenet.py218CODE
LOWtorchvision/models/resnet.py105CODE
LOWtorchvision/models/resnet.py163CODE
LOWtorchvision/models/swin_transformer.py528CODE
LOWtorchvision/models/maxvit.py211CODE
LOWtorchvision/models/maxvit.py224CODE
LOWtorchvision/models/maxvit.py590CODE
LOWtorchvision/models/video/s3d.py89CODE
LOWtorchvision/models/video/resnet.py121CODE
LOWtorchvision/models/video/resnet.py170CODE
LOWtorchvision/models/video/mvit.py426CODE
LOWtorchvision/models/video/swin_transformer.py386CODE
LOWtorchvision/models/quantization/shufflenetv2.py49CODE
LOWtorchvision/models/quantization/resnet.py57CODE
LOWtorchvision/models/quantization/resnet.py88CODE
LOWtorchvision/models/detection/ssd.py186CODE
LOWtorchvision/models/detection/faster_rcnn.py167CODE
LOWtorchvision/models/detection/fcos.py365CODE
LOWtorchvision/models/detection/mask_rcnn.py165CODE
LOWtorchvision/models/detection/retinanet.py417CODE
LOWtorchvision/models/detection/keypoint_rcnn.py164CODE
LOWtorchvision/transforms/_functional_tensor.py255CODE
LOWtorchvision/ops/misc.py70CODE
LOWtorchvision/ops/misc.py145CODE
LOWtorchvision/ops/misc.py194CODE
LOWtorchvision/ops/roi_align.py200CODE
LOWtorchvision/ops/feature_pyramid_network.py204CODE
AI Slop Vocabulary9 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtest/conftest.py63 # TODO: something more robust would be to do that only in a sandcastle instance,COMMENT
MEDIUMtest/test_models.py253# This may be caused by the harness environment (e.g. num classes, input initializationCOMMENT
LOWtest/test_transforms_v2.py155 # Most kernels just return a tensor, but some also return some additional metadataCOMMENT
LOWtest/test_transforms_v2.py174 # Most kernels just return a tensor, but some also return some additional metadataCOMMENT
LOWreferences/detection/transforms.py464 # Let's just return (image, target)COMMENT
MEDIUMgallery/transforms/plot_transforms_e2e.py99# dataset so that they can leverage multi-processing from theCOMMENT
MEDIUMtorchvision/datasets/caltech.py126 # can be more robust and check hash of filesCOMMENT
MEDIUMtorchvision/datasets/caltech.py226 # can be more robust and check hash of filesCOMMENT
LOWtorchvision/transforms/v2/_transform.py155 # are JIT scriptable, and we made sure that for single image inputs v1 and v2 are equivalent, we just return theCOMMENT
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMgallery/transforms/plot_rotated_box_transforms.py40# Creating a Rotated Bounding BoxCOMMENT
MEDIUMtorchvision/transforms/v2/_transform.py129 # This method is called after subclassing has happened, i.e. `cls` is the subclass, e.g. `Resize`.COMMENT
MEDIUMtorchvision/transforms/v2/_transform.py134 # This method is called by `__prepare_scriptable__` to instantiate the equivalent v1 transform from the currentCOMMENT
MEDIUMtorchvision/transforms/v2/_transform.py153 # This method is called early on when `torch.jit.script`'ing an `nn.Module` instance. If it succeeds, the returnCOMMENT
MEDIUMtorchvision/transforms/v2/functional/_color.py263 # Create a view on the underlying output while pointing at the same data. We do this to avoid indexing twice.COMMENT
MEDIUMdocs/source/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Excessive Try-Catch Wrapping12 hits · 18 pts
SeverityFileLineSnippetContext
LOWsetup.py64 except Exception:CODE
LOWtest/test_extended_models.py398 except Exception:CODE
LOWtest/test_models.py992 except Exception as e:CODE
MEDIUMtest/test_transforms_v2.py105def _script(obj):CODE
LOWtest/test_transforms_v2.py108 except Exception as error:CODE
LOWtest/common_utils.py249 except Exception as exc:CODE
LOWtorchvision/utils.py192 except Exception:CODE
LOWtorchvision/datasets/video_utils.py327 except Exception:CODE
LOWrelease/apply-release-changes.py46 except Exception as e:CODE
MEDIUMrelease/apply-release-changes.py47 print(f"Error processing {file_path}: {e}")CODE
MEDIUMrelease/apply-release-changes.py71 print("Error: Exactly one version parameter is required")CODE
MEDIUMrelease/apply-release-changes.py83 print("Error: Not inside a git repository. Please run from within a git repository.")CODE
Verbosity Indicators9 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/smoke_test.py93 # Step 1: Initialize model with the best available weightsCOMMENT
LOWtest/smoke_test.py98 # Step 2: Initialize the inference transformsCOMMENT
LOWtest/smoke_test.py101 # Step 3: Apply inference preprocessing transformsCOMMENT
LOWtest/smoke_test.py104 # Step 4: Use the model and print the predicted categoryCOMMENT
LOWtorchvision/csrc/ops/box_iou_rotated_utils.h182 // Step 1:COMMENT
LOWtorchvision/csrc/ops/box_iou_rotated_utils.h194 // Step 2:COMMENT
LOWtorchvision/csrc/ops/box_iou_rotated_utils.h205 // Step 3:COMMENT
LOWtorchvision/csrc/ops/box_iou_rotated_utils.h262 // Step 4:COMMENT
LOWtorchvision/csrc/ops/box_iou_rotated_utils.h279 // Step 5:COMMENT
Redundant / Tautological Comments9 hits · 15 pts
SeverityFileLineSnippetContext
LOWpackaging/pre_build_script_arm64.sh25# Set vcpkg to only build release packagesCOMMENT
LOWtest/test_utils.py132 # Check if modification is not in placeCOMMENT
LOWtest/test_utils.py257 # Check if modification is not in placeCOMMENT
LOWtest/test_transforms.py1743 # Check if content in center of both image and cropped output is same.COMMENT
LOWreferences/similarity/loss.py102 # Check if labels[i] == labels[j]COMMENT
LOWtorchvision/models/detection/roi_heads.py423 # Set shape to [batchxCxHxW]COMMENT
LOWtorchvision/models/detection/roi_heads.py449 # Set shape to [batchxCxHxW]COMMENT
LOWrelease/apply-release-changes.py56 # Check if .git directory existsCOMMENT
LOWrelease/apply-release-changes.py69 # Check if version is provided as command line argumentCOMMENT
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/smoke_test.py93 # Step 1: Initialize model with the best available weightsCOMMENT
LOWtest/smoke_test.py98 # Step 2: Initialize the inference transformsCOMMENT
LOWtest/smoke_test.py101 # Step 3: Apply inference preprocessing transformsCOMMENT
LOWtest/smoke_test.py104 # Step 4: Use the model and print the predicted categoryCOMMENT
LOWtorchvision/transforms/v2/functional/_meta.py276 # NOTE: This function cannot modify the input tensor inplace as it requires a dimension change.COMMENT
LOWtorchvision/transforms/v2/functional/_meta.py301 # NOTE: This function cannot modify the input tensor inplace as it requires a dimension change.COMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
LOWreferences/depth/stereo/train.py527 # make sure to disable shuffling since the dataset is already shuffledCOMMENT
LOWgallery/transforms/plot_custom_transforms.py79# While working with TVTensor classes in your code, make sure toCOMMENT
MEDIUMgallery/transforms/plot_tv_tensors.py172# Alternatively, you can use the :func:`~torchvision.tv_tensors.set_return_type`COMMENT
LOWtorchvision/transforms/v2/_augment.py191 # after an image or video. However, we need to handle them in _transform, so we make sure to set them to TrueCOMMENT
MEDIUMscripts/release_notes/retrieve_prs_data.py207 # Then you can use classify_prs.py (as a notebook)STRING
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHreferences/depth/stereo/utils/losses.py305 # which should be consistent with the previous step. In this implementation, we simplify the overall lossCOMMENT