AI Slop Code Risk Monitor

PKU-YuanGroup/Open-Sora-Plan

SlopCodeMonitor badge for PKU-YuanGroup/Open-Sora-Plan Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

This project aim to reproduce Sora (Open AI T2V model), we wish the open source community contribute to this project.

18.7 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for PKU-YuanGroup/Open-Sora-Plan, a Python project with 12,200 GitHub stars. SynthScan examined 30,664 lines of code across 174 source files, recording 564 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 18.7 (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.

18.7
Adjusted Signal
18.7
Raw Pattern Score
100%
Time Factor
2026-11-18
Last Push
12.2K
Stars
Python
Language
30.7K
Lines of Code
174
Files
564
Pattern Hits
2026-11-18
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-18.

Cognitive Ownership Risk 34.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 32.5/100 · MEDIUM

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

Agent Over-Engineering Ratio 32.6/100 · MEDIUM

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

PR Review Velocity Impact 64.2/100 · HIGH

Which changes need focused human review? 564 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 6MEDIUM 18LOW 540

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 564 distinct pattern matches across 16 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 Imports247 hits · 242 pts
SeverityFileLineSnippetContext
LOWexamples/rec_image.py5CODE
LOWexamples/rec_image.py6CODE
LOWexamples/rec_video.py1CODE
LOWexamples/rec_video.py2CODE
LOWexamples/rec_video.py4CODE
LOWexamples/rec_video.py10CODE
LOWexamples/rec_video.py12CODE
LOWopensora/npu_config.py2CODE
LOWopensora/npu_config.py9CODE
LOWopensora/npu_config.py10CODE
LOWopensora/npu_config.py12CODE
LOWopensora/npu_config.py20CODE
LOWopensora/npu_config.py89CODE
LOWopensora/npu_config.py90CODE
LOWopensora/npu_config.py94CODE
LOWopensora/acceleration/parallel_states.py1CODE
LOWopensora/acceleration/parallel_states.py2CODE
LOWopensora/dataset/__init__.py2CODE
LOWopensora/dataset/__init__.py5CODE
LOWopensora/dataset/__init__.py14CODE
LOWopensora/dataset/__init__.py15CODE
LOWopensora/dataset/__init__.py15CODE
LOWopensora/dataset/__init__.py61CODE
LOWopensora/dataset/__init__.py62CODE
LOWopensora/dataset/__init__.py65CODE
LOWopensora/dataset/t2v_datasets.py2CODE
LOWopensora/dataset/t2v_datasets.py13CODE
LOWopensora/dataset/t2v_datasets.py13CODE
LOWopensora/dataset/t2v_datasets.py13CODE
LOWopensora/dataset/t2v_datasets.py15CODE
LOWopensora/dataset/t2v_datasets.py17CODE
LOWopensora/dataset/t2v_datasets.py24CODE
LOWopensora/dataset/t2v_datasets.py26CODE
LOWopensora/dataset/t2v_datasets.py26CODE
LOWopensora/dataset/t2v_datasets.py30CODE
LOWopensora/dataset/t2v_datasets.py32CODE
LOWopensora/dataset/t2v_datasets.py34CODE
LOWopensora/dataset/t2v_datasets.py38CODE
LOWopensora/dataset/transform.py4CODE
LOWopensora/dataset/transform.py4CODE
LOWopensora/dataset/transform.py5CODE
LOWopensora/dataset/inpaint_dataset.py1CODE
LOWopensora/dataset/inpaint_dataset.py2CODE
LOWopensora/dataset/inpaint_dataset.py10CODE
LOWopensora/dataset/inpaint_dataset.py11CODE
LOWopensora/dataset/inpaint_dataset.py12CODE
LOWopensora/dataset/inpaint_dataset.py13CODE
LOWopensora/dataset/inpaint_dataset.py13CODE
LOWopensora/dataset/inpaint_dataset.py13CODE
LOWopensora/dataset/inpaint_dataset.py15CODE
LOWopensora/dataset/inpaint_dataset.py17CODE
LOWopensora/dataset/inpaint_dataset.py18CODE
LOWopensora/dataset/inpaint_dataset.py20CODE
LOWopensora/dataset/inpaint_dataset.py21CODE
LOWopensora/dataset/inpaint_dataset.py22CODE
LOWopensora/dataset/inpaint_dataset.py24CODE
LOWopensora/dataset/inpaint_dataset.py25CODE
LOWopensora/dataset/inpaint_dataset.py26CODE
LOWopensora/dataset/inpaint_dataset.py26CODE
LOWopensora/dataset/inpaint_dataset.py26CODE
187 more matches not shown…
Hyper-Verbose Identifiers159 hits · 137 pts
SeverityFileLineSnippetContext
LOWopensora/npu_config.py353 def scaled_dot_product_attention(self, query, key, value, input_layout, head_num=None,CODE
LOW⚡opensora/acceleration/parallel_states.py20def initialize_sequence_parallel_state(sequence_parallel_size):CODE
LOW⚡opensora/acceleration/parallel_states.py26def set_sequence_parallel_state(state):CODE
LOW⚡opensora/acceleration/parallel_states.py30def get_sequence_parallel_state():CODE
LOW⚡opensora/acceleration/parallel_states.py33def initialize_sequence_parallel_group(sequence_parallel_size):CODE
LOWopensora/acceleration/parallel_states.py55def destroy_sequence_parallel_group():CODE
LOWopensora/dataset/t2v_datasets.py42def filter_json_by_existed_files(directory, data, postfix=".mp4"):CODE
LOWopensora/dataset/transform.py100def center_crop_using_short_edge(clip):CODE
LOWopensora/dataset/transform.py758def add_webvid_watermark_notice(caption):CODE
LOWopensora/dataset/transform.py762def add_aesthetic_notice_video(caption, aesthetic_score):CODE
LOW⚡opensora/dataset/transform.py773def add_aesthetic_notice_image(caption, aesthetic_score):CODE
LOW⚡opensora/dataset/transform.py782def add_high_aesthetic_notice_image(caption):CODE
LOW⚡opensora/dataset/transform.py786def add_high_aesthetic_notice_image_human(caption):CODE
LOWopensora/dataset/virtual_disk.py193 def download_and_convert_to_pickle(self, bucket, object_name, local_path):CODE
LOW⚡opensora/utils/parallel_states.py13def initialize_sequence_parallel_state(sequence_parallel_size):CODE
LOW⚡opensora/utils/parallel_states.py19def set_sequence_parallel_state(state):CODE
LOW⚡opensora/utils/parallel_states.py23def get_sequence_parallel_state():CODE
LOW⚡opensora/utils/parallel_states.py26def initialize_sequence_parallel_group(sequence_parallel_size):CODE
LOWopensora/utils/parallel_states.py42def destroy_sequence_parallel_group():CODE
LOWopensora/utils/freeinit_utils.py77def butterworth_low_pass_filter(shape, n=4, d_s=0.25, d_t=0.25):CODE
LOWopensora/utils/dataset_utils.py260def get_length_grouped_indices(lengths, batch_size, world_size, gradient_accumulation_size, initial_global_step, generatCODE
LOWopensora/utils/utils.py47def explicit_uniform_sampling(T, n, rank, bsz, device):CODE
LOWopensora/utils/sample_utils.py222def run_model_and_save_samples(args, pipeline, caption_refiner_model=None, enhance_video_model=None):CODE
LOWopensora/utils/sample_utils.py417def run_model_and_save_samples_npu(args, pipeline, caption_refiner_model=None, enhance_video_model=None):STRING
LOWopensora/models/causalvideovae/dataset/transform.py95def center_crop_using_short_edge(clip):CODE
LOW…/models/causalvideovae/model/losses/perceptual_loss.py23def hinge_d_loss_with_exemplar_weights(logits_real, logits_fake, weights):CODE
LOW…/models/causalvideovae/model/losses/perceptual_loss.py97 def calculate_adaptive_weight(self, nll_loss, g_loss, last_layer=None):CODE
LOWopensora/models/causalvideovae/eval/fvd/videogpt/fvd.py68def _symmetric_matrix_square_root(mat, eps=1e-10):CODE
LOWopensora/models/frame_interpolation/interpolation.py56def get_input_video_from_path(input_path, device="cuda"):CODE
LOW…ora/models/diffusion/opensora_v1_3/modeling_inpaint.py88 def _init_patched_inputs_for_inpainting(self):CODE
LOW…ora/models/diffusion/opensora_v1_3/modeling_inpaint.py114 def _operate_on_patched_inputs(self, hidden_states, encoder_hidden_states, timestep, batch_size, frame):CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py114 def _set_gradient_checkpointing(self, module, value=False):CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py253 def _operate_on_patched_inputs(self, hidden_states, encoder_hidden_states, timestep, batch_size, frame):CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py270 def _get_output_for_patched_inputs(CODE
LOW⚡opensora/adaptor/stage_1_and_2.py874 def get_gradient_for_reduction(self, param):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py880 def get_param_gradient_attribute(self, param):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py890 def create_reduce_and_remove_grad_hooks(self):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py899 def reduce_partition_and_remove_grads(*notneeded):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py1163 def update_overflow_tracker_for_param_grad(self, param):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py1168 def _get_offload_gradient_dict(self):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py1178 def async_accumulate_grad_in_cpu_via_gpu(self, param):CODE
LOW⚡opensora/adaptor/stage_1_and_2.py1187 def buffer_to_accumulate_to_in_cpu():CODE
LOWopensora/adaptor/stage_1_and_2.py104def all_gather_into_tensor_dp_groups(groups_flat, partitioned_param_groups, zp_process_group):CODE
LOWopensora/adaptor/stage_1_and_2.py561 def _enable_universal_checkpoint(self):CODE
LOWopensora/adaptor/stage_1_and_2.py668 def initialize_optimizer_states(self):CODE
LOWopensora/adaptor/stage_1_and_2.py727 def initialize_gradient_partitioning_data_structures(self):CODE
LOWopensora/adaptor/stage_1_and_2.py751 def independent_gradient_partition_epilogue(self):CODE
LOWopensora/adaptor/stage_1_and_2.py799 def reset_partition_gradient_structures(self):CODE
LOWopensora/adaptor/stage_1_and_2.py809 def initialize_gradient_partition(self, i, param_group, partition_id):CODE
LOWopensora/adaptor/stage_1_and_2.py860 def overlapping_partition_gradients_reduce_epilogue(self):CODE
LOWopensora/adaptor/stage_1_and_2.py863 def fill_grad_accum_attribute(self):CODE
LOWopensora/adaptor/stage_1_and_2.py919 def flatten_dense_tensors_aligned(self, tensor_list, alignment):CODE
LOWopensora/adaptor/stage_1_and_2.py923 def reduce_independent_p_g_buckets_and_remove_grads(self, param, i):CODE
LOWopensora/adaptor/stage_1_and_2.py966 def gradient_reduction_w_predivide(self, tensor):CODE
LOWopensora/adaptor/stage_1_and_2.py993 def allreduce_and_copy_with_multiple_ranks(self,CODE
LOWopensora/adaptor/stage_1_and_2.py1240 def set_norm_for_param_grad_in_gpu(self, param):CODE
LOWopensora/adaptor/stage_1_and_2.py1273 def complete_grad_norm_calculation_for_cpu_offload(self, params):CODE
LOWopensora/adaptor/stage_1_and_2.py1936 def _average_expert_grad_norms(self, norm_groups):CODE
LOWopensora/adaptor/stage_1_and_2.py1974 def has_overflow_partitioned_grads_serial(self):CODE
LOWopensora/adaptor/stage_1_and_2.py2102 def _get_groups_without_padding(self, groups_with_padding):CODE
99 more matches not shown…
Deep Nesting61 hits · 51 pts
SeverityFileLineSnippetContext
LOWopensora/npu_config.py204CODE
LOWopensora/dataset/t2v_datasets.py360CODE
LOWopensora/utils/taming_download.py20CODE
LOWopensora/utils/taming_download.py64CODE
LOWopensora/utils/freeinit_utils.py34CODE
LOWopensora/utils/utils.py240CODE
LOWopensora/utils/sample_utils.py38CODE
LOWopensora/utils/sample_utils.py222CODE
LOWopensora/utils/sample_utils.py255CODE
LOWopensora/utils/lora_utils.py22CODE
LOWopensora/models/causalvideovae/eval/cal_ssim.py26CODE
LOWopensora/models/causalvideovae/eval/eval.py85CODE
LOWopensora/models/frame_interpolation/utils/utils.py98CODE
LOWopensora/models/frame_interpolation/utils/utils.py109CODE
LOW…models/frame_interpolation/networks/blocks/feat_enc.py6CODE
LOW…models/frame_interpolation/networks/blocks/feat_enc.py65CODE
LOW…models/frame_interpolation/networks/blocks/feat_enc.py118CODE
LOW…models/frame_interpolation/networks/blocks/feat_enc.py192CODE
LOW…models/frame_interpolation/networks/blocks/feat_enc.py268CODE
LOWopensora/adaptor/stage_1_and_2.py694CODE
LOWopensora/adaptor/stage_1_and_2.py751CODE
LOWopensora/adaptor/stage_1_and_2.py863CODE
LOWopensora/adaptor/stage_1_and_2.py1033CODE
LOWopensora/adaptor/stage_1_and_2.py1352CODE
LOWopensora/adaptor/stage_1_and_2.py1626CODE
LOWopensora/adaptor/bf16_optimizer.py326CODE
LOWopensora/adaptor/engine.py1075CODE
LOWopensora/adaptor/engine.py1155CODE
LOWopensora/adaptor/engine.py1210CODE
LOWopensora/adaptor/engine.py1258CODE
LOWopensora/adaptor/engine.py1466CODE
LOWopensora/adaptor/engine.py1757CODE
LOWopensora/adaptor/engine.py1920CODE
LOWopensora/adaptor/engine.py2118CODE
LOWopensora/adaptor/engine.py2525CODE
LOWopensora/adaptor/engine.py2963CODE
LOWopensora/adaptor/engine.py3117CODE
LOWopensora/adaptor/engine.py3445CODE
LOWopensora/adaptor/engine.py3463CODE
LOWopensora/adaptor/utils.py158CODE
LOWopensora/adaptor/utils.py182CODE
LOWopensora/adaptor/utils.py342CODE
LOWopensora/adaptor/utils.py593CODE
LOWopensora/adaptor/utils.py855CODE
LOWopensora/adaptor/utils.py211CODE
LOWopensora/adaptor/utils.py243CODE
LOWopensora/adaptor/utils.py268CODE
LOWopensora/sample/pipeline_inpaint.py213CODE
LOWopensora/sample/pipeline_inpaint.py293CODE
LOWopensora/sample/pipeline_opensora.py149CODE
LOWopensora/sample/pipeline_opensora.py340CODE
LOWopensora/sample/pipeline_opensora.py465CODE
LOWopensora/train/train_causalvae.py134CODE
LOWopensora/train/train_causalvae.py210CODE
LOWopensora/train/train_inpaint.py95CODE
LOWopensora/train/train_inpaint.py556CODE
LOWopensora/train/train_t2v_diffusers.py165CODE
LOWopensora/train/train_t2v_diffusers.py617CODE
LOWopensora/train/train_t2v_diffusers.py668CODE
LOWopensora/serve/gradio_web_server.py24CODE
1 more matches not shown…
Excessive Try-Catch Wrapping23 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMopensora/dataset/t2v_datasets.py235 print(f'Error with {e}')CODE
MEDIUMopensora/dataset/t2v_datasets.py162def get_batch(self, frame_indices):CODE
MEDIUMopensora/dataset/t2v_datasets.py226def __getitem__(self, idx):CODE
LOWopensora/dataset/t2v_datasets.py168 except Exception as e:CODE
LOWopensora/dataset/t2v_datasets.py232 except Exception as e:CODE
MEDIUMopensora/dataset/inpaint_dataset.py95 print(f'Error with {e}')CODE
MEDIUMopensora/dataset/inpaint_dataset.py86def __getitem__(self, idx):CODE
LOWopensora/dataset/inpaint_dataset.py92 except Exception as e:CODE
LOWopensora/dataset/virtual_disk.py106 except Exception as e:CODE
MEDIUMopensora/dataset/virtual_disk.py107 print(f"An error occurred: {e}")CODE
LOWopensora/dataset/virtual_disk.py138 except Exception as e:CODE
MEDIUMopensora/dataset/virtual_disk.py139 print(f"An error occurred: {e}")CODE
LOWopensora/dataset/virtual_disk.py152 except Exception as e:CODE
MEDIUMopensora/dataset/virtual_disk.py153 print(f"An error occurred while checking if tmpfs is mounted: {e}")CODE
MEDIUMopensora/dataset/virtual_disk.py95def create_ramdisk(self):CODE
MEDIUMopensora/dataset/virtual_disk.py131def unmount_ramdisk(self):CODE
MEDIUMopensora/dataset/virtual_disk.py146def is_tmpfs_mounted(self):CODE
LOWopensora/models/causalvideovae/dataset/video_dataset.py128 except Exception as e:CODE
MEDIUMopensora/models/causalvideovae/dataset/video_dataset.py129 print(f"Error with {e}, {video_path}")CODE
LOW…nsora/models/causalvideovae/model/dataset_videobase.py87 except Exception as e:CODE
MEDIUM…nsora/models/causalvideovae/model/dataset_videobase.py88 print(f'Error with {e}, {video_path}')CODE
LOWopensora/models/causalvideovae/model/modules/wavelet.py11except Exception as e:CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py364 except Exception as e:CODE
AI Structural Patterns36 hits · 34 pts
SeverityFileLineSnippetContext
LOWopensora/acceleration/communications.py83CODE
LOWopensora/dataset/t2v_datasets.py136CODE
LOWopensora/utils/ema.py28CODE
LOWopensora/utils/communications.py72CODE
LOW…/models/causalvideovae/model/losses/perceptual_loss.py58CODE
LOWopensora/models/causalvideovae/model/losses/lpips.py111CODE
LOW…ora/models/causalvideovae/model/utils/wavelet_utils.py87CODE
LOW…a/models/causalvideovae/model/utils/scheduler_utils.py7CODE
LOWopensora/models/causalvideovae/model/modules/conv.py19CODE
LOW…/models/causalvideovae/model/vae/modeling_causalvae.py23CODE
LOW…/models/causalvideovae/model/vae/modeling_causalvae.py152CODE
LOW…/models/causalvideovae/model/vae/modeling_causalvae.py274CODE
LOW…sora/models/causalvideovae/model/vae/modeling_wfvae.py37CODE
LOW…sora/models/causalvideovae/model/vae/modeling_wfvae.py156CODE
LOW…sora/models/causalvideovae/model/vae/modeling_wfvae.py319CODE
LOWopensora/models/causalvideovae/eval/cal_ssim.py95CODE
LOWopensora/models/causalvideovae/eval/cal_fvd.py63CODE
LOWopensora/models/causalvideovae/eval/cal_psnr.py80CODE
LOWopensora/models/causalvideovae/eval/cal_lpips.py78CODE
LOWopensora/models/frame_interpolation/utils/flow_utils.py16CODE
LOW…a/models/frame_interpolation/networks/blocks/ifrnet.py53CODE
LOWopensora/models/prompt_refiner/merge.py64CODE
LOWopensora/models/diffusion/opensora_v1_3/modules.py317CODE
LOW…ora/models/diffusion/opensora_v1_3/modeling_inpaint.py26CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py30CODE
LOW…ra/models/diffusion/opensora_v1_3/modeling_opensora.py289CODE
LOWopensora/adaptor/stage_1_and_2.py133CODE
LOWopensora/adaptor/bf16_optimizer.py36CODE
LOWopensora/adaptor/engine.py180CODE
LOWopensora/sample/pipeline_inpaint.py116CODE
LOWopensora/sample/pipeline_inpaint.py293CODE
LOWopensora/sample/caption_refiner.py37CODE
LOWopensora/sample/pipeline_opensora.py149CODE
LOWopensora/sample/pipeline_opensora.py340CODE
LOWopensora/sample/pipeline_opensora.py465CODE
LOWopensora/serve/gradio_web_server_i2v.py24CODE
Over-Commented Block18 hits · 17 pts
SeverityFileLineSnippetContext
LOWexamples/rec_video.py81COMMENT
LOWopensora/__init__.py1# COMMENT
LOWopensora/dataset/virtual_disk.py161 """COMMENT
LOWopensora/utils/dataset_utils.py281 # megabatches = [sorted(megabatch, key=lambda i: lengths[i], reverse=True) for megabatch in megabatches]COMMENT
LOWopensora/utils/dataset_utils.py301COMMENT
LOWopensora/utils/sample_utils.py421 # aic_metrics=torch_npu.profiler.AiCMetrics.PipeUtilizationCOMMENT
LOW…ra/models/causalvideovae/model/losses/discriminator.py81# def __init__(self, input_nc=1, ndf=64, n_layers=3, use_actnorm=False):COMMENT
LOW…ra/models/causalvideovae/model/losses/discriminator.py101# kw = 4COMMENT
LOW…ra/models/causalvideovae/model/losses/discriminator.py121# ]COMMENT
LOWopensora/models/diffusion/opensora_v1_3/modules.py201 sequence_length, batch_size, _ = (COMMENT
LOWopensora/adaptor/stage_1_and_2.py2361 # if DP=1024 and param-group elems=16 -> padding will be 1024-16 across all but one rankCOMMENT
LOWopensora/adaptor/stage_1_and_2.py2381COMMENT
LOWopensora/adaptor/utils.py961 if dp_world_size == 1:COMMENT
LOWopensora/adaptor/utils.py981 # # pipeline parallel with bf16 will default call this even if dp size = 1.COMMENT
LOWopensora/sample/rec_video.py81COMMENT
LOWopensora/sample/rec_video.py121 # with torch.no_grad():COMMENT
LOWopensora/train/train_inpaint.py141COMMENT
LOWopensora/train/train_t2v_diffusers.py881 # x = x.detach().cpu()COMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHopensora/utils/sample_utils.py0nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, lSTRING
HIGHopensora/serve/gradio_utils.py0nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, lSTRING
HIGHopensora/train/train_t2v_diffusers.py0nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, lSTRING
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMopensora/dataset/transform.py599# ------------------------------------------------------------COMMENT
MEDIUMopensora/dataset/transform.py601# ------------------------------------------------------------COMMENT
MEDIUMopensora/models/causalvideovae/dataset/transform.py482# ------------------------------------------------------------COMMENT
MEDIUMopensora/models/causalvideovae/dataset/transform.py484# ------------------------------------------------------------COMMENT
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWopensora/adaptor/stage_1_and_2.py1831 # Step 1:- Calculate gradient norm using bit-16 gradsCOMMENT
LOWopensora/adaptor/stage_1_and_2.py1837 # Step 2:- run optimizer and upscaling simultaneouslyCOMMENT
LOWopensora/adaptor/stage_1_and_2.py1887 # Step 3:- run the optimizer if no offloadingCOMMENT
LOWopensora/adaptor/stage_1_and_2.py1890 # Step 4:- get rid of the fp32 gradients. Not needed anymoreCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/Report-v1.3.0.md117(4) Ultra-long, surrealist captions, sourced from Sora/Vidu/Pika/Veo and approximately 0.5k generated by GPT.CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHopensora/adaptor/engine.py1012except ImportError:CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHopensora/adaptor/utils.py837Clip the gradient of a list of parameters. Args: parameters: List of parameters whose .grad will be clipped.STRING
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWopensora/adaptor/stage_1_and_2.py1093 # Set numel to next partition's offsetCOMMENT
LOWopensora/adaptor/utils.py790 # Print message except when distributed but not rank 0COMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMopensora/adaptor/engine.py1063CODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWopensora/train/train_inpaint.py324 # make sure to pop weight so that corresponding model is not saved againCOMMENT
LOWopensora/train/train_t2v_diffusers.py370 # make sure to pop weight so that corresponding model is not saved againSTRING
Modern Structural Boilerplate1 hit · 0 pts
SeverityFileLineSnippetContext
LOWopensora/models/causalvideovae/dataset/ddp_sampler.py126 def set_epoch(self, epoch: int) -> None:STRING