AI Slop Code RIsk Monitor

qubvel-org/segmentation_models.pytorch

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

20.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for qubvel-org/segmentation_models.pytorch, a Python project with 11,757 GitHub stars. SynthScan examined 19,279 lines of code across 148 source files, recording 253 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 20.4 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

20.4
Adjusted Signal
20.4
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
11.8K
Stars
Python
Language
19.3K
Lines of Code
148
Files
253
Pattern Hits
2026-10-12
Scan Date
0.07
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 34.2/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 124 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.6/100 · LOW

Are imports declared and package/API names verified? 61 finding(s).

Agent Over-Engineering Ratio 50.1/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 162 finding(s).

PR Review Velocity Impact 62.1/100 · HIGH

Which changes need focused human review? 253 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 11MEDIUM 33LOW 209

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 253 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators21 hits · 85 pts
SeverityFileLineSnippetContext
MEDIUM⚡examples/binary_segmentation_buildings.py63# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py65# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py72# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py74# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py88# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py90# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py99# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py101# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py374# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py376# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py410# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py412# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py421# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py423# ----------------------------COMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py451# ----------------------------COMMENT
MEDIUM⚡examples/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
LOW⚡tests/utils.py31def requires_timm_greater_or_equal(version: str):CODE
LOW⚡tests/utils.py40def requires_torch_greater_or_equal(version: str):CODE
LOW⚡tests/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
LOW⚡tests/encoders/test_timm_universal.py28 def test_string_weights_emits_warning(self):CODE
LOW⚡tests/encoders/test_timm_universal.py32 def test_true_weights_no_warning(self):CODE
LOW⚡tests/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
LOW⚡tests/base/test_freeze_encoder.py5def test_freeze_and_unfreeze_encoder():CODE
LOW⚡tests/base/test_freeze_encoder.py8 def assert_encoder_params_trainable(expected: bool):CODE
LOW⚡tests/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__.py56def 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__.py27CODE
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
MEDIUM⚡examples/binary_segmentation_buildings.py84# Create a directory to store the output masksCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py89# Define the hyperparametersCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py100# Define a custom dataset class for the CamVid datasetCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py375# Define the data directories and create the datasetsCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py411# Create the dataloaders using the datasetsCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py461# Define the Adam optimizerCOMMENT
MEDIUM⚡examples/binary_segmentation_buildings.py464# Define the learning rate schedulerCOMMENT
MEDIUM⚡examples/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__.py31__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
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
Excessive Try-Catch Wrapping9 hits · 12 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
LOW⚡tests/utils.py58 except Exception: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
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