Repository Analysis

index-tts/index-tts

An Industrial-Level Controllable and Efficient Zero-Shot Text-To-Speech System

21.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of index-tts/index-tts, a Python project with 21,854 GitHub stars. SynthScan v2.0 examined 67,990 lines of code across 232 source files, recording 972 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 21.3 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).

21.3
Adjusted Score
21.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
21.9K
Stars
Python
Language
68.0K
Lines of Code
232
Files
972
Pattern Hits
2026-07-14
Scan Date
0.53
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 124MEDIUM 29LOW 819

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 972 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.

Cross-File Repetition117 hits · 585 pts
SeverityFileLineSnippetContext
HIGHcli_tests/test_cli_v2_config.py0make flash_attn/triton appear installed so acceleration cli tests can run.STRING
HIGHcli_tests/test_cli_v2_batch.py0make flash_attn/triton appear installed so acceleration cli tests can run.STRING
HIGHcli_tests/test_cli_v2_check.py0make flash_attn/triton appear installed so acceleration cli tests can run.STRING
HIGHindextts/BigVGAN/activations.py0implementation of a sine-based periodic activation function shape: - input: (b, c, t) - output: (b, c, t), same shape asSTRING
HIGHindextts/s2mel/modules/hifigan/generator.py0implementation of a sine-based periodic activation function shape: - input: (b, c, t) - output: (b, c, t), same shape asSTRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0implementation of a sine-based periodic activation function shape: - input: (b, c, t) - output: (b, c, t), same shape asSTRING
HIGHindextts/BigVGAN/activations.py0initialization. input: - in_features: shape of the input - alpha: trainable parameter alpha is initialized to 1 by defauSTRING
HIGHindextts/s2mel/modules/hifigan/generator.py0initialization. input: - in_features: shape of the input - alpha: trainable parameter alpha is initialized to 1 by defauSTRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0initialization. input: - in_features: shape of the input - alpha: trainable parameter alpha is initialized to 1 by defauSTRING
HIGHindextts/BigVGAN/activations.py0forward pass of the function. applies the function to the input elementwise. snake ∶= x + 1/a * sin^2 (xa)STRING
HIGHindextts/s2mel/modules/hifigan/generator.py0forward pass of the function. applies the function to the input elementwise. snake ∶= x + 1/a * sin^2 (xa)STRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0forward pass of the function. applies the function to the input elementwise. snake ∶= x + 1/a * sin^2 (xa)STRING
HIGHindextts/BigVGAN/activations.py0a modified snake function which uses separate parameters for the magnitude of the periodic components shape: - input: (bSTRING
HIGH…utils/maskgct/models/codec/facodec/modules/quantize.py0a modified snake function which uses separate parameters for the magnitude of the periodic components shape: - input: (bSTRING
HIGH…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py0a modified snake function which uses separate parameters for the magnitude of the periodic components shape: - input: (bSTRING
HIGHindextts/s2mel/modules/quantize.py0a modified snake function which uses separate parameters for the magnitude of the periodic components shape: - input: (bSTRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0a modified snake function which uses separate parameters for the magnitude of the periodic components shape: - input: (bSTRING
HIGHindextts/BigVGAN/activations.py0initialization. input: - in_features: shape of the input - alpha - trainable parameter that controls frequency - beta - STRING
HIGH…utils/maskgct/models/codec/facodec/modules/quantize.py0initialization. input: - in_features: shape of the input - alpha - trainable parameter that controls frequency - beta - STRING
HIGH…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py0initialization. input: - in_features: shape of the input - alpha - trainable parameter that controls frequency - beta - STRING
HIGHindextts/s2mel/modules/quantize.py0initialization. input: - in_features: shape of the input - alpha - trainable parameter that controls frequency - beta - STRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0initialization. input: - in_features: shape of the input - alpha - trainable parameter that controls frequency - beta - STRING
HIGHindextts/BigVGAN/activations.py0forward pass of the function. applies the function to the input elementwise. snakebeta := x + 1/b * sin^2 (xa)STRING
HIGHindextts/s2mel/modules/bigvgan/activations.py0forward pass of the function. applies the function to the input elementwise. snakebeta := x + 1/b * sin^2 (xa)STRING
HIGH…utils/maskgct/models/codec/facodec/modules/quantize.py0forward pass of the function. applies the function to the input elementwise. snakebeta := x + 1/b * sin^2 (xa)STRING
HIGH…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py0forward pass of the function. applies the function to the input elementwise. snakebeta := x + 1/b * sin^2 (xa)STRING
HIGHindextts/s2mel/modules/quantize.py0forward pass of the function. applies the function to the input elementwise. snakebeta := x + 1/b * sin^2 (xa)STRING
HIGHindextts/BigVGAN/alias_free_activation/torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGHindextts/BigVGAN/alias_free_torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGH…askgct/models/codec/facodec/alias_free_torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGH…kgct/models/codec/ns3_codec/alias_free_torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGHindextts/s2mel/modules/alias_free_torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGH…/modules/bigvgan/alias_free_activation/torch/filter.py0implementation of sinc, i.e. sin(pi * x) / (pi * x) __warning__: different to julius.sinc, the input is multiplied by `pSTRING
HIGHindextts/utils/common.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
HIGHindextts/utils/utils.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
HIGHindextts/s2mel/modules/vocos/modules.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/norm.py0convolution-friendly layernorm that moves channels to last dimensions before running the normalization and moves them baSTRING
HIGHindextts/s2mel/dac/model/encodec.py0convolution-friendly layernorm that moves channels to last dimensions before running the normalization and moves them baSTRING
HIGHindextts/s2mel/modules/encodec.py0convolution-friendly layernorm that moves channels to last dimensions before running the normalization and moves them baSTRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0return the proper normalization module. if causal is true, this will ensure the returned module is causal, or return an STRING
HIGHindextts/s2mel/dac/model/encodec.py0return the proper normalization module. if causal is true, this will ensure the returned module is causal, or return an STRING
HIGHindextts/s2mel/modules/encodec.py0return the proper normalization module. if causal is true, this will ensure the returned module is causal, or return an STRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0pad for a convolution to make sure that the last window is full. extra padding is added at the end. this is required to STRING
HIGHindextts/s2mel/dac/model/encodec.py0pad for a convolution to make sure that the last window is full. extra padding is added at the end. this is required to STRING
HIGHindextts/s2mel/modules/encodec.py0pad for a convolution to make sure that the last window is full. extra padding is added at the end. this is required to STRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGHindextts/s2mel/dac/model/encodec.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGHindextts/s2mel/modules/encodec.py0tiny wrapper around f.pad, just to allow for reflect padding on small input. if this is the case, we insert extra 0 paddSTRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGHindextts/s2mel/dac/model/encodec.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGHindextts/s2mel/modules/encodec.py0remove padding from x, handling properly zero padding. only for 1d!STRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0wrapper around convtranspose2d and normalization applied to this conv to provide a uniform interface across normalizatioSTRING
HIGHindextts/s2mel/dac/model/encodec.py0wrapper around convtranspose2d and normalization applied to this conv to provide a uniform interface across normalizatioSTRING
HIGHindextts/s2mel/modules/encodec.py0wrapper around convtranspose2d and normalization applied to this conv to provide a uniform interface across normalizatioSTRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0conv1d with some builtin handling of asymmetric or causal padding and normalization.STRING
HIGHindextts/s2mel/dac/model/encodec.py0conv1d with some builtin handling of asymmetric or causal padding and normalization.STRING
HIGHindextts/s2mel/modules/encodec.py0conv1d with some builtin handling of asymmetric or causal padding and normalization.STRING
HIGH…s/maskgct/models/codec/speechtokenizer/modules/conv.py0convtranspose1d with some builtin handling of asymmetric or causal padding and normalization.STRING
57 more matches not shown…
Hyper-Verbose Identifiers304 hits · 271 pts
SeverityFileLineSnippetContext
LOWwebui.py366def update_save_preset_button(prompt_audio):CODE
LOWwebui.py371def update_delete_preset_button(preset_name):CODE
LOWwebui.py514def confirm_save_preset_from_modal(CODE
LOWwebui.py626def create_experimental_warning_message():CODE
LOWwebui.py1070 def on_glossary_checkbox_change(is_enabled):CODE
LOWtests/test_v2.py57def test_model_download_reachable(name, repo_id, filename, tmp_path):CODE
LOWtests/test_v2.py70def test_example_download_reachable(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py81def test_legacy_cache_compatibility(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py126def test_modelscope_single_file_download_matches_local_path(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py180def test_infer_with_emotion_vector(tts_model, prompt_wav, tmp_path):CODE
LOWcli_tests/test_cli_v2_config.py13def _mock_optional_dependency_imports():CODE
LOWcli_tests/test_cli_v2_config.py129 def test_init_creates_persistent_config_and_default_model_directory_without_model_files(self):CODE
LOWcli_tests/test_cli_v2_config.py146 def test_init_with_model_dir_persists_the_requested_model_directory(self):CODE
LOWcli_tests/test_cli_v2_config.py164 def test_config_path_prints_the_persistent_config_file_location(self):CODE
LOWcli_tests/test_cli_v2_config.py175 def test_config_set_model_dir_persists_the_model_resource_directory(self):CODE
LOWcli_tests/test_cli_v2_config.py191 def test_config_set_runtime_preferences_persists_device_and_boolean_values(self):CODE
LOWcli_tests/test_cli_v2_config.py218 def test_config_set_boolean_preference_rejects_non_boolean_values(self):CODE
LOWcli_tests/test_cli_v2_config.py231 def test_config_get_prints_the_current_persistent_config(self):CODE
LOWcli_tests/test_cli_v2_config.py247 def test_check_uses_persisted_model_dir_when_command_line_and_environment_do_not_override_it(self):CODE
LOWcli_tests/test_cli_v2_config.py263 def test_check_model_dir_resolution_prioritizes_command_line_then_environment_then_config(self):CODE
LOWcli_tests/test_cli_v2_config.py289 def test_check_initializes_default_state_and_checks_the_platform_default_model_dir(self):CODE
LOWcli_tests/test_cli_v2_config.py306 def test_check_with_command_model_dir_still_initializes_default_state_without_persisting_override(self):CODE
LOWcli_tests/test_cli_v2_config.py325 def test_synth_uses_persisted_model_dir_and_runtime_preferences_by_default(self):CODE
LOWcli_tests/test_cli_v2_config.py379 def test_batch_uses_persisted_model_dir_and_runtime_preferences_by_default(self):CODE
LOWcli_tests/test_cli_v2_config.py428 def test_batch_command_line_can_disable_persisted_boolean_runtime_preferences_for_one_run(self):CODE
LOWcli_tests/test_cli_v2_config.py479 def test_synth_command_line_overrides_do_not_rewrite_persistent_config(self):CODE
LOWcli_tests/test_cli_v2_config.py539 def test_synth_command_line_can_disable_persisted_boolean_runtime_preferences_for_one_run(self):CODE
LOWcli_tests/test_cli_v2_concat.py67 def test_concat_dry_run_validates_manifest_without_creating_output_parent(self):CODE
LOWcli_tests/test_cli_v2_concat.py81 def fail_if_runtime_imports_are_checked():CODE
LOWcli_tests/test_cli_v2_concat.py133 def test_concat_dry_run_rejects_unknown_fields_and_comment_lines(self):CODE
LOWcli_tests/test_cli_v2_concat.py177 def test_concat_dry_run_rejects_invalid_segment_fields_with_line_number(self):CODE
LOWcli_tests/test_cli_v2_concat.py210 def test_concat_dry_run_resolves_command_paths_from_cwd_and_audio_from_concat_file_directory(self):CODE
LOWcli_tests/test_cli_v2_concat.py241 def test_concat_dry_run_rejects_non_wav_output_and_audio_extensions_case_insensitively(self):CODE
LOWcli_tests/test_cli_v2_concat.py278 def test_concat_dry_run_checks_wav_existence_readability_non_empty_and_format_match(self):CODE
LOWcli_tests/test_cli_v2_concat.py338 def test_concat_dry_run_rejects_empty_manifest(self):CODE
LOWcli_tests/test_cli_v2_concat.py359 def test_concat_dry_run_rejects_output_path_conflicts(self):CODE
LOWcli_tests/test_cli_v2_concat.py411 def test_concat_dry_run_rejects_existing_output_unless_force_without_modifying_it(self):CODE
LOWcli_tests/test_cli_v2_concat.py452 def test_concat_generates_wav_with_manifest_order_and_silence(self):CODE
LOWcli_tests/test_cli_v2_concat.py486 def test_concat_execution_does_not_initialize_or_check_model_resources(self):CODE
LOWcli_tests/test_cli_v2_concat.py516 def test_concat_force_overwrites_existing_output_during_real_execution(self):CODE
LOWcli_tests/test_cli_v2_concat.py593 def test_concat_cleanup_failure_is_appended_without_overriding_primary_failure(self):CODE
LOWcli_tests/test_cli_v2_batch.py66def assert_model_resource_help(test_case, stderr, model_dir):CODE
LOWcli_tests/test_cli_v2_batch.py13def _mock_optional_dependency_imports():CODE
LOWcli_tests/test_cli_v2_batch.py133 def test_batch_dry_run_validates_manifest_without_loading_model(self):CODE
LOWcli_tests/test_cli_v2_batch.py189 def test_batch_dry_run_rejects_unknown_fields(self):CODE
LOWcli_tests/test_cli_v2_batch.py218 def test_batch_dry_run_rejects_conflicting_text_sources(self):CODE
LOWcli_tests/test_cli_v2_batch.py248 def test_batch_dry_run_rejects_missing_output(self):CODE
LOWcli_tests/test_cli_v2_batch.py273 def test_batch_dry_run_rejects_duplicate_output_paths_with_line_number(self):CODE
LOWcli_tests/test_cli_v2_batch.py307 def test_batch_dry_run_resolves_text_file_and_voice_relative_to_batch_file_directory(self):CODE
LOWcli_tests/test_cli_v2_batch.py344 def test_batch_dry_run_checks_model_files_without_importing_runtime_packages(self):CODE
LOWcli_tests/test_cli_v2_batch.py372 def test_batch_dry_run_with_force_still_rejects_duplicate_output_paths(self):CODE
LOWcli_tests/test_cli_v2_batch.py407 def test_batch_concat_dry_run_validates_manifest_without_loading_model_or_creating_output_parent(self):CODE
LOWcli_tests/test_cli_v2_batch.py448 def test_batch_concat_rejects_invalid_command_output_contracts(self):CODE
LOWcli_tests/test_cli_v2_batch.py486 def test_batch_concat_enforces_row_output_and_silence_after_ms_contracts(self):CODE
LOWcli_tests/test_cli_v2_batch.py559 def test_batch_concat_generates_final_wav_and_cleans_temp_dir_by_default(self):CODE
LOWcli_tests/test_cli_v2_batch.py606 def test_batch_concat_keep_temp_preserves_temp_dir_after_success(self):CODE
LOWcli_tests/test_cli_v2_batch.py646 def test_batch_concat_stops_on_inference_failure_and_cleans_temp_dir_by_default(self):CODE
LOWcli_tests/test_cli_v2_batch.py694 def test_batch_concat_keep_temp_preserves_temp_dir_after_inference_failure(self):CODE
LOWcli_tests/test_cli_v2_batch.py742 def test_batch_concat_rejects_mismatched_generated_segment_format_and_cleans_temp_dir(self):CODE
LOWcli_tests/test_cli_v2_batch.py786 def test_batch_concat_temp_cleanup_failure_does_not_override_inference_failure(self):CODE
244 more matches not shown…
Unused Imports235 hits · 230 pts
SeverityFileLineSnippetContext
LOWtests/test_v2.py10CODE
LOWindextts/infer_v2.py103CODE
LOWindextts/infer.py91CODE
LOWindextts/gpt/transformers_gpt2.py31CODE
LOWindextts/gpt/transformers_generation_utils.py108CODE
LOWindextts/gpt/transformers_generation_utils.py109CODE
LOWindextts/gpt/transformers_generation_utils.py110CODE
LOWindextts/gpt/model.py7CODE
LOWindextts/gpt/transformers_modeling_utils.py46CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/transformers_modeling_utils.py53CODE
LOWindextts/gpt/model_v2.py7CODE
LOWindextts/gpt/model_v2.py431CODE
LOWindextts/BigVGAN/bigvgan.py14CODE
LOW…dextts/BigVGAN/alias_free_activation/torch/__init__.py4CODE
LOW…dextts/BigVGAN/alias_free_activation/torch/__init__.py5CODE
LOW…dextts/BigVGAN/alias_free_activation/torch/__init__.py6CODE
LOWindextts/BigVGAN/alias_free_torch/__init__.py4CODE
LOWindextts/BigVGAN/alias_free_torch/__init__.py5CODE
LOWindextts/BigVGAN/alias_free_torch/__init__.py6CODE
LOWindextts/BigVGAN/nnet/linear.py8CODE
LOWindextts/BigVGAN/nnet/CNN.py12CODE
LOWindextts/BigVGAN/nnet/CNN.py14CODE
LOWindextts/BigVGAN/nnet/CNN.py20CODE
LOWindextts/utils/presets.py10CODE
LOWindextts/utils/maskgct_utils.py5CODE
LOWindextts/utils/maskgct_utils.py6CODE
LOWindextts/utils/maskgct_utils.py12CODE
LOWindextts/utils/common.py1CODE
LOWindextts/utils/common.py2CODE
LOWindextts/utils/utils.py1CODE
LOWindextts/utils/utils.py3CODE
LOWindextts/utils/maskgct/models/codec/codec_trainer.py17CODE
LOWindextts/utils/maskgct/models/codec/codec_trainer.py19CODE
LOWindextts/utils/maskgct/models/codec/codec_dataset.py11CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py16CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py26CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py27CODE
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py27CODE
LOW…odels/codec/speechtokenizer/modules/quantization/vq.py16CODE
LOW…codec/speechtokenizer/modules/quantization/__init__.py14CODE
LOW…codec/speechtokenizer/modules/quantization/__init__.py14CODE
LOW…/codec/speechtokenizer/modules/quantization/core_vq.py46CODE
LOW…/codec/speechtokenizer/modules/quantization/core_vq.py46CODE
LOW…/utils/maskgct/models/codec/facodec/facodec_dataset.py13CODE
LOW…/utils/maskgct/models/codec/facodec/facodec_dataset.py15CODE
LOW…/utils/maskgct/models/codec/facodec/facodec_dataset.py16CODE
LOW…/utils/maskgct/models/codec/facodec/facodec_dataset.py17CODE
LOW…/utils/maskgct/models/codec/facodec/facodec_trainer.py10CODE
175 more matches not shown…
AI Structural Patterns102 hits · 99 pts
SeverityFileLineSnippetContext
LOWindextts/infer_v2.py37CODE
LOWindextts/infer_v2.py365CODE
LOWindextts/infer_v2.py390CODE
LOWindextts/gpt/transformers_gpt2.py985CODE
LOWindextts/gpt/transformers_gpt2.py1252CODE
LOWindextts/gpt/transformers_gpt2.py1407CODE
LOWindextts/gpt/transformers_gpt2.py1568CODE
LOWindextts/gpt/transformers_gpt2.py1719CODE
LOWindextts/gpt/transformers_gpt2.py1806CODE
LOWindextts/gpt/transformers_generation_utils.py1869CODE
LOWindextts/gpt/perceiver.py150CODE
LOWindextts/gpt/model.py120CODE
LOWindextts/gpt/model.py306CODE
LOWindextts/gpt/transformers_modeling_utils.py836CODE
LOWindextts/gpt/transformers_modeling_utils.py2681CODE
LOWindextts/gpt/transformers_modeling_utils.py3184CODE
LOWindextts/gpt/transformers_modeling_utils.py4334CODE
LOWindextts/gpt/transformers_modeling_utils.py5465CODE
LOWindextts/gpt/conformer_encoder.py317CODE
LOWindextts/gpt/conformer_encoder.py442CODE
LOWindextts/gpt/model_v2.py120CODE
LOWindextts/gpt/model_v2.py305CODE
LOWindextts/gpt/model_v2.py698CODE
LOWindextts/gpt/model_v2.py796CODE
LOWindextts/BigVGAN/ECAPA_TDNN.py470CODE
LOWindextts/BigVGAN/alias_free_activation/torch/filter.py102CODE
LOWindextts/BigVGAN/alias_free_torch/filter.py96CODE
LOWindextts/BigVGAN/nnet/CNN.py68CODE
LOWindextts/BigVGAN/nnet/CNN.py356CODE
LOWindextts/BigVGAN/nnet/normalization.py47CODE
LOWindextts/BigVGAN/nnet/normalization.py602CODE
LOWindextts/utils/xtransformers.py480CODE
LOWindextts/utils/xtransformers.py576CODE
LOWindextts/utils/xtransformers.py732CODE
LOWindextts/utils/xtransformers.py906CODE
LOWindextts/utils/feature_extractors.py25CODE
LOWindextts/utils/maskgct/models/codec/codec_inference.py468CODE
LOW…maskgct/models/codec/speechtokenizer/modules/seanet.py58CODE
LOW…maskgct/models/codec/speechtokenizer/modules/seanet.py140CODE
LOW…maskgct/models/codec/speechtokenizer/modules/seanet.py281CODE
LOW…s/maskgct/models/codec/speechtokenizer/modules/conv.py233CODE
LOW…askgct/models/codec/facodec/alias_free_torch/filter.py96CODE
LOW…utils/maskgct/models/codec/facodec/modules/quantize.py170CODE
LOW…utils/maskgct/models/codec/facodec/modules/quantize.py591CODE
LOW…ils/maskgct/models/codec/facodec/modules/attentions.py304CODE
LOW…ils/maskgct/models/codec/facodec/modules/attentions.py313CODE
LOW…extts/utils/maskgct/models/codec/vevo/vevo_repcodec.py527CODE
LOWindextts/utils/maskgct/models/codec/melvqgan/melspec.py37CODE
LOWindextts/utils/maskgct/models/codec/melvqgan/melspec.py42CODE
LOW…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py825CODE
LOW…xtts/utils/maskgct/models/codec/amphion_codec/codec.py169CODE
LOW…models/codec/amphion_codec/quantize/vector_quantize.py278CODE
LOW…ts/utils/maskgct/models/codec/ns3_codec/transformer.py32CODE
LOW…ts/utils/maskgct/models/codec/ns3_codec/transformer.py155CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py191CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py243CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py603CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py759CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py816CODE
LOW…dextts/utils/maskgct/models/codec/ns3_codec/facodec.py849CODE
42 more matches not shown…
Deep Nesting87 hits · 68 pts
SeverityFileLineSnippetContext
LOWtools/gpu_check.py4CODE
LOWtools/i18n/scan_i18n.py31CODE
LOWcli_tests/test_cli_v2_config.py263CODE
LOWcli_tests/test_cli_v2_concat.py278CODE
LOWcli_tests/test_cli_v2_download.py92CODE
LOWcli_tests/test_cli_v2_check.py711CODE
LOWindextts/cli_v2.py681CODE
LOWindextts/cli_v2.py834CODE
LOWindextts/infer_v2.py37CODE
LOWindextts/infer_v2.py236CODE
LOWindextts/infer_v2.py390CODE
LOWindextts/cli.py41CODE
LOWindextts/infer.py28CODE
LOWindextts/infer.py134CODE
LOWindextts/infer.py191CODE
LOWindextts/infer.py283CODE
LOWindextts/gpt/transformers_gpt2.py73CODE
LOWindextts/gpt/transformers_gpt2.py985CODE
LOWindextts/gpt/transformers_gpt2.py1568CODE
LOWindextts/gpt/transformers_generation_utils.py4521CODE
LOWindextts/gpt/transformers_generation_utils.py4623CODE
LOWindextts/gpt/transformers_generation_utils.py639CODE
LOWindextts/gpt/transformers_generation_utils.py733CODE
LOWindextts/gpt/transformers_generation_utils.py843CODE
LOWindextts/gpt/transformers_generation_utils.py1555CODE
LOWindextts/gpt/transformers_generation_utils.py1660CODE
LOWindextts/gpt/transformers_generation_utils.py1869CODE
LOWindextts/gpt/transformers_generation_utils.py2503CODE
LOWindextts/gpt/transformers_generation_utils.py2716CODE
LOWindextts/gpt/transformers_generation_utils.py3123CODE
LOWindextts/gpt/transformers_generation_utils.py3325CODE
LOWindextts/gpt/transformers_generation_utils.py3611CODE
LOWindextts/gpt/transformers_generation_utils.py3902CODE
LOWindextts/gpt/transformers_generation_utils.py4141CODE
LOWindextts/gpt/transformers_generation_utils.py4640CODE
LOWindextts/gpt/model.py495CODE
LOWindextts/gpt/transformers_beam_search.py215CODE
LOWindextts/gpt/transformers_beam_search.py513CODE
LOWindextts/gpt/transformers_beam_search.py672CODE
LOWindextts/gpt/transformers_beam_search.py813CODE
LOWindextts/gpt/transformers_beam_search.py979CODE
LOWindextts/gpt/transformers_modeling_utils.py253CODE
LOWindextts/gpt/transformers_modeling_utils.py548CODE
LOWindextts/gpt/transformers_modeling_utils.py709CODE
LOWindextts/gpt/transformers_modeling_utils.py836CODE
LOWindextts/gpt/transformers_modeling_utils.py750CODE
LOWindextts/gpt/transformers_modeling_utils.py1234CODE
LOWindextts/gpt/transformers_modeling_utils.py1726CODE
LOWindextts/gpt/transformers_modeling_utils.py1947CODE
LOWindextts/gpt/transformers_modeling_utils.py2056CODE
LOWindextts/gpt/transformers_modeling_utils.py2183CODE
LOWindextts/gpt/transformers_modeling_utils.py2341CODE
LOWindextts/gpt/transformers_modeling_utils.py2681CODE
LOWindextts/gpt/transformers_modeling_utils.py3184CODE
LOWindextts/gpt/transformers_modeling_utils.py4334CODE
LOWindextts/gpt/transformers_modeling_utils.py5424CODE
LOWindextts/gpt/transformers_modeling_utils.py1958CODE
LOWindextts/gpt/transformers_modeling_utils.py4569CODE
LOWindextts/gpt/conformer_encoder.py317CODE
LOWindextts/gpt/model_v2.py549CODE
27 more matches not shown…
Excessive Try-Catch Wrapping33 hits · 38 pts
SeverityFileLineSnippetContext
LOWwebui.py68 except Exception as e:CODE
LOWwebui.py80except Exception as e:CODE
LOWwebui.py260 except Exception as e:CODE
LOWwebui.py342 except Exception as e:CODE
LOWwebui.py418 except Exception as e:CODE
LOWwebui.py1004 except Exception as e:CODE
MEDIUMwebui.py1006 print(f"Error details: {e}")CODE
LOWwebui.py1107 except Exception as e:CODE
MEDIUMwebui.py38def _require_optional_extra(flag_name, module_name, install_cmd):CODE
LOWtools/gpu_check.py58 except Exception as e:CODE
MEDIUMtools/gpu_check.py59 print(f"Error: {e}")CODE
LOWtools/i18n/scan_i18n.py50 except Exception as e:CODE
MEDIUMindextts/cli_v2.py605def _run_batch(args, tts_factory=None):CODE
MEDIUMindextts/cli_v2.py778def _run_concat(args):CODE
LOWindextts/cli_v2.py748 except Exception as exc:CODE
LOWindextts/cli_v2.py598 except Exception as exc:CODE
LOWindextts/cli_v2.py653 except Exception as exc:CODE
LOWindextts/cli_v2.py673 except Exception as exc:CODE
LOWindextts/cli_v2.py701 except Exception as exc:CODE
LOWindextts/cli_v2.py1312 except Exception as exc:CODE
LOWindextts/infer_v2.py116 except Exception as e:CODE
LOWindextts/cli.py56 except Exception as e:CODE
LOWindextts/infer.py275 except Exception as e:CODE
MEDIUMindextts/infer.py269def torch_empty_cache(self):CODE
LOWindextts/gpt/transformers_modeling_utils.py596 except Exception as e:CODE
LOWindextts/gpt/transformers_modeling_utils.py3927 except Exception as e:STRING
LOWindextts/utils/examples_downloader.py136 except Exception as e:CODE
LOWindextts/utils/common.py21 except Exception as e:CODE
LOWindextts/utils/utils.py20 except Exception as e:CODE
LOWindextts/utils/front.py156 except Exception:CODE
LOWindextts/utils/front.py178 except Exception:CODE
LOWindextts/utils/model_download.py56 except Exception as e:CODE
LOWindextts/s2mel/modules/openvoice/openvoice_app.py119 except Exception as e:CODE
Cross-Language Confusion5 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py138 self.packer.push(b1)CODE
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py185 self.packer.push(b1)CODE
HIGH…odels/codec/speechtokenizer/modules/quantization/ac.py304 encoder.push(symbol, q_cdf)CODE
HIGHindextts/s2mel/modules/flow_matching.py88 # Stack original and CFG (null) inputs for batched processingCOMMENT
HIGH…modules/.ipynb_checkpoints/flow_matching-checkpoint.py88 # Stack original and CFG (null) inputs for batched processingCOMMENT
Fake / Example Data19 hits · 23 pts
SeverityFileLineSnippetContext
LOWcli_tests/test_cli_v2_config.py51 (path / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_config.py57 target.write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_config.py61 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_batch.py52 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_batch.py58 target.write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_batch.py62 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_batch.py2111 (model_dir / "config.yaml").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_download.py37 (path / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_download.py48 target.write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_download.py52 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_download.py243 (target / "config.yaml").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py64 target.write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py68 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py257 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py258 (model_dir / "qwen0.6bemo4-merge").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py52 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py187 (model_dir / "config.yaml").write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py214 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOWcli_tests/test_cli_v2_check.py1310 (model_dir / "config.yaml").write_text("placeholder", encoding="utf-8")CODE
Over-Commented Block24 hits · 23 pts
SeverityFileLineSnippetContext
LOWindextts/infer.py61COMMENT
LOWindextts/gpt/transformers_gpt2.py1# coding=utf-8COMMENT
LOWindextts/gpt/transformers_generation_utils.py1# coding=utf-8COMMENT
LOWindextts/gpt/transformers_beam_search.py1# coding=utf-8COMMENT
LOWindextts/gpt/transformers_beam_search.py741 elif push_progress:COMMENT
LOWindextts/gpt/transformers_modeling_utils.py1# coding=utf-8COMMENT
LOWindextts/gpt/conformer/attention.py1# Copyright (c) 2019 Shigeki KaritaCOMMENT
LOWindextts/gpt/conformer/attention.py161 # when export onnx model, for 1st chunk, we feedCOMMENT
LOWindextts/gpt/conformer/attention.py261COMMENT
LOWindextts/gpt/conformer/subsampling.py1# Copyright (c) 2021 Mobvoi Inc (Binbin Zhang, Di Wu)COMMENT
LOWindextts/gpt/conformer/embedding.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang, Di Wu)COMMENT
LOWindextts/BigVGAN/alias_free_activation/cuda/compat.h21#ifndef TORCH_CHECKCOMMENT
LOWindextts/utils/checkpoint.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang)COMMENT
LOWindextts/utils/front.py61 # "PCIe 5.0": {"en": "PCIE five", "zh": "PCIE 五点零"},COMMENT
LOW…skgct/models/codec/speechtokenizer/modules/__init__.py1# Copyright (c) 2023 Amphion.COMMENT
LOW…codec/speechtokenizer/modules/quantization/__init__.py1# Copyright (c) 2023 Amphion.COMMENT
LOW…/codec/speechtokenizer/modules/quantization/core_vq.py1# Copyright (c) 2023 Amphion.COMMENT
LOW…/codec/speechtokenizer/modules/quantization/core_vq.py21# of this software and associated documentation files (the "Software"), to dealCOMMENT
LOW…extts/utils/maskgct/models/codec/vevo/vevo_repcodec.py1# Copyright (c) 2023 Amphion.COMMENT
LOW…extts/utils/maskgct/models/codec/ns3_codec/__init__.py1# Copyright (c) 2023 Amphion.COMMENT
LOWindextts/s2mel/modules/hifigan/generator.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu)COMMENT
LOWindextts/s2mel/modules/hifigan/f0_predictor.py1# Copyright (c) 2024 Alibaba Inc (authors: Xiang Lyu, Kai Hu)COMMENT
LOWindextts/s2mel/modules/openvoice/se_extractor.py141 # wavs_folder = audio_pathCOMMENT
LOW…el/modules/bigvgan/alias_free_activation/cuda/compat.h21#ifndef TORCH_CHECKCOMMENT
Dead Code9 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM…tts/BigVGAN/alias_free_activation/cuda/activation1d.py31CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py149CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py150CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py151CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py153CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py154CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py155CODE
MEDIUMindextts/s2mel/modules/openvoice/api.py168CODE
MEDIUM…les/bigvgan/alias_free_activation/cuda/activation1d.py32CODE
Self-Referential Comments8 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMindextts/gpt/transformers_generation_utils.py431 # Create the causal mask with fixed shape in advance, to reduce recompilations. If the function to createCOMMENT
MEDIUMindextts/BigVGAN/ECAPA_TDNN.py246 """This class implements an attentive statistic pooling layer for each channel.STRING
MEDIUMindextts/BigVGAN/ECAPA_TDNN.py585 """This class implements the cosine similarity on the top of features.STRING
MEDIUMindextts/BigVGAN/nnet/CNN.py24 """This function implements SincConv (SincNet).STRING
MEDIUMindextts/BigVGAN/nnet/CNN.py306 """This function implements 1d convolution.STRING
MEDIUM…/utils/maskgct/models/codec/facodec/facodec_trainer.py521 # Create the normalized F0 sequence with unvoiced framesCOMMENT
MEDIUMindextts/s2mel/modules/commons.py382 # Create the normalized F0 sequence with unvoiced framesCOMMENT
MEDIUM…s2mel/modules/.ipynb_checkpoints/commons-checkpoint.py380 # Create the normalized F0 sequence with unvoiced framesCOMMENT
Redundant / Tautological Comments10 hits · 12 pts
SeverityFileLineSnippetContext
LOWindextts/gpt/perceiver.py87 # Check if mask exists and expand to compatible shapeCOMMENT
LOWindextts/gpt/perceiver.py94 # Check if there is a compatible device for flash attentionCOMMENT
LOWindextts/gpt/transformers_beam_search.py307 # Check if we are done so that we can save a pad step if all(done)STRING
LOWindextts/gpt/transformers_beam_search.py659 # Check if we are done so that we can save a pad step if all(done)STRING
LOWindextts/gpt/transformers_modeling_utils.py2477 # Check if the covariance is positive definite.COMMENT
LOWindextts/gpt/transformers_modeling_utils.py4060 # Check if `_keep_in_fp32_modules` is not NoneSTRING
LOWindextts/gpt/model_v2.py429 # Check if flash attention is availableCOMMENT
LOWindextts/BigVGAN/alias_free_activation/cuda/load.py49 # Check if cuda 11 is installed for compute capability 8.0COMMENT
LOWindextts/utils/network_detection.py59 # Check if huggingface.co is accessible and measure latencyCOMMENT
LOW…mel/modules/bigvgan/alias_free_activation/cuda/load.py18 # Check if cuda 11 is installed for compute capability 8.0COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHindextts/utils/common.py86Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
HIGHindextts/utils/utils.py54Make mask tensor containing indices of padded part. See description of make_non_pad_mask. Args: lengthSTRING
AI Slop Vocabulary5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMindextts/gpt/transformers_generation_utils.py372 # (this alternative is not as robust as calling `generate` and letting it create `cache_position`)COMMENT
MEDIUMindextts/gpt/transformers_generation_utils.py648 # 1. Check whether the user has defined `decoder_input_ids` manually. To facilitate in terms of input naming,COMMENT
LOWindextts/gpt/transformers_beam_search.py854 # generation. In these cases we simply return the highest scoring outputs.STRING
LOWindextts/gpt/transformers_modeling_utils.py5402 # We can probably just use the multi-head attention module of PyTorch >=1.1.0STRING
LOWindextts/gpt/conformer_encoder.py146 # It's better we just return None if no cache is required,COMMENT
Decorative Section Separators4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMwebui.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py897 # ---------------------------------------------------------------------------STRING
MEDIUMwebui.py899 # ---------------------------------------------------------------------------STRING
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWindextts/utils/network_detection.py12logger = logging.getLogger(__name__)CODE
LOWindextts/utils/examples_downloader.py21logger = logging.getLogger(__name__)CODE
LOWindextts/utils/model_download.py13logger = logging.getLogger(__name__)CODE
LOWindextts/s2mel/modules/rmvpe.py14logger = logging.getLogger(__name__)CODE
LOWindextts/s2mel/modules/openvoice/attentions.py9logger = logging.getLogger(__name__)CODE
Structural Annotation Overuse3 hits · 1 pts
SeverityFileLineSnippetContext
LOWindextts/gpt/transformers_generation_utils.py3549 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOWindextts/gpt/transformers_generation_utils.py3842 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING
LOWindextts/gpt/transformers_generation_utils.py4080 # IMPORTANT: Note that this should appear BEFORE the call to _reorder_cache() to save the maximum memorySTRING