Repository Analysis

index-tts/index-tts

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

22.8 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 23,562 GitHub stars. SynthScan v2.0 examined 84,088 lines of code across 306 source files, recording 1195 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 22.8 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).

22.8
Adjusted Score
22.8
Raw Score
100%
Time Factor
2026-08-18
Last Push
23.6K
Stars
Python
Language
84.1K
Lines of Code
306
Files
1.2K
Pattern Hits
2026-08-29
Scan Date
0.54
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 166MEDIUM 67LOW 962

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 1195 distinct pattern matches across 18 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 Repetition159 hits · 795 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/infer_v2_5.py0shrink special tokens (silent_token and stop_mel_token) in codes codes: [b, t]STRING
HIGHindextts/infer_v2.py0shrink special tokens (silent_token and stop_mel_token) in codes codes: [b, t]STRING
HIGHindextts/infer.py0shrink special tokens (silent_token and stop_mel_token) in codes codes: [b, t]STRING
HIGHindextts/gpt/model.py0basic residual convolutional block that uses groupnorm.STRING
HIGHindextts/gpt/model_v2_5.py0basic residual convolutional block that uses groupnorm.STRING
HIGHindextts/gpt/model_v2.py0basic residual convolutional block that uses groupnorm.STRING
HIGHindextts/gpt/model.py0this function is used to re-order the :obj:`past_key_values` cache if :meth:`~transformers.pretrainedmodel.beam_search` STRING
HIGHindextts/gpt/model_v2_5.py0this function is used to re-order the :obj:`past_key_values` cache if :meth:`~transformers.pretrainedmodel.beam_search` STRING
HIGHindextts/gpt/model_v2.py0this function is used to re-order the :obj:`past_key_values` cache if :meth:`~transformers.pretrainedmodel.beam_search` STRING
HIGHindextts/gpt/model.py0args: layers: number of layers in transformer stack. model_dim: operating dimensions of the transformer heads: number ofSTRING
HIGHindextts/gpt/model_v2_5.py0args: layers: number of layers in transformer stack. model_dim: operating dimensions of the transformer heads: number ofSTRING
HIGHindextts/gpt/model_v2.py0args: layers: number of layers in transformer stack. model_dim: operating dimensions of the transformer heads: number ofSTRING
HIGHindextts/gpt/model.py0given mel tokens that are derived from a padded audio clip and the actual lengths of each batch element in that audio clSTRING
HIGHindextts/gpt/model_v2_5.py0given mel tokens that are derived from a padded audio clip and the actual lengths of each batch element in that audio clSTRING
HIGHindextts/gpt/model_v2.py0given mel tokens that are derived from a padded audio clip and the actual lengths of each batch element in that audio clSTRING
HIGHindextts/gpt/model.py0prepare the inputs for the gpt2inferencemodel to generate. args: conds_latent: (b, 32, dim) audio conditioning embeddingSTRING
HIGHindextts/gpt/model_v2_5.py0prepare the inputs for the gpt2inferencemodel to generate. args: conds_latent: (b, 32, dim) audio conditioning embeddingSTRING
HIGHindextts/gpt/model_v2.py0prepare the inputs for the gpt2inferencemodel to generate. args: conds_latent: (b, 32, dim) audio conditioning embeddingSTRING
HIGH…c/amphion_codec/quantize/factorized_vector_quantize.py0parameters ---------- z: torch.tensor[b x d x t] returns ------- z_q: torch.tensor[b x d x t] quantized continuous repreSTRING
HIGH…dextts/codec/amphion_codec/quantize/vector_quantize.py0parameters ---------- z: torch.tensor[b x d x t] returns ------- z_q: torch.tensor[b x d x t] quantized continuous repreSTRING
HIGH…c/amphion_codec/quantize/factorized_vector_quantize.py0parameters ---------- z: torch.tensor[b x d x t] returns ------- z_q: torch.tensor[b x d x t] quantized continuous repreSTRING
HIGH…models/codec/amphion_codec/quantize/vector_quantize.py0parameters ---------- z: torch.tensor[b x d x t] returns ------- z_q: torch.tensor[b x d x t] quantized continuous repreSTRING
HIGHindextts/codec/amphion_codec/quantize/residual_vq.py0introduced in soundstream: an end2end neural audio codec https://arxiv.org/abs/2107.03312STRING
HIGH…gct/models/codec/amphion_codec/quantize/residual_vq.py0introduced in soundstream: an end2end neural audio codec https://arxiv.org/abs/2107.03312STRING
HIGHindextts/s2mel/dac/nn/quantize.py0introduced in soundstream: an end2end neural audio codec https://arxiv.org/abs/2107.03312STRING
HIGHindextts/codec/kmeans/vocos.py0computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. args: x (tensor): inputSTRING
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
HIGHindextts/codec/kmeans/vocos.py0custom implementation of istft since torch.istft doesn't allow custom padding (other than `center=true`) with windowing.STRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0custom implementation of istft since torch.istft doesn't allow custom padding (other than `center=true`) with windowing.STRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0custom implementation of istft since torch.istft doesn't allow custom padding (other than `center=true`) with windowing.STRING
HIGHindextts/s2mel/modules/vocos/spectral_ops.py0custom implementation of istft since torch.istft doesn't allow custom padding (other than `center=true`) with windowing.STRING
HIGHindextts/codec/kmeans/vocos.py0compute the inverse short time fourier transform (istft) of a complex spectrogram. args: spec (tensor): input complex spSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0compute the inverse short time fourier transform (istft) of a complex spectrogram. args: spec (tensor): input complex spSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0compute the inverse short time fourier transform (istft) of a complex spectrogram. args: spec (tensor): input complex spSTRING
HIGHindextts/s2mel/modules/vocos/spectral_ops.py0compute the inverse short time fourier transform (istft) of a complex spectrogram. args: spec (tensor): input complex spSTRING
HIGHindextts/codec/kmeans/vocos.py0inverse modified discrete cosine transform (imdct) module. args: frame_len (int): length of the mdct frame. padding (strSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0inverse modified discrete cosine transform (imdct) module. args: frame_len (int): length of the mdct frame. padding (strSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0inverse modified discrete cosine transform (imdct) module. args: frame_len (int): length of the mdct frame. padding (strSTRING
HIGHindextts/s2mel/modules/vocos/spectral_ops.py0inverse modified discrete cosine transform (imdct) module. args: frame_len (int): length of the mdct frame. padding (strSTRING
HIGHindextts/codec/kmeans/vocos.py0apply the modified discrete cosine transform (mdct) to the input audio. args: audio (tensor): input audio waveform of shSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0apply the modified discrete cosine transform (mdct) to the input audio. args: audio (tensor): input audio waveform of shSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0apply the modified discrete cosine transform (mdct) to the input audio. args: audio (tensor): input audio waveform of shSTRING
HIGHindextts/s2mel/modules/vocos/spectral_ops.py0apply the modified discrete cosine transform (mdct) to the input audio. args: audio (tensor): input audio waveform of shSTRING
HIGHindextts/codec/kmeans/vocos.py0apply the inverse modified discrete cosine transform (imdct) to the input mdct coefficients. args: x (tensor): input mdcSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0apply the inverse modified discrete cosine transform (imdct) to the input mdct coefficients. args: x (tensor): input mdcSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0apply the inverse modified discrete cosine transform (imdct) to the input mdct coefficients. args: x (tensor): input mdcSTRING
HIGHindextts/s2mel/modules/vocos/spectral_ops.py0apply the inverse modified discrete cosine transform (imdct) to the input mdct coefficients. args: x (tensor): input mdcSTRING
HIGHindextts/codec/kmeans/vocos.py0forward pass of the imdctcoshead module. args: x (tensor): input tensor of shape (b, l, h), where b is the batch size, lSTRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0forward pass of the imdctcoshead module. args: x (tensor): input tensor of shape (b, l, h), where b is the batch size, lSTRING
HIGHindextts/utils/maskgct/models/codec/kmeans/vocos.py0forward pass of the imdctcoshead module. args: x (tensor): input tensor of shape (b, l, h), where b is the batch size, lSTRING
HIGHindextts/s2mel/modules/vocos/heads.py0forward pass of the imdctcoshead module. args: x (tensor): input tensor of shape (b, l, h), where b is the batch size, lSTRING
HIGHindextts/codec/kmeans/vocos.py0istft head module for predicting stft complex coefficients. args: dim (int): hidden dimension of the model. n_fft (int):STRING
HIGH…xtts/utils/maskgct/models/codec/amphion_codec/vocos.py0istft head module for predicting stft complex coefficients. args: dim (int): hidden dimension of the model. n_fft (int):STRING
99 more matches not shown…
Hyper-Verbose Identifiers339 hits · 306 pts
SeverityFileLineSnippetContext
LOWwebui.py430def update_save_preset_button(prompt_audio):CODE
LOWwebui.py435def update_delete_preset_button(preset_name):CODE
LOWwebui.py578def confirm_save_preset_from_modal(CODE
LOWwebui.py698def create_experimental_warning_message():CODE
LOWwebui.py1184 def on_glossary_checkbox_change(is_enabled):CODE
LOWbackends/trt/pipeline/audio_processing.py95def compute_semantic_features(audio_16k: torch.Tensor, feature_extractor, device=None):CODE
LOWbackends/trt/pipeline/pipeline.py70def _find_most_similar_cosine(query_vector, matrix):CODE
LOWbackends/trt/pipeline/pipeline.py590 def _prepare_batched_trt_text(CODE
LOWbackends/trt/pipeline/pipeline.py688 def _prepare_batch_conditioning(CODE
LOWbackends/trt/pipeline/pipeline.py377 def _build_conds_latent_batch(CODE
LOWbackends/trt/export/export_dit_onnx.py32def remove_weight_norm_from_model(model):CODE
LOWbackends/trt/export/export_dit_onnx.py41def _plain_fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels):CODE
LOWbackends/trt/export/export_dit_onnx.py51def patch_jit_script_functions():CODE
LOWbackends/trt/export/export_dit_onnx.py62def restore_jit_script_functions(originals):CODE
LOWbackends/trt/export/export_latent_projector_onnx.py40def remove_weight_norm_recursive(model):CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py65 def _build_context_position_ids(self, seq_len):CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py116 def _prepare_generation_inputs(self, batch_size, context_lengths,CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py141 def _get_context_shape_buffer(self, *args, **kwargs):CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py148 def _get_next_step_shape_buffer(self, *args, **kwargs):CODE
LOWbackends/trt/trtllm/convert_gpt_weights.py128def load_weights_from_hf_model(hf_weights,CODE
LOWbackends/trt/trtllm/convert_gpt_weights.py264def load_hf_weights_and_config(cfg_path: str, model_dir: str, load_model_on_cpu: bool = False):CODE
LOWtests/test_audio_save.py77def test_save_pcm_wav_round_trips_without_saturation(tmp_path):CODE
LOWtests/test_audio_save.py103def test_save_pcm_wav_preserves_the_waveform_shape(tmp_path):CODE
LOWtests/test_audio_save.py130def test_save_pcm_wav_does_not_warn_about_ignored_encoding_args(tmp_path):CODE
LOWtests/test_audio_save.py175def test_save_pcm_wav_normalizes_every_pcm_scale_dtype(tmp_path, monkeypatch, dtype):CODE
LOWtests/test_audio_save.py187def test_save_pcm_wav_does_not_mutate_the_caller_tensor(tmp_path):CODE
LOWtests/test_webui_syntax.py4def test_webui_python_source_parses():CODE
LOWtests/test_v2.py74def test_model_download_reachable(name, repo_id, filename, tmp_path):CODE
LOWtests/test_v2.py87def test_example_download_reachable(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py98def test_legacy_cache_compatibility(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py143def test_modelscope_single_file_download_matches_local_path(tmp_path, monkeypatch):CODE
LOWtests/test_v2.py208def test_split_keeps_pronunciation_annotations_paired():CODE
LOWtests/test_v2.py238def test_split_stays_within_position_embedding_capacity():CODE
LOWtests/test_v2.py253def test_split_leaves_short_text_alone():CODE
LOWtests/test_v2.py259def _load_qwen_emotion_module(module_name, monkeypatch):CODE
LOWtests/test_v2.py313def test_qwen_emotion_convert_accepts_label_values(module_name, monkeypatch):CODE
LOWtests/test_v2.py344def test_qwen_emotion_convert_accepts_label_only_payload(module_name, monkeypatch):CODE
LOWtests/test_v2.py366def test_qwen_emotion_convert_redirects_cross_key_labels(module_name, monkeypatch):CODE
LOWtests/test_v2.py407def 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
279 more matches not shown…
Unused Imports281 hits · 276 pts
SeverityFileLineSnippetContext
LOWbackends/trt/pipeline/__init__.py1CODE
LOWbackends/trt/pipeline/__init__.py1CODE
LOWbackends/trt/pipeline/__init__.py1CODE
LOWbackends/trt/pipeline/__init__.py1CODE
LOWbackends/trt/pipeline/audio_processing.py4CODE
LOWbackends/trt/serving/triton_server.py26CODE
LOWbackends/trt/serving/triton_server.py75CODE
LOWbackends/trt/serving/triton_server.py226CODE
LOWbackends/trt/serving/triton_server.py226CODE
LOWbackends/trt/runtime/gpt_trtllm_runtime.py4CODE
LOWbackends/trt/runtime/gpt_trtllm_runtime.py77CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py12CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py4CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py7CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py7CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py7CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py7CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py10CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py13CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py13CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py15CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py16CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py17CODE
LOWbackends/trt/trtllm/convert_gpt_weights.py11CODE
LOWindextts/infer_v2_5.py151CODE
LOWindextts/infer_v2.py110CODE
LOWindextts/infer.py92CODE
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_5.py7CODE
LOWindextts/gpt/model_v2_5.py412CODE
LOWindextts/gpt/model_v2.py7CODE
LOWindextts/gpt/model_v2.py438CODE
LOW…s/codec/amphion_codec/quantize/lookup_free_quantize.py6CODE
LOW…s/codec/amphion_codec/quantize/lookup_free_quantize.py10CODE
LOW…c/amphion_codec/quantize/factorized_vector_quantize.py6CODE
LOWindextts/codec/amphion_codec/quantize/__init__.py6CODE
LOWindextts/codec/amphion_codec/quantize/__init__.py9CODE
LOWindextts/codec/amphion_codec/quantize/__init__.py10CODE
LOWindextts/codec/amphion_codec/quantize/__init__.py11CODE
LOW…dextts/codec/amphion_codec/quantize/vector_quantize.py6CODE
LOWindextts/codec/amphion_codec/quantize/residual_vq.py6CODE
LOWindextts/codec/amphion_codec/quantize/residual_vq.py8CODE
221 more matches not shown…
Decorative Section Separators41 hits · 125 pts
SeverityFileLineSnippetContext
MEDIUMwebui.py235# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py988 # ---------------------------------------------------------------------------STRING
MEDIUMwebui.py990 # ---------------------------------------------------------------------------STRING
MEDIUMbackends/trt/pipeline/text_processing.py12# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/text_processing.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/text_processing.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/text_processing.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/text_processing.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/text_processing.py189# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py586 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py588 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py684 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py686 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py202 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py204 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py325 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py327 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py455 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py457 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py556 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py558 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py622 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py624 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py904 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py906 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py1006 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/pipeline/pipeline.py1008 # ------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/serving/triton_server.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/serving/triton_server.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/serving/triton_server.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMbackends/trt/serving/triton_server.py94# ---------------------------------------------------------------------------COMMENT
MEDIUMindextts/utils/nemo_tn.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMindextts/utils/nemo_tn.py46# ---------------------------------------------------------------------------COMMENT
MEDIUMindextts/utils/ja_g2p.py105# ----------------------------------------------------------------------COMMENT
AI Structural Patterns123 hits · 119 pts
SeverityFileLineSnippetContext
LOWbackends/trt/pipeline/audio_processing.py13CODE
LOWbackends/trt/pipeline/pipeline.py732CODE
LOWbackends/trt/pipeline/pipeline.py908CODE
LOWbackends/trt/pipeline/streaming.py70CODE
LOWbackends/trt/runtime/gpt_trtllm_runtime.py261CODE
LOW…ckends/trt/build_engines/build_length_regulator_trt.py15CODE
LOWbackends/trt/export/export_length_regulator_onnx.py42CODE
LOW…rt/export/export_speaker_perceiver_conditioner_onnx.py47CODE
LOW…rt/export/export_emotion_perceiver_conditioner_onnx.py47CODE
LOWbackends/trt/trtllm/indextts2_gpt_model.py48CODE
LOWindextts/infer_v2_5.py77CODE
LOWindextts/infer_v2_5.py506CODE
LOWindextts/infer_v2_5.py570CODE
LOWindextts/infer_v2.py37CODE
LOWindextts/infer_v2.py371CODE
LOWindextts/infer_v2.py396CODE
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_5.py120CODE
LOWindextts/gpt/model_v2_5.py305CODE
LOWindextts/gpt/model_v2_5.py679CODE
LOWindextts/gpt/model_v2_5.py797CODE
LOWindextts/gpt/model_v2.py121CODE
LOWindextts/gpt/model_v2.py306CODE
LOWindextts/gpt/model_v2.py716CODE
LOWindextts/gpt/model_v2.py838CODE
LOWindextts/codec/models.py30CODE
LOW…dextts/codec/amphion_codec/quantize/vector_quantize.py278CODE
LOWindextts/codec/kmeans/vocos.py824CODE
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/front.py221CODE
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
63 more matches not shown…
Deep Nesting109 hits · 90 pts
SeverityFileLineSnippetContext
LOWtools/gpu_check.py4CODE
LOWtools/i18n/scan_i18n.py31CODE
LOWbackends/trt/infer.py35CODE
LOWbackends/trt/pipeline/text_processing.py246CODE
LOWbackends/trt/pipeline/pipeline.py908CODE
LOWbackends/trt/pipeline/streaming.py70CODE
LOWbackends/trt/serving/triton_server.py217CODE
LOWbackends/trt/runtime/gpt_trtllm_runtime.py261CODE
LOWbackends/trt/runtime/gpt_trtllm_runtime.py381CODE
LOW…ild_engines/build_speaker_perceiver_conditioner_trt.py15CODE
LOWbackends/trt/trtllm/convert_gpt_checkpoint.py94CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py81CODE
LOWbackends/trt/trtllm/indextts2_gpt_generation.py155CODE
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_5.py77CODE
LOWindextts/infer_v2_5.py299CODE
LOWindextts/infer_v2_5.py427CODE
LOWindextts/infer_v2_5.py506CODE
LOWindextts/infer_v2_5.py570CODE
LOWindextts/infer_v2.py37CODE
LOWindextts/infer_v2.py242CODE
LOWindextts/infer_v2.py396CODE
LOWindextts/cli.py41CODE
LOWindextts/infer.py29CODE
LOWindextts/infer.py135CODE
LOWindextts/infer.py192CODE
LOWindextts/infer.py284CODE
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
49 more matches not shown…
Excessive Try-Catch Wrapping41 hits · 47 pts
SeverityFileLineSnippetContext
LOWwebui.py79 except Exception as e:CODE
LOWwebui.py91except Exception as e:CODE
LOWwebui.py319 except Exception as e:CODE
LOWwebui.py406 except Exception as e:CODE
LOWwebui.py482 except Exception as e:CODE
LOWwebui.py1118 except Exception as e:CODE
MEDIUMwebui.py1120 print(f"Error details: {e}")CODE
LOWwebui.py1232 except Exception as e:CODE
MEDIUMwebui.py40def _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
LOWbackends/trt/pipeline/text_processing.py117 except Exception:CODE
LOWbackends/trt/pipeline/text_processing.py128 except Exception:CODE
MEDIUMbackends/trt/serving/triton_client.py103 print(f"Error: {error}")CODE
LOW…ild_engines/build_speaker_perceiver_conditioner_trt.py72 except Exception:CODE
LOWbackends/trt/trtllm/convert_gpt_checkpoint.py105 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_5.py164 except Exception as e:CODE
LOWindextts/infer_v2.py123 except Exception as e:CODE
LOWindextts/cli.py56 except Exception as e:CODE
LOWindextts/infer.py276 except Exception as e:CODE
MEDIUMindextts/infer.py270def 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/nemo_tn.py111 except Exception as e:CODE
LOWindextts/utils/nemo_tn.py147 except Exception as e:CODE
LOWindextts/utils/examples_downloader.py137 except Exception as e:CODE
LOWindextts/utils/common.py71 except Exception as e:CODE
LOWindextts/utils/utils.py20 except Exception as e:CODE
LOWindextts/utils/front.py191 except Exception:CODE
LOWindextts/utils/front.py213 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
Over-Commented Block28 hits · 27 pts
SeverityFileLineSnippetContext
LOWbackends/trt/run.sh1#!/usr/bin/env bashCOMMENT
LOWindextts/infer.py61 print(">> Be patient, it may take a while to run in CPU mode.")COMMENT
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/nemo_tn.py1#!/usr/bin/env python3COMMENT
LOWindextts/utils/checkpoint.py1# Copyright (c) 2020 Mobvoi Inc. (authors: Binbin Zhang)COMMENT
LOWindextts/utils/ja_g2p.py121 # tar = processor.process_ja_text(org)COMMENT
LOWindextts/utils/tokenizer.py421 # print(f"cleaned text: {text}")COMMENT
LOWindextts/utils/front.py61 # "M.2": {"en": "M dot two", "zh": "M 二"},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
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
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_5.py410 # Check if flash attention is availableCOMMENT
LOWindextts/gpt/model_v2.py436 # 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
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHindextts/utils/common.py136Make 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
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackends/trt/pipeline/__init__.py3__all__ = ["FasterIndexTTS2", "AudioChunk", "BatchAudioChunk", "SpeakerCondition"]CODE
LOWindextts/codec/models.py14logger = logging.getLogger(__name__)CODE
LOWindextts/utils/network_detection.py12logger = logging.getLogger(__name__)CODE
LOWindextts/utils/nemo_tn.py37logger = 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
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
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackends/trt/run.sh4# Usage:COMMENT
LOWbackends/trt/scripts/convert_checkpoint.sh4# Usage:COMMENT
LOWbackends/trt/scripts/build_engines.sh4# Usage:COMMENT
LOWbackends/trt/scripts/setup_env.sh4# Usage:COMMENT
LOWbackends/trt/scripts/export_models.sh4# Usage:COMMENT
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