AI Slop Code RIsk Monitor

modelscope/DiffSynth-Studio

Enjoy the magic of Diffusion models!

8.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for modelscope/DiffSynth-Studio, a Python project with 13,216 GitHub stars. SynthScan examined 166,936 lines of code across 1578 source files, recording 1238 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 8.8 (Moderate 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.

8.8
Adjusted Signal
8.8
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
13.2K
Stars
Python
Language
166.9K
Lines of Code
1.6K
Files
1.2K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 21.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.1/100 · LOW

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

Agent Over-Engineering Ratio 20.4/100 · LOW

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

PR Review Velocity Impact 36.3/100 · MEDIUM

Which changes need focused human review? 1238 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 1HIGH 38MEDIUM 34LOW 1165

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

Unused Imports386 hits · 384 pts
SeverityFileLineSnippetContext
LOWdocs/zh/Research_Tutorial/train_from_scratch.py8CODE
LOWdocs/en/Research_Tutorial/train_from_scratch.py8CODE
LOWdiffsynth/__init__.py1CODE
LOWdiffsynth/metrics/__init__.py1CODE
LOWdiffsynth/metrics/__init__.py2CODE
LOWdiffsynth/metrics/__init__.py3CODE
LOWdiffsynth/metrics/__init__.py4CODE
LOWdiffsynth/metrics/__init__.py5CODE
LOWdiffsynth/metrics/__init__.py6CODE
LOWdiffsynth/metrics/__init__.py7CODE
LOWdiffsynth/metrics/__init__.py8CODE
LOWdiffsynth/metrics/__init__.py9CODE
LOWdiffsynth/metrics/__init__.py10CODE
LOWdiffsynth/metrics/__init__.py11CODE
LOWdiffsynth/metrics/__init__.py12CODE
LOWdiffsynth/metrics/__init__.py13CODE
LOWdiffsynth/metrics/__init__.py14CODE
LOWdiffsynth/metrics/lpips.py5CODE
LOWdiffsynth/core/__init__.py1CODE
LOWdiffsynth/core/__init__.py2CODE
LOWdiffsynth/core/__init__.py3CODE
LOWdiffsynth/core/__init__.py4CODE
LOWdiffsynth/core/__init__.py5CODE
LOWdiffsynth/core/__init__.py6CODE
LOWdiffsynth/core/__init__.py7CODE
LOWdiffsynth/core/__init__.py8CODE
LOWdiffsynth/core/gradient/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py1CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py2CODE
LOWdiffsynth/core/quant/__init__.py3CODE
LOWdiffsynth/core/attention/__init__.py1CODE
LOWdiffsynth/core/attention/__init__.py1CODE
LOWdiffsynth/core/offload_training/__init__.py1CODE
LOWdiffsynth/core/loader/__init__.py1CODE
LOWdiffsynth/core/loader/__init__.py1CODE
LOWdiffsynth/core/loader/__init__.py1CODE
LOWdiffsynth/core/loader/__init__.py2CODE
LOWdiffsynth/core/loader/__init__.py2CODE
LOWdiffsynth/core/loader/__init__.py3CODE
LOWdiffsynth/core/loader/model.py6CODE
LOWdiffsynth/core/vram/__init__.py1CODE
LOWdiffsynth/core/vram/__init__.py2CODE
LOWdiffsynth/core/device/__init__.py1CODE
LOWdiffsynth/core/device/__init__.py1CODE
LOWdiffsynth/core/device/__init__.py1CODE
LOWdiffsynth/core/device/__init__.py1CODE
LOWdiffsynth/core/device/__init__.py2CODE
LOWdiffsynth/core/device/__init__.py2CODE
LOWdiffsynth/core/device/npu_compatible_device.py14CODE
LOWdiffsynth/core/data/__init__.py1CODE
326 more matches not shown…
AI Structural Patterns279 hits · 274 pts
SeverityFileLineSnippetContext
LOWdocs/zh/Research_Tutorial/train_from_scratch.py155CODE
LOWdocs/en/Research_Tutorial/train_from_scratch.py155CODE
LOWdiffsynth/metrics/hpsv3.py15CODE
LOWdiffsynth/metrics/unified_reward_edit.py20CODE
LOWdiffsynth/metrics/qwen_image_bench.py17CODE
LOWdiffsynth/core/attention/attention.py116CODE
LOWdiffsynth/core/attention/attention.py101CODE
LOWdiffsynth/core/attention/attention.py160CODE
LOWdiffsynth/core/attention/attention.py171CODE
LOWdiffsynth/core/attention/attention.py163CODE
LOWdiffsynth/core/attention/attention.py182CODE
LOWdiffsynth/core/attention/attention.py174CODE
LOWdiffsynth/core/attention/attention.py191CODE
LOWdiffsynth/core/attention/attention.py185CODE
LOWdiffsynth/core/attention/attention.py202CODE
LOWdiffsynth/core/attention/attention.py194CODE
LOWdiffsynth/core/attention/attention.py210CODE
LOWdiffsynth/core/attention/attention.py218CODE
LOWdiffsynth/core/attention/attention.py227CODE
LOWdiffsynth/core/attention/attention.py221CODE
LOWdiffsynth/core/attention/attention.py230CODE
LOWdiffsynth/core/loader/model.py11CODE
LOWdiffsynth/core/vram/layers.py10CODE
LOWdiffsynth/core/vram/layers.py38CODE
LOWdiffsynth/core/vram/layers.py95CODE
LOWdiffsynth/core/vram/layers.py214CODE
LOWdiffsynth/core/vram/layers.py296CODE
LOWdiffsynth/core/vram/layers.py375CODE
LOWdiffsynth/core/vram/layers.py446CODE
LOWdiffsynth/core/data/unified_dataset.py29CODE
LOWdiffsynth/core/data/unified_dataset.py41CODE
LOWdiffsynth/pipelines/anima_image.py74CODE
LOWdiffsynth/pipelines/stable_diffusion_xl.py90CODE
LOWdiffsynth/pipelines/ltx2_audio_video.py714CODE
LOWdiffsynth/pipelines/ltx2_audio_video.py188CODE
LOWdiffsynth/pipelines/lingbot_video.py83CODE
LOWdiffsynth/pipelines/flux_image.py1298CODE
LOWdiffsynth/pipelines/flux_image.py131CODE
LOWdiffsynth/pipelines/flux_image.py194CODE
LOWdiffsynth/pipelines/hidream_o1_image.py60CODE
LOWdiffsynth/pipelines/krea2.py280CODE
LOWdiffsynth/pipelines/krea2.py248CODE
LOWdiffsynth/pipelines/krea2.py63CODE
LOWdiffsynth/pipelines/minimax_h3_audio_video.py944CODE
LOWdiffsynth/pipelines/minimax_h3_audio_video.py94CODE
LOWdiffsynth/pipelines/wan_video.py1455CODE
LOWdiffsynth/pipelines/wan_video.py1817CODE
LOWdiffsynth/pipelines/wan_video.py1908CODE
LOWdiffsynth/pipelines/wan_video.py120CODE
LOWdiffsynth/pipelines/wan_video.py198CODE
LOWdiffsynth/pipelines/wan_video.py937CODE
LOWdiffsynth/pipelines/ace_step.py573CODE
LOWdiffsynth/pipelines/ace_step.py90CODE
LOWdiffsynth/pipelines/mova_audio_video.py348CODE
LOWdiffsynth/pipelines/mova_audio_video.py115CODE
LOWdiffsynth/pipelines/qwen_video_edit.py356CODE
LOWdiffsynth/pipelines/qwen_video_edit.py293CODE
LOWdiffsynth/pipelines/qwen_video_edit.py90CODE
LOWdiffsynth/pipelines/stable_diffusion.py66CODE
LOWdiffsynth/pipelines/ideogram4.py270CODE
219 more matches not shown…
Hyper-Verbose Identifiers232 hits · 216 pts
SeverityFileLineSnippetContext
LOWdocs/zh/API_Reference/core/quant.md249 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdocs/zh/Diffusion_Templates/Template_Model_Training.md31class DataProcessor:CODE
LOWdocs/zh/Diffusion_Templates/Template_Model_Training.md122class DataProcessor:CODE
LOWdocs/zh/Diffusion_Templates/Template_Model_Training.md147class DataProcessor:CODE
LOW…zh/Developer_Guide/Integrating_Quantization_Backend.md140 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdocs/en/API_Reference/core/quant.md249 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdocs/en/Diffusion_Templates/Template_Model_Training.md31class DataProcessor:CODE
LOWdocs/en/Diffusion_Templates/Template_Model_Training.md122class DataProcessor:CODE
LOWdocs/en/Diffusion_Templates/Template_Model_Training.md142class DataProcessor:CODE
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md140 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdiffsynth/core/gradient/gradient_checkpoint.py17def create_custom_forward_use_reentrant(module):CODE
LOWdiffsynth/core/gradient/gradient_checkpoint.py30def gradient_checkpoint_forward(CODE
LOWdiffsynth/core/quant/config.py213 def prepare_for_prequantized_load(self, model: torch.nn.Module, compute_dtype: torch.dtype = torch.bfloat16):CODE
LOWdiffsynth/core/quant/config.py260 def measure_quantization_error(self, model: torch.nn.Module, compute_device="cuda", verbose=True) -> list:CODE
LOWdiffsynth/core/quant/config.py469 def prepare_for_prequantized_load(self, model: torch.nn.Module, compute_dtype: torch.dtype = torch.bfloat16):CODE
LOWdiffsynth/core/quant/config.py528 def measure_quantization_error(self, model: torch.nn.Module, compute_device="cuda", verbose=True) -> list:CODE
LOWdiffsynth/core/quant/config.py540 def _distinct_backend_configs(self):CODE
LOWdiffsynth/core/quant/base.py74 def create_quantized_linear_shell(self, linear: torch.nn.Linear, compute_dtype: torch.dtype) -> torch.nn.Module:CODE
LOWdiffsynth/core/quant/backends/entropack.py90 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdiffsynth/core/quant/backends/torchao.py70 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdiffsynth/core/quant/backends/torchao.py134def _mx_dynamic_activation_mx_weight(elem_dtype):CODE
LOWdiffsynth/core/quant/backends/bitsandbytes.py91 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOWdiffsynth/core/quant/backends/comfy_kitchen.py233 def create_quantized_linear_shell(self, linear, compute_dtype):CODE
LOW⚡diffsynth/core/attention/attention.py61def initialize_attention_priority():CODE
LOWdiffsynth/core/attention/attention.py119def torch_sdpa_sliding_window(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, sliding_window: int, q_pattern="b n s dCODE
LOWdiffsynth/core/attention/attention.py194def flash_attention_customized_kernel(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, q_pattern="b n s d", k_pattern=CODE
LOWdiffsynth/core/offload_training/manager.py138 def _find_orphan_params_and_buffers(self, model: nn.Module, managed_param_ids: set):CODE
LOWdiffsynth/core/npu_patch/npu_fused_operator.py16def rms_norm_forward_transformers_npu(self, hidden_states):CODE
LOWdiffsynth/core/loader/config.py67 def parse_original_file_pattern(self):CODE
LOWdiffsynth/core/loader/model.py130def load_model_with_disk_offload(model_class, path, config=None, torch_dtype=torch.bfloat16, device="cpu", state_dict_coCODE
LOWdiffsynth/core/loader/file.py26def load_state_dict_from_safetensors(file_path, torch_dtype=None, device="cpu"):CODE
LOWdiffsynth/core/loader/file.py36def load_metadata_from_safetensors(file_path):CODE
LOWdiffsynth/core/loader/file.py73def convert_state_dict_keys_to_single_str(state_dict, with_shape=True):CODE
LOWdiffsynth/core/loader/file.py107def load_keys_dict_from_safetensors(file_path):CODE
LOWdiffsynth/core/loader/file.py115def convert_state_dict_to_keys_dict(state_dict):CODE
LOWdiffsynth/core/loader/file.py131def convert_keys_dict_to_single_str(state_dict, with_shape=True):CODE
LOWdiffsynth/core/vram/initialization.py6def skip_model_initialization(device=torch.device("meta")):CODE
LOWdiffsynth/core/vram/layers.py563def _materialize_root_params_from_disk(model: torch.nn.Module, disk_map: DiskMap):CODE
LOWdiffsynth/core/vram/layers.py574def enable_vram_management_recursively(model: torch.nn.Module, module_map: dict, vram_config: dict, vram_limit=None, namCODE
LOWdiffsynth/core/device/npu_compatible_device.py108def get_available_device_type():CODE
LOWdiffsynth/core/data/unified_dataset.py63 def search_for_cached_data_files(self, path):CODE
LOWdiffsynth/pipelines/stable_diffusion_xl.py311def model_fn_stable_diffusion_xl(CODE
LOWdiffsynth/pipelines/ltx2_audio_video.py387 def build_video_keyframes_mask(self, pipe, video_latent_shape):CODE
LOWdiffsynth/pipelines/ltx2_audio_video.py551 def apply_input_images_to_latents(self, latents, input_latents, input_indexes, input_strength=1.0, input_latents_vidCODE
LOWdiffsynth/pipelines/flux_image.py31 def process_single_controlnet(self, controlnet_input: ControlNetInput, conditioning: torch.Tensor, **kwargs):CODE
LOWdiffsynth/pipelines/flux_image.py481 def apply_controlnet_mask_on_latents(self, pipe, latents, mask):CODE
LOWdiffsynth/pipelines/flux_image.py488 def apply_controlnet_mask_on_image(self, pipe, image, mask):CODE
LOWdiffsynth/pipelines/flux_image.py1117 def extract_arcface_bgr_embedding(self, in_image, landmark, device):CODE
LOWdiffsynth/pipelines/flux_image.py1151 def parse_lora_encoder_inputs(self, lora_encoder_inputs):CODE
LOW⚡diffsynth/pipelines/minimax_h3_audio_video.py478 def _resolve_reference_image_shape(self, pipe: MiniMaxH3Pipeline, width: int, height: int, short_edge: int):CODE
LOW⚡diffsynth/pipelines/minimax_h3_audio_video.py482 def _resolve_reference_video_shape(self, pipe: MiniMaxH3Pipeline, width: int, height: int, short_edge: int, max_pixeCODE
LOW⚡diffsynth/pipelines/minimax_h3_audio_video.py486 def _trim_reference_video_length(self, pipe: MiniMaxH3Pipeline, frame_count: int) -> int:CODE
LOWdiffsynth/pipelines/wan_video.py1438def wantodance_get_single_freqs(freqs, frame_num, fps):CODE
LOWdiffsynth/pipelines/wan_video.py1722 def create_custom_forward_vap(block, vap):CODE
LOWdiffsynth/pipelines/ace_step.py193 def switch_noncover_condition(self, inputs_shared, inputs_posi, inputs_nega, progress_id):CODE
LOWdiffsynth/pipelines/ace_step.py422 def _get_silence_latent_slice(self, pipe, length: int) -> torch.Tensor:CODE
LOWdiffsynth/pipelines/mova_audio_video.py348def model_fn_mova_audio_video(CODE
LOWdiffsynth/pipelines/stable_diffusion.py210def model_fn_stable_diffusion(CODE
LOWdiffsynth/pipelines/qwen_image.py500 def apply_controlnet_mask_on_latents(self, pipe, latents, mask):CODE
LOWdiffsynth/pipelines/qwen_image.py507 def apply_controlnet_mask_on_image(self, pipe, image, mask):CODE
172 more matches not shown…
Cross-File Repetition30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHdocs/zh/Model_Details/Ideogram-4.md0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGHdocs/en/Model_Details/Ideogram-4.md0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGH…/model_inference_low_vram/ideogram-4-bf16-repackage.py0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGH…ideogram4/model_inference/ideogram-4-bf16-repackage.py0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGHexamples/ideogram4/model_inference/ideogram-4-fp8.py0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGHexamples/ideogram4/model_inference/ideogram-4-nf4.py0{ "high_level_description": "a medium-shot photograph of formula 1 driver max verstappen wearing his red bull racing racSTRING
HIGHdocs/en/Model_Details/MiniMax-H3.md0widen the half-open frame range [start, end) to whole clips. frames count from 0.STRING
HIGH…nimax_h3/model_inference_low_vram/MiniMax-H3-Retake.py0widen the half-open frame range [start, end) to whole clips. frames count from 0.STRING
HIGH…amples/minimax_h3/model_inference/MiniMax-H3-Retake.py0widen the half-open frame range [start, end) to whole clips. frames count from 0.STRING
HIGHdiffsynth/models/ltx2_dit.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHdiffsynth/models/flux2_dit.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHdiffsynth/models/boogu_image_dit.py0this matches the implementation in denoising diffusion probabilistic models: create sinusoidal timestep embeddings. argsSTRING
HIGHdiffsynth/configs/model_configs.py0offical model repo: https://www.modelscope.cn/models/lightricks/ltx-2 repackaged model repo: https://www.modelscope.cn/mSTRING
HIGH…s/ltx2/model_inference_low_vram/LTX-2-T2AV-OneStage.py0offical model repo: https://www.modelscope.cn/models/lightricks/ltx-2 repackaged model repo: https://www.modelscope.cn/mSTRING
HIGH…s/ltx2/model_inference_low_vram/LTX-2-T2AV-TwoStage.py0offical model repo: https://www.modelscope.cn/models/lightricks/ltx-2 repackaged model repo: https://www.modelscope.cn/mSTRING
HIGHexamples/ltx2/model_inference/LTX-2-T2AV-OneStage.py0offical model repo: https://www.modelscope.cn/models/lightricks/ltx-2 repackaged model repo: https://www.modelscope.cn/mSTRING
HIGHexamples/ltx2/model_inference/LTX-2-T2AV-TwoStage.py0offical model repo: https://www.modelscope.cn/models/lightricks/ltx-2 repackaged model repo: https://www.modelscope.cn/mSTRING
HIGH…1/model_inference_low_vram/Qwen-Image-2.1-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…n_image_21/model_inference/Qwen-Image-2.1-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…ax_h3/model_inference_low_vram/MiniMax-H3-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…les/minimax_h3/model_inference/MiniMax-H3-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…ge/model_inference_low_vram/Z-Image-Turbo-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…les/z_image/model_inference/Z-Image-Turbo-EntroPack.py0download the pre-quantized package and its json sidecar (a ready-to-use model_configs entry), return a loadable modelconSTRING
HIGH…odel_inference_low_vram/acestep15xlsft-vocals2music.py0[verse 1] 深夜的屏幕,微光在闪烁 指尖敲击着,未知的脉络 不再是孤岛,独自去摸索 这里有一片海,等待你停泊 从零到一的距离,不再遥远 丰富的模型,静候被点燃 打破围墙的界限,推倒高墙 让智慧的火花,自由地碰撞 [pre-choruSTRING
HIGH…ce_step/model_inference/acestep15xlsft-vocals2music.py0[verse 1] 深夜的屏幕,微光在闪烁 指尖敲击着,未知的脉络 不再是孤岛,独自去摸索 这里有一片海,等待你停泊 从零到一的距离,不再遥远 丰富的模型,静候被点燃 打破围墙的界限,推倒高墙 让智慧的火花,自由地碰撞 [pre-choruSTRING
HIGH…_training/validate_full/acestep15xlsft-vocals2music.py0[verse 1] 深夜的屏幕,微光在闪烁 指尖敲击着,未知的脉络 不再是孤岛,独自去摸索 这里有一片海,等待你停泊 从零到一的距离,不再遥远 丰富的模型,静候被点燃 打破围墙的界限,推倒高墙 让智慧的火花,自由地碰撞 [pre-choruSTRING
HIGHexamples/yue2/model_inference_low_vram/YuE2-Edit.py0[verse] neon fades along the lane footsteps keep the time of rain fold the night and leave it here morning has a sky to STRING
HIGHexamples/yue2/model_inference_low_vram/YuE2.py0[verse] neon fades along the lane footsteps keep the time of rain fold the night and leave it here morning has a sky to STRING
HIGHexamples/yue2/model_inference/YuE2-Edit.py0[verse] neon fades along the lane footsteps keep the time of rain fold the night and leave it here morning has a sky to STRING
HIGHexamples/yue2/model_inference/YuE2.py0[verse] neon fades along the lane footsteps keep the time of rain fold the night and leave it here morning has a sky to STRING
Deep Nesting138 hits · 135 pts
SeverityFileLineSnippetContext
LOWdiffsynth/core/quant/base.py163CODE
LOWdiffsynth/core/attention/attention.py61CODE
LOWdiffsynth/core/attention/attention.py230CODE
LOWdiffsynth/core/loader/config.py84CODE
LOWdiffsynth/core/loader/model.py11CODE
LOWdiffsynth/core/loader/file.py57CODE
LOWdiffsynth/core/loader/file.py73CODE
LOWdiffsynth/core/loader/file.py131CODE
LOWdiffsynth/core/vram/layers.py574CODE
LOWdiffsynth/core/data/operators.py325CODE
LOWdiffsynth/core/data/unified_dataset.py71CODE
LOWdiffsynth/core/data/unified_dataset.py90CODE
LOWdiffsynth/pipelines/ltx2_audio_video.py562CODE
LOWdiffsynth/pipelines/flux_image.py1298CODE
LOWdiffsynth/pipelines/flux_image.py115CODE
LOWdiffsynth/pipelines/hidream_o1_image.py166CODE
LOWdiffsynth/pipelines/minimax_music3.py42CODE
LOWdiffsynth/pipelines/minimax_h3_audio_video.py58CODE
LOWdiffsynth/pipelines/minimax_h3_audio_video.py260CODE
LOWdiffsynth/pipelines/minimax_h3_audio_video.py700CODE
LOWdiffsynth/pipelines/wan_video.py1455CODE
LOWdiffsynth/pipelines/ace_step.py486CODE
LOWdiffsynth/utils/controlnet/annotator.py10CODE
LOW…ynth/utils/state_dict_converters/ltx25_text_encoder.py1CODE
LOW…synth/utils/state_dict_converters/ltx2_text_encoder.py1CODE
LOW…synth/utils/state_dict_converters/ltx2_text_encoder.py24CODE
LOW…ffsynth/utils/state_dict_converters/flux_controlnet.py4CODE
LOW…ls/state_dict_converters/qwen_image_21_text_encoder.py1CODE
LOWdiffsynth/utils/state_dict_converters/image_metrics.py12CODE
LOWdiffsynth/utils/state_dict_converters/image_metrics.py79CODE
LOWdiffsynth/utils/state_dict_converters/image_metrics.py93CODE
LOWdiffsynth/utils/state_dict_converters/image_metrics.py107CODE
LOW…utils/state_dict_converters/minimax_h3_text_encoder.py30CODE
LOWdiffsynth/utils/state_dict_converters/flux_vae.py267CODE
LOWdiffsynth/utils/state_dict_converters/flux_vae.py326CODE
LOWdiffsynth/utils/state_dict_converters/flux_dit.py4CODE
LOWdiffsynth/utils/state_dict_converters/flux_dit.py95CODE
LOWdiffsynth/utils/state_dict_converters/ltx2_video_vae.py1CODE
LOWdiffsynth/utils/state_dict_converters/ltx2_video_vae.py16CODE
LOW…th/utils/state_dict_converters/stable_diffusion_vae.py1CODE
LOWdiffsynth/utils/lora/minimax_h3.py40CODE
LOWdiffsynth/utils/lora/sdxl.py766CODE
LOWdiffsynth/utils/lora/flux.py84CODE
LOWdiffsynth/utils/lora/flux.py113CODE
LOWdiffsynth/utils/data/minimax_h3.py79CODE
LOWdiffsynth/models/longcat_video_dit.py697CODE
LOWdiffsynth/models/yue2_vae.py395CODE
LOWdiffsynth/models/stable_diffusion_unet.py63CODE
LOWdiffsynth/models/hpsv3.py109CODE
LOWdiffsynth/models/mova_dual_tower_bridge.py136CODE
LOWdiffsynth/models/flux2_vae.py78CODE
LOWdiffsynth/models/flux2_vae.py489CODE
LOWdiffsynth/models/flux2_vae.py693CODE
LOWdiffsynth/models/flux2_vae.py743CODE
LOWdiffsynth/models/qwen_image_image2lora.py119CODE
LOWdiffsynth/models/minimax_h3_video_vae.py469CODE
LOWdiffsynth/models/minimax_h3_video_vae.py584CODE
LOWdiffsynth/models/z_image_image2lora.py103CODE
LOWdiffsynth/models/z_image_image2lora.py179CODE
LOWdiffsynth/models/mova_audio_vae.py590CODE
78 more matches not shown…
Structural Annotation Overuse33 hits · 56 pts
SeverityFileLineSnippetContext
LOWdocs/zh/Developer_Guide/Integrating_Your_Model.md5## Step 1: 集成模型结构代码COMMENT
LOWdocs/zh/Developer_Guide/Integrating_Your_Model.md80## Step 2: 模型文件格式转换COMMENT
LOWdocs/zh/Developer_Guide/Integrating_Your_Model.md105## Step 3: 编写模型 ConfigCOMMENT
LOWdocs/zh/Developer_Guide/Integrating_Your_Model.md150## Step 4: 检验模型是否能被识别和加载COMMENT
LOWdocs/zh/Developer_Guide/Integrating_Your_Model.md184## Step 5: 编写模型显存管理方案COMMENT
LOWdocs/en/Pipeline_Usage/Quantization.md344### Step 1: Save the Quantized WeightsCOMMENT
LOWdocs/en/Pipeline_Usage/Quantization.md373### Step 2: Register the Hash in the Model ConfigCOMMENT
LOWdocs/en/Pipeline_Usage/Quantization.md399### Step 3: Load for InferenceCOMMENT
LOW⚡docs/en/Training/Split_Training.md145 # Step 1: initialize X_0, the set of directly related unitsCOMMENT
LOW⚡docs/en/Training/Split_Training.md150 # Step 2: build the data dependency edges E and the updating chain c(p) of each parameterCOMMENT
LOW⚡docs/en/Training/Split_Training.md154 # Step 3: fixed-point iteration X_{k+1} = X_k ∪ F(X_k) ∪ U(X_k)COMMENT
LOW⚡docs/en/Training/Split_Training.md162 # Step 4: output the bipartition (V1, V2)COMMENT
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md22## Step 1: Write the Quantized LinearCOMMENT
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md100## Step 2: Write the BackendCOMMENT
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md154## Step 3: Write the Backend ConfigCOMMENT
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md165## Step 4: Register the Quantization MethodCOMMENT
LOW…en/Developer_Guide/Integrating_Quantization_Backend.md198## Step 5: Self-CheckCOMMENT
LOWdocs/en/Developer_Guide/Integrating_Your_Model.md5## Step 1: Integrate Model Architecture CodeCOMMENT
LOWdocs/en/Developer_Guide/Integrating_Your_Model.md80## Step 2: Model File Format ConversionCOMMENT
LOWdocs/en/Developer_Guide/Integrating_Your_Model.md105## Step 3: Writing Model ConfigCOMMENT
LOWdocs/en/Developer_Guide/Integrating_Your_Model.md150## Step 4: Verifying Whether the Model Can Be Recognized and LoadedCOMMENT
LOWdocs/en/Developer_Guide/Integrating_Your_Model.md184## Step 5: Writing Model VRAM Management SchemeCOMMENT
LOW⚡diffsynth/models/ltx2_audio_vae.py1237 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡diffsynth/models/ltx2_audio_vae.py1242 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡diffsynth/models/ltx2_audio_vae.py1246 # Step 3: Apply padding if neededCOMMENT
LOWdiffsynth/models/ltx2_audio_vae.py1258 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOWdiffsynth/models/ace_step_dit.py219 # Step 1: Self-attention with adaptive layer norm (AdaLN)COMMENT
LOWdiffsynth/models/ace_step_dit.py230 # Step 2: Cross-attention (if enabled) for conditioning on encoder outputsCOMMENT
LOWdiffsynth/models/ace_step_dit.py241 # Step 3: Feed-forward (MLP) with adaptive layer normCOMMENT
LOW⚡diffsynth/models/boogu_image_dit.py2296 # Step 3: image self-attention.COMMENT
LOW⚡diffsynth/models/boogu_image_dit.py2304 # Step 4: residual updates.COMMENT
LOWdiffsynth/models/boogu_image_dit.py2250 # Step 1: modulation for both streams.COMMENT
LOWdiffsynth/models/boogu_image_dit.py2267 # Step 2: joint attention on [instruct + img].COMMENT
Over-Commented Block48 hits · 48 pts
SeverityFileLineSnippetContext
LOWdocs/zh/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/zh/conf.py81#COMMENT
LOWdocs/zh/conf.py101# html_theme_path = [sphinx_book_theme.get_html_theme_path()]COMMENT
LOWdocs/en/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/en/conf.py81#COMMENT
LOWdocs/en/conf.py101# html_theme_path = [sphinx_book_theme.get_html_theme_path()]COMMENT
LOWdiffsynth/version.py1# Make sure to modify __release_datetime__ to release time when making official release.COMMENT
LOWdiffsynth/models/stable_diffusion_unet.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOWdiffsynth/models/flux2_vae.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOWdiffsynth/models/ace_step_conditioner.py1# Copyright 2025 The ACESTEO Team. All rights reserved.COMMENT
LOWdiffsynth/models/ace_step_vae.py1# Copyright 2025 The ACESTEO Team. All rights reserved.COMMENT
LOWdiffsynth/models/ace_step_dit.py1# Copyright 2025 The ACESTEO Team. All rights reserved.COMMENT
LOWdiffsynth/models/hidream_o1_image_dit.py1# Copyright 2025 The Qwen Team and The HuggingFace Inc. team. All rights reserved.COMMENT
LOWdiffsynth/models/ace_step_tokenizer.py1# Copyright 2025 The ACESTEO Team. All rights reserved.COMMENT
LOWdiffsynth/models/stable_diffusion_vae.py1# Copyright 2025 The HuggingFace Team. All rights reserved.COMMENT
LOW…es/qwen_image_21/model_training/lora/Qwen-Image-2.1.sh21# modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "qwen_image/Qwen-Image-Edit-2511/*"COMMENT
LOW…n_image_21/model_training/lora/Qwen-Image-2.1-Turbo.sh21# EditCOMMENT
LOW…s/ltx2/model_inference_low_vram/LTX-2-T2AV-TwoStage.py41# use the following modelconfig if you want to initialize model from offical checkpoints from "Lightricks/LTX-2"COMMENT
LOWexamples/ltx2/model_inference/LTX-2-T2AV-TwoStage.py41# pipe = LTX2AudioVideoPipeline.from_pretrained(COMMENT
LOWexamples/ltx2/model_training/lora/LTX-2-T2AV-noaudio.sh1modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "ltx2/LTX-2-T2AV-noaudio/*" --local_dCOMMENT
LOWexamples/ltx2/model_training/lora/LTX-2-T2AV-splited.sh1modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "ltx2/LTX-2-T2AV-splited/*" --local_dCOMMENT
LOW…ples/flux2/model_training/full/FLUX.2-klein-base-9B.sh21COMMENT
LOWexamples/flux2/model_training/full/FLUX.2-klein-4B.sh21# accelerate launch examples/flux2/model_training/train.py \COMMENT
LOWexamples/flux2/model_training/full/FLUX.2-klein-9B.sh21COMMENT
LOW…s/flux2/model_training/full/TreeAdapter-KleinBase4B.sh1# TreeAdapter-KleinBase4B is a multi-LoRA system that supports inference only.COMMENT
LOW…ples/flux2/model_training/full/FLUX.2-klein-base-4B.sh21# accelerate launch examples/flux2/model_training/train.py \COMMENT
LOW…l_training/special/npu_training/FLUX.2-klein-9B-NPU.sh21# EditCOMMENT
LOW…ples/flux2/model_training/lora/FLUX.2-klein-base-9B.sh21# modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "qwen_image/Qwen-Image-Edit-2511/*"COMMENT
LOWexamples/flux2/model_training/lora/FLUX.2-klein-4B.sh21# modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "qwen_image/Qwen-Image-Edit-2511/*"COMMENT
LOWexamples/flux2/model_training/lora/FLUX.2-klein-9B.sh21# modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "qwen_image/Qwen-Image-Edit-2511/*"COMMENT
LOW…ples/flux2/model_training/lora/FLUX.2-klein-base-4B.sh21# modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "qwen_image/Qwen-Image-Edit-2511/*"COMMENT
LOW…image/model_inference_low_vram/Qwen-Image-Edit-2509.py41# edit_image = [Image.open("image.jpg")]COMMENT
LOW…l_inference_low_vram/Qwen-Image-Edit-2511-Lightning.py61# edit_image = [Image.open("image.jpg")]COMMENT
LOW…s/qwen_image/model_inference/FireRed-Image-Edit-1.1.py41# edit_image = [Image.open("image.jpg")]COMMENT
LOW…s/qwen_image/model_inference/FireRed-Image-Edit-1.0.py41# edit_image = [Image.open("image.jpg")]COMMENT
LOW…les/qwen_image/model_inference/Qwen-Image-Edit-2511.py41# Please use a list to input `edit_image`, even if the input contains only one image.COMMENT
LOW…training/full/Qwen-Image-Blockwise-ControlNet-Canny.sh21# and then start training with a high learning rate (1e-3).COMMENT
LOW…aining/full/Qwen-Image-Blockwise-ControlNet-Inpaint.sh21# and then start training with a high learning rate (1e-3).COMMENT
LOW…training/full/Qwen-Image-Blockwise-ControlNet-Depth.sh21# and then start training with a high learning rate (1e-3).COMMENT
LOW…_video/model_inference/lingbot-video-dense-1.3b_t2v.py61# from examples.lingbot_video.model_training.scripts.prompt_rewriter import rewrite_promptCOMMENT
LOW…m_o1_image/model_training/full/HiDream-O1-Image-Dev.sh21# --dataset_base_path data/diffsynth_example_dataset/qwen_image/Qwen-Image-Edit-2511 \COMMENT
LOW…dream_o1_image/model_training/full/HiDream-O1-Image.sh21# --dataset_base_path data/diffsynth_example_dataset/qwen_image/Qwen-Image-Edit-2511 \COMMENT
LOW…m_o1_image/model_training/lora/HiDream-O1-Image-Dev.sh21COMMENT
LOW…dream_o1_image/model_training/lora/HiDream-O1-Image.sh21COMMENT
LOW…mples/z_image/model_training/full/Z-Image-Omni-Base.sh21# accelerate launch --config_file examples/z_image/model_training/full/accelerate_config.yaml examples/z_image/model_traCOMMENT
LOW…mage/model_training/validate_lora/Z-Image-Omni-Base.py21image.save("image.jpg")COMMENT
LOW…mage/model_training/validate_full/Z-Image-Omni-Base.py21image = pipe(prompt=prompt, seed=42, rand_device="cuda", num_inference_steps=40, cfg_scale=4)COMMENT
LOW…mples/z_image/model_training/lora/Z-Image-Omni-Base.sh21# Image(s) to image trainingCOMMENT
Decorative Section Separators14 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMdiffsynth/models/ltx2_audio_vae.py1290# ---------------------------------------------------------------------------COMMENT
MEDIUMdiffsynth/models/ltx2_audio_vae.py1293# ---------------------------------------------------------------------------COMMENT
MEDIUMdiffsynth/models/yue2_mot.py58# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py60# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py122# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py124# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py309# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py311# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py354# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py356# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py405# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py407# ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMdiffsynth/models/yue2_mot.py497 # ── AR forward (standard causal LM, KV cached) ───────────────────COMMENT
MEDIUMdiffsynth/models/yue2_mot.py608 # ── NAR velocity (flow matching, no KV cache) ────────────────────COMMENT
Excessive Try-Catch Wrapping28 hits · 36 pts
SeverityFileLineSnippetContext
LOWdiffsynth/core/quant/config.py31 except Exception as error:CODE
LOWdiffsynth/core/quant/base.py154 except Exception as error:CODE
LOWdiffsynth/core/quant/base.py235 except Exception as error:CODE
LOWdiffsynth/core/quant/backends/comfy_kitchen.py183 except Exception as error:CODE
MEDIUMdiffsynth/core/quant/backends/comfy_kitchen.py180def _parse_marker(marker_tensor, layer_name):CODE
LOW⚡diffsynth/core/attention/attention.py10 except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py18except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py24except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py30except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py36except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py42except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py49except Exception:CODE
LOW⚡diffsynth/core/attention/attention.py57except Exception:CODE
LOWdiffsynth/core/offload_training/memory_buffer.py135 except Exception:CODE
LOWdiffsynth/core/data/operators.py23 except Exception as e:CODE
LOWdiffsynth/core/data/operators.py310 except Exception as e:CODE
LOWdiffsynth/core/data/operators.py339 except Exception as e:CODE
LOWdiffsynth/pipelines/ace_step.py449 except Exception as e:CODE
LOWdiffsynth/utils/data/__init__.py209 except Exception as e:CODE
LOWdiffsynth/models/flux2_vae.py808 except Exception as e:STRING
LOWdiffsynth/models/unified_reward_edit.py269 except Exception:CODE
LOWdiffsynth/diffusion/runner.py29 except Exception as e:CODE
LOWdiffsynth/diffusion/runner.py49 except Exception as e:CODE
LOW…ingbot_video/model_training/scripts/prompt_rewriter.py98 except Exception:CODE
LOW…ingbot_video/model_training/scripts/prompt_rewriter.py104 except Exception:CODE
LOW⚡examples/dev_tools/webui.py39 except Exception as e:CODE
MEDIUM⚡examples/dev_tools/webui.py41 print(f"Error {error_value}:\n{error_message}")CODE
MEDIUMexamples/dev_tools/webui.py36def catch_error(error_value):CODE
Self-Referential Comments13 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMdiffsynth/models/qwen_image_21_vae.py401 # Create the componentsSTRING
MEDIUMdiffsynth/models/flux_vae.py11 # Create a mask with shape (height, width).COMMENT
MEDIUMdiffsynth/models/qwen_image_vae.py318 # Create the componentsSTRING
MEDIUMdiffsynth/models/ltx2_video_vae.py133 # Create a tensor containing the size of a single patch:COMMENT
MEDIUMdiffsynth/models/ltx2_video_vae.py216 # Define the size of the channels after the first convolutionCOMMENT
MEDIUM…les/flux/model_inference_low_vram/FLUX.1-dev-EliGen.py19 # Create a blank image for overlaysCOMMENT
MEDIUMexamples/flux/model_inference/FLUX.1-dev-EliGen.py9 # Create a blank image for overlaysCOMMENT
MEDIUM…en_image/model_inference_low_vram/Qwen-Image-EliGen.py9 # Create a blank image for overlaysCOMMENT
MEDIUM…image/model_inference_low_vram/Qwen-Image-EliGen-V2.py8 # Create a blank image for overlaysCOMMENT
MEDIUM…e/model_inference_low_vram/Qwen-Image-EliGen-Poster.py9 # Create a blank image for overlaysCOMMENT
MEDIUM…amples/qwen_image/model_inference/Qwen-Image-EliGen.py9 # Create a blank image for overlaysCOMMENT
MEDIUM…les/qwen_image/model_inference/Qwen-Image-EliGen-V2.py8 # Create a blank image for overlaysCOMMENT
MEDIUM…qwen_image/model_inference/Qwen-Image-EliGen-Poster.py9 # Create a blank image for overlaysCOMMENT
Empty Error Handlers6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHdiffsynth/core/npu_patch/npu_fused_operator.py5except:CODE
HIGHdiffsynth/models/unified_reward_edit.py269except Exception:CODE
HIGHdiffsynth/models/ltx25_diffusion_video_vae.py4989except ValueError:CODE
HIGHdiffsynth/models/qwen_image_bench.py318except json.JSONDecodeError:CODE
HIGHdiffsynth/models/qwen_image_bench.py324except json.JSONDecodeError:CODE
HIGH…ingbot_video/model_training/scripts/prompt_rewriter.py98except Exception:CODE
Verbosity Indicators11 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡diffsynth/models/ltx2_audio_vae.py1237 # Step 1: Crop first to avoid exceeding target dimensionsCOMMENT
LOW⚡diffsynth/models/ltx2_audio_vae.py1242 # Step 2: Calculate padding needed for time and frequency dimensionsCOMMENT
LOW⚡diffsynth/models/ltx2_audio_vae.py1246 # Step 3: Apply padding if neededCOMMENT
LOWdiffsynth/models/ltx2_audio_vae.py1258 # Step 4: Final safety crop to ensure exact target shapeCOMMENT
LOWdiffsynth/models/ace_step_dit.py219 # Step 1: Self-attention with adaptive layer norm (AdaLN)COMMENT
LOWdiffsynth/models/ace_step_dit.py230 # Step 2: Cross-attention (if enabled) for conditioning on encoder outputsCOMMENT
LOWdiffsynth/models/ace_step_dit.py241 # Step 3: Feed-forward (MLP) with adaptive layer normCOMMENT
LOW⚡diffsynth/models/boogu_image_dit.py2296 # Step 3: image self-attention.COMMENT
LOW⚡diffsynth/models/boogu_image_dit.py2304 # Step 4: residual updates.COMMENT
LOWdiffsynth/models/boogu_image_dit.py2250 # Step 1: modulation for both streams.COMMENT
LOWdiffsynth/models/boogu_image_dit.py2267 # Step 2: joint attention on [instruct + img].COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdiffsynth/models/qwen_image_21_text_encoder.py96 self.model.model.language_model.norm.register_forward_hook(hook_fn)CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdiffsynth/models/nexus_gen_ar_model.py118 Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation:STRING
HIGHdiffsynth/models/anima_dit.py944 Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. ArgSTRING
Modern Structural Boilerplate10 hits · 8 pts
SeverityFileLineSnippetContext
LOWdiffsynth/metrics/__init__.py17__all__ = [CODE
LOW⚡diffsynth/models/ltx2_dit.py1619 def set_gradient_checkpointing(self, enable: bool) -> None:CODE
LOWdiffsynth/models/flux2_vae.py726 def set_use_npu_flash_attention(self, use_npu_flash_attention: bool) -> None:STRING
LOWdiffsynth/models/flux2_vae.py889 def set_attention_slice(self, slice_size: int) -> None:STRING
LOWdiffsynth/models/flux2_vae.py917 def set_processor(self, processor: "AttnProcessor") -> None:STRING
LOWdiffsynth/models/minimax_h3_video_vae.py621__all__ = ["MiniMaxH3VideoVAE"]CODE
LOWdiffsynth/models/ltx25_diffusion_video_vae.py3271__all__ = [CODE
LOWdiffsynth/models/nexus_gen_ar_model.py932__all__ = ["Qwen2_5_VLForConditionalGeneration", "Qwen2_5_VLModel", "Qwen2_5_VLPreTrainedModel"]STRING
LOWdiffsynth/models/nexus_gen_ar_model.py1143__all__ = ["Qwen2_5_VLProcessor"]STRING
LOWdiffsynth/models/boogu_image_dit.py180 def set_processor(self, processor) -> None:CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdiffsynth/pipelines/joyai_image.py200CODE
MEDIUMdiffsynth/models/z_image_dit.py991CODE
MEDIUMdiffsynth/models/clip.py58CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/ltx2/model_inference/LTX-2.3-I2AV-TwoStage.py69# This example uses the first and last frames for demonstration. However, you can use any frames by setting input_imagesCOMMENT
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdiffsynth/pipelines/flux2_image.py442 # Check if Qwen3 text encoder is availableCOMMENT
LOWdiffsynth/models/ltx2_video_vae.py2082 # Check if current temporal slice overlaps with previous temporal sliceSTRING
AI Slop Vocabulary1 hit · 0 pts
SeverityFileLineSnippetContext
LOWdiffsynth/models/flux2_vae.py975 # here we simply pass along all tensors to the selected processor classSTRING