AI Slop Code RIsk Monitor

index-tts/index-tts

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

23.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for index-tts/index-tts, a Python project with 24,409 GitHub stars. SynthScan examined 84,514 lines of code across 308 source files, recording 1217 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 23.4 (Elevated pattern signal); it is not an authorship estimate.

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

23.4
Adjusted Signal
23.4
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
24.4K
Stars
Python
Language
84.5K
Lines of Code
308
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.57
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 30.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 17.7/100 · LOW

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

Agent Over-Engineering Ratio 58.2/100 · HIGH

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

PR Review Velocity Impact 73.2/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 175MEDIUM 67LOW 975

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

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 Identifiers349 hits · 316 pts
SeverityFileLineSnippetContext
LOWwebui.py443def update_save_preset_button(prompt_audio):CODE
LOWwebui.py448def update_delete_preset_button(preset_name):CODE
LOWwebui.py591def confirm_save_preset_from_modal(CODE
LOWwebui.py711def create_experimental_warning_message():CODE
LOWwebui.py1202 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
LOW⚡backends/trt/pipeline/pipeline.py70def _find_most_similar_cosine(query_vector, matrix):CODE
LOW⚡backends/trt/pipeline/pipeline.py590 def _prepare_batched_trt_text(CODE
LOW⚡backends/trt/pipeline/pipeline.py688 def _prepare_batch_conditioning(CODE
LOWbackends/trt/pipeline/pipeline.py377 def _build_conds_latent_batch(CODE
LOW⚡backends/trt/export/export_dit_onnx.py32def remove_weight_norm_from_model(model):CODE
LOW⚡backends/trt/export/export_dit_onnx.py41def _plain_fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels):CODE
LOW⚡backends/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_webui_handlers.py103def test_indexed_helpers_never_return_a_skip_sentinel():CODE
LOWtests/test_webui_handlers.py124def test_multi_output_handlers_never_return_an_empty_value():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_tail_fade.py41def test_fade_lands_the_last_sample_on_zero():CODE
LOWtests/test_tail_fade.py50def test_fade_is_bit_exact_on_a_silent_tail():CODE
LOWtests/test_tail_fade.py63def test_fade_only_touches_the_ramp_region():CODE
LOWtests/test_tail_fade.py73def test_fade_ramp_is_monotonically_decreasing():CODE
LOWtests/test_tail_fade.py85def test_fade_does_not_mutate_the_caller_tensor():CODE
LOWtests/test_tail_fade.py95def test_fade_preserves_dtype(dtype):CODE
LOWtests/test_tail_fade.py106def test_fade_tolerates_degenerate_input(samples):CODE
LOWtests/test_tail_fade.py114def test_fade_is_a_no_op_when_disabled():CODE
LOWtests/test_webui_syntax.py10def 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
289 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.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py239# ---------------------------------------------------------------------------COMMENT
MEDIUMwebui.py1006 # ---------------------------------------------------------------------------STRING
MEDIUMwebui.py1008 # ---------------------------------------------------------------------------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
MEDIUM⚡backends/trt/pipeline/pipeline.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡backends/trt/pipeline/pipeline.py61# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡backends/trt/pipeline/pipeline.py586 # ------------------------------------------------------------------COMMENT
MEDIUM⚡backends/trt/pipeline/pipeline.py588 # ------------------------------------------------------------------COMMENT
MEDIUM⚡backends/trt/pipeline/pipeline.py684 # ------------------------------------------------------------------COMMENT
MEDIUM⚡backends/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
MEDIUM⚡indextts/utils/nemo_tn.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡indextts/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 Nesting112 hits · 93 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
LOWtests/test_webui_handlers.py42CODE
LOWtests/test_webui_handlers.py103CODE
LOWtests/test_webui_handlers.py124CODE
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
52 more matches not shown…
Excessive Try-Catch Wrapping41 hits · 47 pts
SeverityFileLineSnippetContext
LOWwebui.py81 except Exception as e:CODE
LOWwebui.py93except Exception as e:CODE
LOWwebui.py325 except Exception as e:CODE
LOWwebui.py419 except Exception as e:CODE
LOWwebui.py495 except Exception as e:CODE
LOWwebui.py1136 except Exception as e:CODE
MEDIUMwebui.py1138 print(f"Error details: {e}")CODE
LOWwebui.py1250 except Exception as e:CODE
MEDIUMwebui.py42def _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
LOW⚡indextts/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.py116 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
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…ild_engines/build_speaker_perceiver_conditioner_trt.py72except Exception:CODE
HIGHbackends/trt/export/export_dit_onnx.py37except ValueError:CODE
HIGHbackends/trt/export/export_latent_projector_onnx.py44except ValueError:CODE
HIGHindextts/infer.py276except Exception as e:CODE
HIGHindextts/utils/model_download.py133except OSError:CODE
HIGHindextts/s2mel/modules/openvoice/utils.py141except:CODE
HIGHindextts/s2mel/modules/openvoice/utils.py192except:CODE
HIGHindextts/s2mel/modules/gpt_fast/quantize.py17except:CODE
HIGHindextts/s2mel/modules/gpt_fast/quantize.py255except: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
LOW⚡cli_tests/test_cli_v2_config.py51 (path / filename).write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_config.py57 target.write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_config.py61 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_batch.py52 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_batch.py58 target.write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_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
LOW⚡cli_tests/test_cli_v2_check.py64 target.write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_check.py68 (target / "config.json").write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_tests/test_cli_v2_check.py257 (model_dir / filename).write_text("placeholder", encoding="utf-8")CODE
LOW⚡cli_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.py181Make 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
LOW⚡indextts/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