This project aim to reproduce Sora (Open AI T2V model), we wish the open source community contribute to this project.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 284 finding(s).
Are imports declared and package/API names verified? 247 finding(s).
Are wrappers, guards, and repeated structures necessary? 228 finding(s).
Which changes need focused human review? 564 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/rec_image.py | 5 | CODE | |
| LOW | examples/rec_image.py | 6 | CODE | |
| LOW | examples/rec_video.py | 1 | CODE | |
| LOW | examples/rec_video.py | 2 | CODE | |
| LOW | examples/rec_video.py | 4 | CODE | |
| LOW | examples/rec_video.py | 10 | CODE | |
| LOW | examples/rec_video.py | 12 | CODE | |
| LOW | opensora/npu_config.py | 2 | CODE | |
| LOW | opensora/npu_config.py | 9 | CODE | |
| LOW | opensora/npu_config.py | 10 | CODE | |
| LOW | opensora/npu_config.py | 12 | CODE | |
| LOW | opensora/npu_config.py | 20 | CODE | |
| LOW | opensora/npu_config.py | 89 | CODE | |
| LOW | opensora/npu_config.py | 90 | CODE | |
| LOW | opensora/npu_config.py | 94 | CODE | |
| LOW | opensora/acceleration/parallel_states.py | 1 | CODE | |
| LOW | opensora/acceleration/parallel_states.py | 2 | CODE | |
| LOW | opensora/dataset/__init__.py | 2 | CODE | |
| LOW | opensora/dataset/__init__.py | 5 | CODE | |
| LOW | opensora/dataset/__init__.py | 14 | CODE | |
| LOW | opensora/dataset/__init__.py | 15 | CODE | |
| LOW | opensora/dataset/__init__.py | 15 | CODE | |
| LOW | opensora/dataset/__init__.py | 61 | CODE | |
| LOW | opensora/dataset/__init__.py | 62 | CODE | |
| LOW | opensora/dataset/__init__.py | 65 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 2 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 13 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 13 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 13 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 15 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 17 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 24 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 26 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 26 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 30 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 32 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 34 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 38 | CODE | |
| LOW | opensora/dataset/transform.py | 4 | CODE | |
| LOW | opensora/dataset/transform.py | 4 | CODE | |
| LOW | opensora/dataset/transform.py | 5 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 1 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 2 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 10 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 11 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 12 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 13 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 13 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 13 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 15 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 17 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 18 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 20 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 21 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 22 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 24 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 25 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 26 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 26 | CODE | |
| LOW | opensora/dataset/inpaint_dataset.py | 26 | CODE | |
| 187 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/npu_config.py | 353 | def scaled_dot_product_attention(self, query, key, value, input_layout, head_num=None, | CODE |
| LOW⚡ | opensora/acceleration/parallel_states.py | 20 | def initialize_sequence_parallel_state(sequence_parallel_size): | CODE |
| LOW⚡ | opensora/acceleration/parallel_states.py | 26 | def set_sequence_parallel_state(state): | CODE |
| LOW⚡ | opensora/acceleration/parallel_states.py | 30 | def get_sequence_parallel_state(): | CODE |
| LOW⚡ | opensora/acceleration/parallel_states.py | 33 | def initialize_sequence_parallel_group(sequence_parallel_size): | CODE |
| LOW | opensora/acceleration/parallel_states.py | 55 | def destroy_sequence_parallel_group(): | CODE |
| LOW | opensora/dataset/t2v_datasets.py | 42 | def filter_json_by_existed_files(directory, data, postfix=".mp4"): | CODE |
| LOW | opensora/dataset/transform.py | 100 | def center_crop_using_short_edge(clip): | CODE |
| LOW | opensora/dataset/transform.py | 758 | def add_webvid_watermark_notice(caption): | CODE |
| LOW | opensora/dataset/transform.py | 762 | def add_aesthetic_notice_video(caption, aesthetic_score): | CODE |
| LOW⚡ | opensora/dataset/transform.py | 773 | def add_aesthetic_notice_image(caption, aesthetic_score): | CODE |
| LOW⚡ | opensora/dataset/transform.py | 782 | def add_high_aesthetic_notice_image(caption): | CODE |
| LOW⚡ | opensora/dataset/transform.py | 786 | def add_high_aesthetic_notice_image_human(caption): | CODE |
| LOW | opensora/dataset/virtual_disk.py | 193 | def download_and_convert_to_pickle(self, bucket, object_name, local_path): | CODE |
| LOW⚡ | opensora/utils/parallel_states.py | 13 | def initialize_sequence_parallel_state(sequence_parallel_size): | CODE |
| LOW⚡ | opensora/utils/parallel_states.py | 19 | def set_sequence_parallel_state(state): | CODE |
| LOW⚡ | opensora/utils/parallel_states.py | 23 | def get_sequence_parallel_state(): | CODE |
| LOW⚡ | opensora/utils/parallel_states.py | 26 | def initialize_sequence_parallel_group(sequence_parallel_size): | CODE |
| LOW | opensora/utils/parallel_states.py | 42 | def destroy_sequence_parallel_group(): | CODE |
| LOW | opensora/utils/freeinit_utils.py | 77 | def butterworth_low_pass_filter(shape, n=4, d_s=0.25, d_t=0.25): | CODE |
| LOW | opensora/utils/dataset_utils.py | 260 | def get_length_grouped_indices(lengths, batch_size, world_size, gradient_accumulation_size, initial_global_step, generat | CODE |
| LOW | opensora/utils/utils.py | 47 | def explicit_uniform_sampling(T, n, rank, bsz, device): | CODE |
| LOW | opensora/utils/sample_utils.py | 222 | def run_model_and_save_samples(args, pipeline, caption_refiner_model=None, enhance_video_model=None): | CODE |
| LOW | opensora/utils/sample_utils.py | 417 | def run_model_and_save_samples_npu(args, pipeline, caption_refiner_model=None, enhance_video_model=None): | STRING |
| LOW | opensora/models/causalvideovae/dataset/transform.py | 95 | def center_crop_using_short_edge(clip): | CODE |
| LOW | …/models/causalvideovae/model/losses/perceptual_loss.py | 23 | def hinge_d_loss_with_exemplar_weights(logits_real, logits_fake, weights): | CODE |
| LOW | …/models/causalvideovae/model/losses/perceptual_loss.py | 97 | def calculate_adaptive_weight(self, nll_loss, g_loss, last_layer=None): | CODE |
| LOW | opensora/models/causalvideovae/eval/fvd/videogpt/fvd.py | 68 | def _symmetric_matrix_square_root(mat, eps=1e-10): | CODE |
| LOW | opensora/models/frame_interpolation/interpolation.py | 56 | def get_input_video_from_path(input_path, device="cuda"): | CODE |
| LOW | …ora/models/diffusion/opensora_v1_3/modeling_inpaint.py | 88 | def _init_patched_inputs_for_inpainting(self): | CODE |
| LOW | …ora/models/diffusion/opensora_v1_3/modeling_inpaint.py | 114 | 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.py | 114 | def _set_gradient_checkpointing(self, module, value=False): | CODE |
| LOW | …ra/models/diffusion/opensora_v1_3/modeling_opensora.py | 253 | 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.py | 270 | def _get_output_for_patched_inputs( | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 874 | def get_gradient_for_reduction(self, param): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 880 | def get_param_gradient_attribute(self, param): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 890 | def create_reduce_and_remove_grad_hooks(self): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 899 | def reduce_partition_and_remove_grads(*notneeded): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 1163 | def update_overflow_tracker_for_param_grad(self, param): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 1168 | def _get_offload_gradient_dict(self): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 1178 | def async_accumulate_grad_in_cpu_via_gpu(self, param): | CODE |
| LOW⚡ | opensora/adaptor/stage_1_and_2.py | 1187 | def buffer_to_accumulate_to_in_cpu(): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 104 | def all_gather_into_tensor_dp_groups(groups_flat, partitioned_param_groups, zp_process_group): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 561 | def _enable_universal_checkpoint(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 668 | def initialize_optimizer_states(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 727 | def initialize_gradient_partitioning_data_structures(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 751 | def independent_gradient_partition_epilogue(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 799 | def reset_partition_gradient_structures(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 809 | def initialize_gradient_partition(self, i, param_group, partition_id): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 860 | def overlapping_partition_gradients_reduce_epilogue(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 863 | def fill_grad_accum_attribute(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 919 | def flatten_dense_tensors_aligned(self, tensor_list, alignment): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 923 | def reduce_independent_p_g_buckets_and_remove_grads(self, param, i): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 966 | def gradient_reduction_w_predivide(self, tensor): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 993 | def allreduce_and_copy_with_multiple_ranks(self, | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 1240 | def set_norm_for_param_grad_in_gpu(self, param): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 1273 | def complete_grad_norm_calculation_for_cpu_offload(self, params): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 1936 | def _average_expert_grad_norms(self, norm_groups): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 1974 | def has_overflow_partitioned_grads_serial(self): | CODE |
| LOW | opensora/adaptor/stage_1_and_2.py | 2102 | def _get_groups_without_padding(self, groups_with_padding): | CODE |
| 99 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/npu_config.py | 204 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 360 | CODE | |
| LOW | opensora/utils/taming_download.py | 20 | CODE | |
| LOW | opensora/utils/taming_download.py | 64 | CODE | |
| LOW | opensora/utils/freeinit_utils.py | 34 | CODE | |
| LOW | opensora/utils/utils.py | 240 | CODE | |
| LOW | opensora/utils/sample_utils.py | 38 | CODE | |
| LOW | opensora/utils/sample_utils.py | 222 | CODE | |
| LOW | opensora/utils/sample_utils.py | 255 | CODE | |
| LOW | opensora/utils/lora_utils.py | 22 | CODE | |
| LOW | opensora/models/causalvideovae/eval/cal_ssim.py | 26 | CODE | |
| LOW | opensora/models/causalvideovae/eval/eval.py | 85 | CODE | |
| LOW | opensora/models/frame_interpolation/utils/utils.py | 98 | CODE | |
| LOW | opensora/models/frame_interpolation/utils/utils.py | 109 | CODE | |
| LOW | …models/frame_interpolation/networks/blocks/feat_enc.py | 6 | CODE | |
| LOW | …models/frame_interpolation/networks/blocks/feat_enc.py | 65 | CODE | |
| LOW | …models/frame_interpolation/networks/blocks/feat_enc.py | 118 | CODE | |
| LOW | …models/frame_interpolation/networks/blocks/feat_enc.py | 192 | CODE | |
| LOW | …models/frame_interpolation/networks/blocks/feat_enc.py | 268 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 694 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 751 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 863 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 1033 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 1352 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 1626 | CODE | |
| LOW | opensora/adaptor/bf16_optimizer.py | 326 | CODE | |
| LOW | opensora/adaptor/engine.py | 1075 | CODE | |
| LOW | opensora/adaptor/engine.py | 1155 | CODE | |
| LOW | opensora/adaptor/engine.py | 1210 | CODE | |
| LOW | opensora/adaptor/engine.py | 1258 | CODE | |
| LOW | opensora/adaptor/engine.py | 1466 | CODE | |
| LOW | opensora/adaptor/engine.py | 1757 | CODE | |
| LOW | opensora/adaptor/engine.py | 1920 | CODE | |
| LOW | opensora/adaptor/engine.py | 2118 | CODE | |
| LOW | opensora/adaptor/engine.py | 2525 | CODE | |
| LOW | opensora/adaptor/engine.py | 2963 | CODE | |
| LOW | opensora/adaptor/engine.py | 3117 | CODE | |
| LOW | opensora/adaptor/engine.py | 3445 | CODE | |
| LOW | opensora/adaptor/engine.py | 3463 | CODE | |
| LOW | opensora/adaptor/utils.py | 158 | CODE | |
| LOW | opensora/adaptor/utils.py | 182 | CODE | |
| LOW | opensora/adaptor/utils.py | 342 | CODE | |
| LOW | opensora/adaptor/utils.py | 593 | CODE | |
| LOW | opensora/adaptor/utils.py | 855 | CODE | |
| LOW | opensora/adaptor/utils.py | 211 | CODE | |
| LOW | opensora/adaptor/utils.py | 243 | CODE | |
| LOW | opensora/adaptor/utils.py | 268 | CODE | |
| LOW | opensora/sample/pipeline_inpaint.py | 213 | CODE | |
| LOW | opensora/sample/pipeline_inpaint.py | 293 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 149 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 340 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 465 | CODE | |
| LOW | opensora/train/train_causalvae.py | 134 | CODE | |
| LOW | opensora/train/train_causalvae.py | 210 | CODE | |
| LOW | opensora/train/train_inpaint.py | 95 | CODE | |
| LOW | opensora/train/train_inpaint.py | 556 | CODE | |
| LOW | opensora/train/train_t2v_diffusers.py | 165 | CODE | |
| LOW | opensora/train/train_t2v_diffusers.py | 617 | CODE | |
| LOW | opensora/train/train_t2v_diffusers.py | 668 | CODE | |
| LOW | opensora/serve/gradio_web_server.py | 24 | CODE | |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | opensora/dataset/t2v_datasets.py | 235 | print(f'Error with {e}') | CODE |
| MEDIUM | opensora/dataset/t2v_datasets.py | 162 | def get_batch(self, frame_indices): | CODE |
| MEDIUM | opensora/dataset/t2v_datasets.py | 226 | def __getitem__(self, idx): | CODE |
| LOW | opensora/dataset/t2v_datasets.py | 168 | except Exception as e: | CODE |
| LOW | opensora/dataset/t2v_datasets.py | 232 | except Exception as e: | CODE |
| MEDIUM | opensora/dataset/inpaint_dataset.py | 95 | print(f'Error with {e}') | CODE |
| MEDIUM | opensora/dataset/inpaint_dataset.py | 86 | def __getitem__(self, idx): | CODE |
| LOW | opensora/dataset/inpaint_dataset.py | 92 | except Exception as e: | CODE |
| LOW | opensora/dataset/virtual_disk.py | 106 | except Exception as e: | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 107 | print(f"An error occurred: {e}") | CODE |
| LOW | opensora/dataset/virtual_disk.py | 138 | except Exception as e: | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 139 | print(f"An error occurred: {e}") | CODE |
| LOW | opensora/dataset/virtual_disk.py | 152 | except Exception as e: | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 153 | print(f"An error occurred while checking if tmpfs is mounted: {e}") | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 95 | def create_ramdisk(self): | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 131 | def unmount_ramdisk(self): | CODE |
| MEDIUM | opensora/dataset/virtual_disk.py | 146 | def is_tmpfs_mounted(self): | CODE |
| LOW | opensora/models/causalvideovae/dataset/video_dataset.py | 128 | except Exception as e: | CODE |
| MEDIUM | opensora/models/causalvideovae/dataset/video_dataset.py | 129 | print(f"Error with {e}, {video_path}") | CODE |
| LOW | …nsora/models/causalvideovae/model/dataset_videobase.py | 87 | except Exception as e: | CODE |
| MEDIUM | …nsora/models/causalvideovae/model/dataset_videobase.py | 88 | print(f'Error with {e}, {video_path}') | CODE |
| LOW | opensora/models/causalvideovae/model/modules/wavelet.py | 11 | except Exception as e: | CODE |
| LOW | …ra/models/diffusion/opensora_v1_3/modeling_opensora.py | 364 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/acceleration/communications.py | 83 | CODE | |
| LOW | opensora/dataset/t2v_datasets.py | 136 | CODE | |
| LOW | opensora/utils/ema.py | 28 | CODE | |
| LOW | opensora/utils/communications.py | 72 | CODE | |
| LOW | …/models/causalvideovae/model/losses/perceptual_loss.py | 58 | CODE | |
| LOW | opensora/models/causalvideovae/model/losses/lpips.py | 111 | CODE | |
| LOW | …ora/models/causalvideovae/model/utils/wavelet_utils.py | 87 | CODE | |
| LOW | …a/models/causalvideovae/model/utils/scheduler_utils.py | 7 | CODE | |
| LOW | opensora/models/causalvideovae/model/modules/conv.py | 19 | CODE | |
| LOW | …/models/causalvideovae/model/vae/modeling_causalvae.py | 23 | CODE | |
| LOW | …/models/causalvideovae/model/vae/modeling_causalvae.py | 152 | CODE | |
| LOW | …/models/causalvideovae/model/vae/modeling_causalvae.py | 274 | CODE | |
| LOW | …sora/models/causalvideovae/model/vae/modeling_wfvae.py | 37 | CODE | |
| LOW | …sora/models/causalvideovae/model/vae/modeling_wfvae.py | 156 | CODE | |
| LOW | …sora/models/causalvideovae/model/vae/modeling_wfvae.py | 319 | CODE | |
| LOW | opensora/models/causalvideovae/eval/cal_ssim.py | 95 | CODE | |
| LOW | opensora/models/causalvideovae/eval/cal_fvd.py | 63 | CODE | |
| LOW | opensora/models/causalvideovae/eval/cal_psnr.py | 80 | CODE | |
| LOW | opensora/models/causalvideovae/eval/cal_lpips.py | 78 | CODE | |
| LOW | opensora/models/frame_interpolation/utils/flow_utils.py | 16 | CODE | |
| LOW | …a/models/frame_interpolation/networks/blocks/ifrnet.py | 53 | CODE | |
| LOW | opensora/models/prompt_refiner/merge.py | 64 | CODE | |
| LOW | opensora/models/diffusion/opensora_v1_3/modules.py | 317 | CODE | |
| LOW | …ora/models/diffusion/opensora_v1_3/modeling_inpaint.py | 26 | CODE | |
| LOW | …ra/models/diffusion/opensora_v1_3/modeling_opensora.py | 30 | CODE | |
| LOW | …ra/models/diffusion/opensora_v1_3/modeling_opensora.py | 289 | CODE | |
| LOW | opensora/adaptor/stage_1_and_2.py | 133 | CODE | |
| LOW | opensora/adaptor/bf16_optimizer.py | 36 | CODE | |
| LOW | opensora/adaptor/engine.py | 180 | CODE | |
| LOW | opensora/sample/pipeline_inpaint.py | 116 | CODE | |
| LOW | opensora/sample/pipeline_inpaint.py | 293 | CODE | |
| LOW | opensora/sample/caption_refiner.py | 37 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 149 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 340 | CODE | |
| LOW | opensora/sample/pipeline_opensora.py | 465 | CODE | |
| LOW | opensora/serve/gradio_web_server_i2v.py | 24 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/rec_video.py | 81 | COMMENT | |
| LOW | opensora/__init__.py | 1 | # | COMMENT |
| LOW | opensora/dataset/virtual_disk.py | 161 | """ | COMMENT |
| LOW | opensora/utils/dataset_utils.py | 281 | # megabatches = [sorted(megabatch, key=lambda i: lengths[i], reverse=True) for megabatch in megabatches] | COMMENT |
| LOW | opensora/utils/dataset_utils.py | 301 | COMMENT | |
| LOW | opensora/utils/sample_utils.py | 421 | # aic_metrics=torch_npu.profiler.AiCMetrics.PipeUtilization | COMMENT |
| LOW | …ra/models/causalvideovae/model/losses/discriminator.py | 81 | # def __init__(self, input_nc=1, ndf=64, n_layers=3, use_actnorm=False): | COMMENT |
| LOW | …ra/models/causalvideovae/model/losses/discriminator.py | 101 | # kw = 4 | COMMENT |
| LOW | …ra/models/causalvideovae/model/losses/discriminator.py | 121 | # ] | COMMENT |
| LOW | opensora/models/diffusion/opensora_v1_3/modules.py | 201 | sequence_length, batch_size, _ = ( | COMMENT |
| LOW | opensora/adaptor/stage_1_and_2.py | 2361 | # if DP=1024 and param-group elems=16 -> padding will be 1024-16 across all but one rank | COMMENT |
| LOW | opensora/adaptor/stage_1_and_2.py | 2381 | COMMENT | |
| LOW | opensora/adaptor/utils.py | 961 | if dp_world_size == 1: | COMMENT |
| LOW | opensora/adaptor/utils.py | 981 | # # pipeline parallel with bf16 will default call this even if dp size = 1. | COMMENT |
| LOW | opensora/sample/rec_video.py | 81 | COMMENT | |
| LOW | opensora/sample/rec_video.py | 121 | # with torch.no_grad(): | COMMENT |
| LOW | opensora/train/train_inpaint.py | 141 | COMMENT | |
| LOW | opensora/train/train_t2v_diffusers.py | 881 | # x = x.detach().cpu() | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | opensora/utils/sample_utils.py | 0 | nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, l | STRING |
| HIGH | opensora/serve/gradio_utils.py | 0 | nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, l | STRING |
| HIGH | opensora/train/train_t2v_diffusers.py | 0 | nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, l | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | opensora/dataset/transform.py | 599 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | opensora/dataset/transform.py | 601 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | opensora/models/causalvideovae/dataset/transform.py | 482 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | opensora/models/causalvideovae/dataset/transform.py | 484 | # ------------------------------------------------------------ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/adaptor/stage_1_and_2.py | 1831 | # Step 1:- Calculate gradient norm using bit-16 grads | COMMENT |
| LOW | opensora/adaptor/stage_1_and_2.py | 1837 | # Step 2:- run optimizer and upscaling simultaneously | COMMENT |
| LOW | opensora/adaptor/stage_1_and_2.py | 1887 | # Step 3:- run the optimizer if no offloading | COMMENT |
| LOW | opensora/adaptor/stage_1_and_2.py | 1890 | # Step 4:- get rid of the fp32 gradients. Not needed anymore | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/Report-v1.3.0.md | 117 | (4) Ultra-long, surrealist captions, sourced from Sora/Vidu/Pika/Veo and approximately 0.5k generated by GPT. | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | opensora/adaptor/engine.py | 1012 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | opensora/adaptor/utils.py | 837 | Clip the gradient of a list of parameters. Args: parameters: List of parameters whose .grad will be clipped. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/adaptor/stage_1_and_2.py | 1093 | # Set numel to next partition's offset | COMMENT |
| LOW | opensora/adaptor/utils.py | 790 | # Print message except when distributed but not rank 0 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | opensora/adaptor/engine.py | 1063 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/train/train_inpaint.py | 324 | # make sure to pop weight so that corresponding model is not saved again | COMMENT |
| LOW | opensora/train/train_t2v_diffusers.py | 370 | # make sure to pop weight so that corresponding model is not saved again | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | opensora/models/causalvideovae/dataset/ddp_sampler.py | 126 | def set_epoch(self, epoch: int) -> None: | STRING |