Repository Analysis

qubvel-org/segmentation_models.pytorch

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.

19.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of qubvel-org/segmentation_models.pytorch, a Python project with 11,656 GitHub stars. SynthScan v2.0 examined 20,371 lines of code across 149 source files, recording 255 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 19.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).

19.4
Adjusted Score
19.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
11.7K
Stars
Python
Language
20.4K
Lines of Code
149
Files
255
Pattern Hits
2026-07-14
Scan Date
0.07
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 11MEDIUM 33LOW 211

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 255 distinct pattern matches across 12 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.

Decorative Section Separators21 hits · 85 pts
SeverityFileLineSnippetContext
MEDIUMexamples/binary_segmentation_buildings.py63# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py65# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py72# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py74# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py88# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py90# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py99# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py101# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py374# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py376# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py410# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py412# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py421# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py423# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py451# ----------------------------COMMENT
MEDIUMexamples/binary_segmentation_buildings.py453# ----------------------------COMMENT
MEDIUMsegmentation_models_pytorch/encoders/mix_transformer.py1# ---------------------------------------------------------------COMMENT
MEDIUMsegmentation_models_pytorch/encoders/mix_transformer.py10# ---------------------------------------------------------------COMMENT
MEDIUMsegmentation_models_pytorch/encoders/mix_transformer.py521# ---------------------------------------------------------------COMMENT
MEDIUMsegmentation_models_pytorch/encoders/mix_transformer.py523# ---------------------------------------------------------------COMMENT
MEDIUMsegmentation_models_pytorch/encoders/_xception.py188 # #-----------------------------COMMENT
Hyper-Verbose Identifiers59 hits · 63 pts
SeverityFileLineSnippetContext
LOWmisc/generate_table_timm.py5def check_features_and_reduction(name):CODE
LOWmisc/generate_table_timm.py20def valid_vit_encoder_for_dpt(name):CODE
LOWtests/conftest.py7def pytest_collection_modifyitems(config, items):CODE
LOWtests/test_losses.py16def test_focal_loss_from_logits_false_multiclass():CODE
LOWtests/test_losses.py42def test_focal_loss_with_logits():CODE
LOWtests/test_losses.py52def test_softmax_focal_loss_with_logits():CODE
LOWtests/test_losses.py241def test_multiclass_jaccard_loss():CODE
LOWtests/test_losses.py268def test_multilabel_jaccard_loss():CODE
LOWtests/test_losses.py365def test_class_weights_uniform_equivalent_to_no_weights_multiclass():CODE
LOWtests/test_losses.py383def test_class_weights_uniform_equivalent_to_no_weights_multilabel():CODE
LOWtests/test_losses.py401def test_class_weights_nonuniform_changes_loss_multiclass():CODE
LOWtests/test_losses.py418def test_class_weights_scale_invariant_multiclass():CODE
LOWtests/test_losses.py438def test_class_weights_binary_mode_raises():CODE
LOWtests/test_losses.py446def test_focal_class_weights_uniform_equivalent_to_no_weights():CODE
LOWtests/test_losses.py461def test_focal_class_weights_scale_invariant():CODE
LOWtests/test_preprocessing.py39def test_preprocessing_params():CODE
LOWtests/utils.py31def requires_timm_greater_or_equal(version: str):CODE
LOWtests/utils.py40def requires_torch_greater_or_equal(version: str):CODE
LOWtests/utils.py49def check_run_test_on_diff_or_main(filepath_patterns: List[str]):CODE
LOWtests/utils.py72def check_two_models_strictly_equal(CODE
LOWtests/test_base.py8def test_from_pretrained_with_mismatched_keys():CODE
LOWtests/models/test_linknet.py12 def test_timm_transformer_style_encoder(self):CODE
LOWtests/models/test_unetplusplus.py11 def test_timm_transformer_style_encoder(self):CODE
LOWtests/models/base.py94 def test_in_channels_and_depth_and_out_classes(CODE
LOWtests/models/base.py174 def test_save_load_with_hub_mixin(self):CODE
LOWtests/models/base.py207 def test_preserve_forward_output(self):CODE
LOWtests/encoders/test_common.py13def test_load_encoder_from_hub(encoder_name_and_weights):CODE
LOWtests/encoders/test_batchnorm_deprecation.py11def test_seg_models_before_after_use_norm(model_name, decoder_option):CODE
LOWtests/encoders/test_batchnorm_deprecation.py35def test_pspnet_before_after_use_norm(decoder_option):CODE
LOWtests/encoders/test_timm_universal.py28 def test_string_weights_emits_warning(self):CODE
LOWtests/encoders/test_timm_universal.py32 def test_true_weights_no_warning(self):CODE
LOWtests/encoders/test_timm_universal.py37 def test_none_weights_no_warning(self):CODE
LOWtests/encoders/base.py47 def get_features_output_strides(self, sample, features):CODE
LOWtests/base/test_freeze_encoder.py5def test_freeze_and_unfreeze_encoder():CODE
LOWtests/base/test_freeze_encoder.py8 def assert_encoder_params_trainable(expected: bool):CODE
LOWtests/base/test_freeze_encoder.py11 def assert_norm_layers_training(expected: bool):CODE
LOWtests/base/test_freeze_encoder.py50def test_freeze_encoder_stops_running_stats():CODE
LOWexamples/binary_segmentation_buildings.py247def train_and_evaluate_one_epoch(CODE
LOWscripts/models-conversions/upernet-hf-to-smp.py120def convert_old_keys_to_new_keys(state_dict_keys: dict, keys_mapping: dict):CODE
LOW…odels-conversions/segformer-original-decoder-to-smp.py13def convert_state_dict_to_smp(state_dict: dict):CODE
LOWsegmentation_models_pytorch/metrics/functional.py357def _positive_predictive_value(tp, fp, fn, tn):CODE
LOWsegmentation_models_pytorch/metrics/functional.py361def _negative_predictive_value(tp, fp, fn, tn):CODE
LOWsegmentation_models_pytorch/metrics/functional.py381def _positive_likelihood_ratio(tp, fp, fn, tn):CODE
LOWsegmentation_models_pytorch/metrics/functional.py385def _negative_likelihood_ratio(tp, fp, fn, tn):CODE
LOWsegmentation_models_pytorch/metrics/functional.py546def positive_predictive_value(CODE
LOWsegmentation_models_pytorch/metrics/functional.py568def negative_predictive_value(CODE
LOWsegmentation_models_pytorch/metrics/functional.py678def positive_likelihood_ratio(CODE
LOWsegmentation_models_pytorch/metrics/functional.py700def negative_likelihood_ratio(CODE
LOWsegmentation_models_pytorch/losses/_functional.py100def softmax_focal_loss_with_logits(CODE
LOWsegmentation_models_pytorch/encoders/timm_vit.py10def sample_block_indices_uniformly(n: int, total_num_blocks: int) -> list[int]:CODE
LOWsegmentation_models_pytorch/encoders/timm_vit.py35def preprocess_output_indices(CODE
LOWsegmentation_models_pytorch/encoders/timm_vit.py149 def _forward_with_prefix_tokens(CODE
LOWsegmentation_models_pytorch/encoders/timm_vit.py164 def _forward_without_prefix_tokens(self, x: torch.Tensor) -> list[torch.Tensor]:CODE
LOWsegmentation_models_pytorch/encoders/__init__.py58def is_equivalent_to_timm_universal(name):CODE
LOW…mentation_models_pytorch/encoders/timm_efficientnet.py57def gen_efficientnet_lite_kwargs(CODE
LOWsegmentation_models_pytorch/encoders/timm_universal.py232def _merge_kwargs_no_duplicates(a: dict[str, Any], b: dict[str, Any]) -> dict[str, Any]:CODE
LOWsegmentation_models_pytorch/encoders/_efficientnet.py436def get_width_and_height_from_size(x):CODE
LOWsegmentation_models_pytorch/encoders/_efficientnet.py453def calculate_output_image_size(input_image_size, stride):CODE
LOWsegmentation_models_pytorch/encoders/_utils.py46def replace_strides_with_dilation(module, dilation_rate):CODE
Unused Imports61 hits · 61 pts
SeverityFileLineSnippetContext
LOWsegmentation_models_pytorch/__init__.py1CODE
LOWsegmentation_models_pytorch/__init__.py2CODE
LOWsegmentation_models_pytorch/__init__.py3CODE
LOWsegmentation_models_pytorch/__init__.py4CODE
LOWsegmentation_models_pytorch/__init__.py5CODE
LOWsegmentation_models_pytorch/__init__.py18CODE
LOWsegmentation_models_pytorch/__init__.py20CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/metrics/__init__.py2CODE
LOWsegmentation_models_pytorch/losses/lovasz.py6CODE
LOWsegmentation_models_pytorch/losses/lovasz.py6CODE
LOWsegmentation_models_pytorch/losses/__init__.py1CODE
LOWsegmentation_models_pytorch/losses/__init__.py1CODE
LOWsegmentation_models_pytorch/losses/__init__.py1CODE
LOWsegmentation_models_pytorch/losses/__init__.py3CODE
LOWsegmentation_models_pytorch/losses/__init__.py4CODE
LOWsegmentation_models_pytorch/losses/__init__.py5CODE
LOWsegmentation_models_pytorch/losses/__init__.py6CODE
LOWsegmentation_models_pytorch/losses/__init__.py7CODE
LOWsegmentation_models_pytorch/losses/__init__.py8CODE
LOWsegmentation_models_pytorch/losses/__init__.py9CODE
LOWsegmentation_models_pytorch/losses/__init__.py10CODE
LOWsegmentation_models_pytorch/datasets/__init__.py1CODE
LOWsegmentation_models_pytorch/datasets/__init__.py1CODE
LOWsegmentation_models_pytorch/utils/__init__.py3CODE
LOWsegmentation_models_pytorch/utils/__init__.py4CODE
LOWsegmentation_models_pytorch/utils/__init__.py5CODE
LOWsegmentation_models_pytorch/encoders/__init__.py28CODE
LOW…gmentation_models_pytorch/decoders/linknet/__init__.py1CODE
LOW…ation_models_pytorch/decoders/unetplusplus/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/pspnet/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/dpt/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/manet/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/unet/__init__.py1CODE
LOW…entation_models_pytorch/decoders/segformer/__init__.py1CODE
LOW…gmentation_models_pytorch/decoders/upernet/__init__.py1CODE
LOW…entation_models_pytorch/decoders/deeplabv3/__init__.py1CODE
LOW…entation_models_pytorch/decoders/deeplabv3/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/fpn/__init__.py1CODE
LOWsegmentation_models_pytorch/decoders/pan/__init__.py1CODE
LOWsegmentation_models_pytorch/base/__init__.py1CODE
LOWsegmentation_models_pytorch/base/__init__.py3CODE
LOWsegmentation_models_pytorch/base/__init__.py3CODE
LOWsegmentation_models_pytorch/base/__init__.py5CODE
1 more matches not shown…
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHsegmentation_models_pytorch/encoders/vgg.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/senet.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/densenet.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/inceptionv4.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/efficientnet.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/mobilenet.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/resnet.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGH…mentation_models_pytorch/encoders/inceptionresnetv2.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
HIGHsegmentation_models_pytorch/encoders/dpn.py0each encoder should have following attributes and methods and be inherited from `_base.encodermixin` attributes: _out_chSTRING
AI Structural Patterns35 hits · 35 pts
SeverityFileLineSnippetContext
LOWsegmentation_models_pytorch/losses/focal.py13CODE
LOWsegmentation_models_pytorch/losses/tversky.py37CODE
LOWsegmentation_models_pytorch/encoders/_dpn.py164CODE
LOWsegmentation_models_pytorch/encoders/_senet.py56CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py165CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py272CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py42CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py65CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py78CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py108CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py129CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py162CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py188CODE
LOWsegmentation_models_pytorch/encoders/_inceptionv4.py242CODE
LOW…entation_models_pytorch/encoders/_inceptionresnetv2.py59CODE
LOW…entation_models_pytorch/encoders/_inceptionresnetv2.py92CODE
LOW…entation_models_pytorch/encoders/_inceptionresnetv2.py114CODE
LOW…entation_models_pytorch/encoders/_inceptionresnetv2.py141CODE
LOW…entation_models_pytorch/encoders/_inceptionresnetv2.py172CODE
LOWsegmentation_models_pytorch/encoders/mobileone.py301CODE
LOWsegmentation_models_pytorch/encoders/_efficientnet.py433CODE
LOWsegmentation_models_pytorch/decoders/linknet/model.py74CODE
LOW…entation_models_pytorch/decoders/unetplusplus/model.py79CODE
LOWsegmentation_models_pytorch/decoders/pspnet/model.py75CODE
LOWsegmentation_models_pytorch/decoders/dpt/model.py81CODE
LOWsegmentation_models_pytorch/decoders/manet/model.py79CODE
LOWsegmentation_models_pytorch/decoders/unet/model.py108CODE
LOW…mentation_models_pytorch/decoders/segformer/decoder.py73CODE
LOWsegmentation_models_pytorch/decoders/segformer/model.py52CODE
LOWsegmentation_models_pytorch/decoders/upernet/decoder.py211CODE
LOWsegmentation_models_pytorch/decoders/upernet/model.py69CODE
LOWsegmentation_models_pytorch/decoders/deeplabv3/model.py59CODE
LOWsegmentation_models_pytorch/decoders/deeplabv3/model.py185CODE
LOWsegmentation_models_pytorch/decoders/fpn/model.py58CODE
LOWsegmentation_models_pytorch/decoders/pan/model.py61CODE
Self-Referential Comments10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMexamples/binary_segmentation_buildings.py84# Create a directory to store the output masksCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py89# Define the hyperparametersCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py100# Define a custom dataset class for the CamVid datasetCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py375# Define the data directories and create the datasetsCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py411# Create the dataloaders using the datasetsCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py461# Define the Adam optimizerCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py464# Define the learning rate schedulerCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py467# Define the loss functionCOMMENT
MEDIUMexamples/binary_segmentation_buildings.py193# Define a class for the CamVid modelCOMMENT
MEDIUM…odels-conversions/segformer-original-decoder-to-smp.py78 # Create the modelCOMMENT
Modern Structural Boilerplate29 hits · 29 pts
SeverityFileLineSnippetContext
LOWsegmentation_models_pytorch/__init__.py72__all__ = [CODE
LOWsegmentation_models_pytorch/metrics/__init__.py23__all__ = [CODE
LOWsegmentation_models_pytorch/metrics/functional.py35__all__ = [CODE
LOWsegmentation_models_pytorch/losses/jaccard.py9__all__ = ["JaccardLoss"]CODE
LOWsegmentation_models_pytorch/losses/focal.py9__all__ = ["FocalLoss"]CODE
LOWsegmentation_models_pytorch/losses/soft_ce.py7__all__ = ["SoftCrossEntropyLoss"]CODE
LOWsegmentation_models_pytorch/losses/lovasz.py19__all__ = ["LovaszLoss"]CODE
LOWsegmentation_models_pytorch/losses/__init__.py12__all__ = [CODE
LOWsegmentation_models_pytorch/losses/dice.py9__all__ = ["DiceLoss"]CODE
LOWsegmentation_models_pytorch/losses/tversky.py8__all__ = ["TverskyLoss"]CODE
LOWsegmentation_models_pytorch/losses/_functional.py10__all__ = [CODE
LOWsegmentation_models_pytorch/losses/soft_bce.py7__all__ = ["SoftBCEWithLogitsLoss"]CODE
LOWsegmentation_models_pytorch/datasets/__init__.py3__all__ = ["OxfordPetDataset", "SimpleOxfordPetDataset"]CODE
LOWsegmentation_models_pytorch/utils/__init__.py7__all__ = ["train", "losses", "metrics"]CODE
LOWsegmentation_models_pytorch/encoders/__init__.py33__all__ = [CODE
LOWsegmentation_models_pytorch/encoders/mobileone.py15__all__ = ["MobileOne", "reparameterize_model"]CODE
LOW…gmentation_models_pytorch/decoders/linknet/__init__.py3__all__ = ["Linknet"]CODE
LOW…ation_models_pytorch/decoders/unetplusplus/__init__.py3__all__ = ["UnetPlusPlus"]CODE
LOWsegmentation_models_pytorch/decoders/pspnet/__init__.py3__all__ = ["PSPNet"]CODE
LOWsegmentation_models_pytorch/decoders/dpt/__init__.py3__all__ = ["DPT"]CODE
LOWsegmentation_models_pytorch/decoders/manet/__init__.py3__all__ = ["MAnet"]CODE
LOWsegmentation_models_pytorch/decoders/unet/__init__.py3__all__ = ["Unet"]CODE
LOW…entation_models_pytorch/decoders/segformer/__init__.py3__all__ = ["Segformer"]CODE
LOW…gmentation_models_pytorch/decoders/upernet/__init__.py3__all__ = ["UPerNet"]CODE
LOW…mentation_models_pytorch/decoders/deeplabv3/decoder.py40__all__ = ["DeepLabV3Decoder", "DeepLabV3PlusDecoder"]CODE
LOW…entation_models_pytorch/decoders/deeplabv3/__init__.py3__all__ = ["DeepLabV3", "DeepLabV3Plus"]CODE
LOWsegmentation_models_pytorch/decoders/fpn/__init__.py3__all__ = ["FPN"]CODE
LOWsegmentation_models_pytorch/decoders/pan/__init__.py3__all__ = ["PAN"]CODE
LOWsegmentation_models_pytorch/base/__init__.py7__all__ = [CODE
Excessive Try-Catch Wrapping11 hits · 14 pts
SeverityFileLineSnippetContext
LOWmisc/generate_table_timm.py16 except Exception:CODE
LOWmisc/generate_table_timm.py97 except Exception:CODE
LOWmisc/generate_table_timm.py101 except Exception:CODE
MEDIUMmisc/generate_table_timm.py11def has_dilation_support(name):CODE
LOWtests/utils.py58 except Exception:CODE
LOWsegmentation_models_pytorch/encoders/__init__.py139 except Exception as e:CODE
LOWsegmentation_models_pytorch/encoders/__init__.py193 except Exception as e:CODE
LOWsegmentation_models_pytorch/encoders/timm_universal.py98 except Exception:CODE
LOWsegmentation_models_pytorch/base/utils.py8 except Exception:CODE
LOWsegmentation_models_pytorch/base/utils.py13 except Exception:CODE
MEDIUMsegmentation_models_pytorch/base/utils.py5def is_torch_compiling():CODE
Deep Nesting12 hits · 12 pts
SeverityFileLineSnippetContext
LOWsegmentation_models_pytorch/metrics/functional.py255CODE
LOWsegmentation_models_pytorch/losses/focal.py77CODE
LOWsegmentation_models_pytorch/encoders/_dpn.py279CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py113CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py203CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py250CODE
LOWsegmentation_models_pytorch/encoders/mix_transformer.py413CODE
LOWsegmentation_models_pytorch/decoders/deeplabv3/model.py125CODE
LOWsegmentation_models_pytorch/base/model.py97CODE
LOWsegmentation_models_pytorch/base/initialization.py4CODE
LOWsegmentation_models_pytorch/base/modules.py12CODE
LOWsegmentation_models_pytorch/base/modules.py152CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsegmentation_models_pytorch/metrics/functional.py70Compute true positive, false positive, false negative, true negative 'pixels' for each image and each class. ArSTRING
HIGHsegmentation_models_pytorch/encoders/_efficientnet.py728Get a block through a string notation of arguments. Args: block_string (str): A string notation of STRING
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py11 # Check if the test has no marksCOMMENT
LOWsegmentation_models_pytorch/encoders/timm_universal.py101 # Check if model output is in channel-last format (NHWC)COMMENT
LOWsegmentation_models_pytorch/encoders/mobileone.py104 # Check if SE-ReLU is requestedCOMMENT
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWsegmentation_models_pytorch/losses/constants.py1#: Loss binary mode suppose you are solving binary segmentation task.COMMENT
LOWsegmentation_models_pytorch/encoders/_efficientnet.py341################################################################################COMMENT