ModelScope: bring the notion of Model-as-a-Service to life.
This report summarizes scanner evidence for modelscope/modelscope, a Python project with 9,164 GitHub stars. SynthScan examined 636,317 lines of code across 3509 source files, recording 10964 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 25.9 (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.
Can maintainers explain intent, assumptions, and trade-offs? 4238 finding(s).
Are imports declared and package/API names verified? 4678 finding(s).
Are wrappers, guards, and repeated structures necessary? 4823 finding(s).
Which changes need focused human review? 10964 finding(s).
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.
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 10964 distinct pattern matches across 22 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 |
|---|---|---|---|---|
| HIGH | tests/trainers/test_finetune_plug_mental.py | 0 | this unittest is used to reproduce the clue:tnews dataset + structbert model training results. user can train a custom d | STRING |
| HIGH | tests/trainers/test_finetune_token_classification.py | 0 | this unittest is used to reproduce the clue:tnews dataset + structbert model training results. user can train a custom d | STRING |
| HIGH | tests/trainers/test_finetune_sequence_classification.py | 0 | this unittest is used to reproduce the clue:tnews dataset + structbert model training results. user can train a custom d | STRING |
| HIGH | modelscope/metrics/image_inpainting_metric.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | modelscope/models/cv/image_inpainting/refinement.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | modelscope/models/cv/image_inpainting/default.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | modelscope/models/cv/image_inpainting/base.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …cope/models/cv/image_inpainting/modules/adversarial.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …scope/models/cv/image_inpainting/modules/perceptual.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …lscope/models/cv/image_inpainting/modules/inception.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | modelscope/models/cv/image_inpainting/modules/ffc.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …models/cv/image_inpainting/modules/feature_matching.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …pe/models/cv/image_inpainting/modules/ade20k/resnet.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …cope/models/cv/image_inpainting/modules/ade20k/base.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | …_datasets/image_inpainting/image_inpainting_dataset.py | 0 | part of the implementation is borrowed and modified from lama, publicly available at https://github.com/saic-mdal/lama | STRING |
| HIGH | modelscope/metrics/image_denoise_metric.py | 0 | reorder images to 'hwc' order. if the input_order is (h, w), return (h, w, 1); if the input_order is (c, h, w), return ( | STRING |
| HIGH | modelscope/metrics/image_color_enhance_metric.py | 0 | reorder images to 'hwc' order. if the input_order is (h, w), return (h, w, 1); if the input_order is (c, h, w), return ( | STRING |
| HIGH | …e/metrics/video_super_resolution_metric/metric_util.py | 0 | reorder images to 'hwc' order. if the input_order is (h, w), return (h, w, 1); if the input_order is (c, h, w), return ( | STRING |
| HIGH | …preprocessors/nlp/token_classification_preprocessor.py | 0 | return the id2label mapping according to the label2id mapping. @return: the id2label mapping if exists. | STRING |
| HIGH | …/preprocessors/nlp/text_classification_preprocessor.py | 0 | return the id2label mapping according to the label2id mapping. @return: the id2label mapping if exists. | STRING |
| HIGH | …ocessors/nlp/dialog_classification_use_preprocessor.py | 0 | return the id2label mapping according to the label2id mapping. @return: the id2label mapping if exists. | STRING |
| HIGH | …preprocessors/nlp/token_classification_preprocessor.py | 0 | tokenize the text. args: sequence1: the first sequence. sequence2: the second sequence which may be none. returns: the e | STRING |
| HIGH | …/preprocessors/nlp/text_classification_preprocessor.py | 0 | tokenize the text. args: sequence1: the first sequence. sequence2: the second sequence which may be none. returns: the e | STRING |
| HIGH | modelscope/preprocessors/nlp/fill_mask_preprocessor.py | 0 | tokenize the text. args: sequence1: the first sequence. sequence2: the second sequence which may be none. returns: the e | STRING |
| HIGH | …cope/preprocessors/nlp/text_generation_preprocessor.py | 0 | tokenize the text. args: sequence1: the first sequence. sequence2: the second sequence which may be none. returns: the e | STRING |
| HIGH | …delscope/preprocessors/nlp/siamese_uie_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …rocessors/nlp/zero_shot_classification_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …e/preprocessors/nlp/mglm_summarization_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …/space_T_en/conversational_text_to_sql_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …ors/nlp/space/dialog_intent_prediction_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …essors/nlp/space/dialog_state_tracking_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …reprocessors/nlp/space/dialog_modeling_preprocessor.py | 0 | preprocess the data args: model_dir (str): model path | STRING |
| HIGH | …nlp/document_grounded_dialog_retrieval_preprocessor.py | 0 | the preprocessor for dgds rerank task, based on transformers' tokenizer. args: model_dir: the model dir containing the e | STRING |
| HIGH | …/nlp/document_grounded_dialog_generate_preprocessor.py | 0 | the preprocessor for dgds rerank task, based on transformers' tokenizer. args: model_dir: the model dir containing the e | STRING |
| HIGH | …rs/nlp/document_grounded_dialog_rerank_preprocessor.py | 0 | the preprocessor for dgds rerank task, based on transformers' tokenizer. args: model_dir: the model dir containing the e | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | runs basic whitespace cleaning and splitting on a piece of text. | STRING |
| HIGH | modelscope/models/multi_modal/clip/bert_tokenizer.py | 0 | runs basic whitespace cleaning and splitting on a piece of text. | STRING |
| HIGH | modelscope/models/multi_modal/diffusion/tokenizer.py | 0 | runs basic whitespace cleaning and splitting on a piece of text. | STRING |
| HIGH | modelscope/models/multi_modal/ofa/tokenization_ofa.py | 0 | runs basic whitespace cleaning and splitting on a piece of text. | STRING |
| HIGH | modelscope/models/nlp/mglm/data_utils/wordpiece.py | 0 | runs basic whitespace cleaning and splitting on a piece of text. | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | converts a sequence of tokens into ids using the vocab. | STRING |
| HIGH | modelscope/models/multi_modal/diffusion/tokenizer.py | 0 | converts a sequence of tokens into ids using the vocab. | STRING |
| HIGH | …lscope/models/nlp/mglm/data_utils/tokenization_gpt2.py | 0 | converts a sequence of tokens into ids using the vocab. | STRING |
| HIGH | modelscope/models/nlp/mglm/data_utils/wordpiece.py | 0 | converts a sequence of tokens into ids using the vocab. | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | runs basic tokenization (punctuation splitting, lower casing, etc.). | STRING |
| HIGH | modelscope/models/multi_modal/clip/bert_tokenizer.py | 0 | runs basic tokenization (punctuation splitting, lower casing, etc.). | STRING |
| HIGH | modelscope/models/multi_modal/diffusion/tokenizer.py | 0 | runs basic tokenization (punctuation splitting, lower casing, etc.). | STRING |
| HIGH | modelscope/models/nlp/mglm/data_utils/wordpiece.py | 0 | runs basic tokenization (punctuation splitting, lower casing, etc.). | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | constructs a basictokenizer. args: do_lower_case: whether to lower case the input. | STRING |
| HIGH | modelscope/models/multi_modal/clip/bert_tokenizer.py | 0 | constructs a basictokenizer. args: do_lower_case: whether to lower case the input. | STRING |
| HIGH | modelscope/models/multi_modal/diffusion/tokenizer.py | 0 | constructs a basictokenizer. args: do_lower_case: whether to lower case the input. | STRING |
| HIGH | modelscope/models/nlp/mglm/data_utils/wordpiece.py | 0 | constructs a basictokenizer. args: do_lower_case: whether to lower case the input. | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/preprocessors/templates/base.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/utils/chinese_utils.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/models/multi_modal/clip/bert_tokenizer.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/models/multi_modal/diffusion/tokenizer.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/models/nlp/mglm/data_utils/wordpiece.py | 0 | checks whether cp is the codepoint of a cjk character. | STRING |
| HIGH | modelscope/preprocessors/nlp/space/tokenizer.py | 0 | performs invalid character removal and whitespace cleanup on text. | STRING |
| HIGH | modelscope/models/multi_modal/clip/bert_tokenizer.py | 0 | performs invalid character removal and whitespace cleanup on text. | STRING |
| 1016 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/weight_diff.py | 18 | CODE | |
| LOW | tests/json_call_test.py | 3 | CODE | |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 32 | CODE | |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 40 | CODE | |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 41 | CODE | |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 42 | CODE | |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 61 | CODE | |
| LOW | tests/studios/test_studio_cli.py | 13 | CODE | |
| LOW | tests/studios/test_studio_cli.py | 19 | CODE | |
| LOW | tests/test_metrics/test_token_classification_metrics.py | 10 | CODE | |
| LOW | …s/pipelines/test_wenet_automatic_speech_recognition.py | 14 | CODE | |
| LOW | tests/pipelines/test_image_matching.py | 4 | CODE | |
| LOW | tests/pipelines/test_image_matching.py | 6 | CODE | |
| LOW | tests/pipelines/test_image_matching.py | 7 | CODE | |
| LOW | tests/pipelines/test_image_matching.py | 8 | CODE | |
| LOW | tests/pipelines/test_image_matting.py | 10 | CODE | |
| LOW | tests/pipelines/test_video_frame_interpolation.py | 2 | CODE | |
| LOW | tests/pipelines/test_video_frame_interpolation.py | 6 | CODE | |
| LOW | tests/pipelines/test_lineless_table_recognition.py | 5 | CODE | |
| LOW | tests/pipelines/test_lineless_table_recognition.py | 6 | CODE | |
| LOW | tests/pipelines/test_addr_similarity.py | 4 | CODE | |
| LOW | tests/pipelines/test_addr_similarity.py | 6 | CODE | |
| LOW | tests/pipelines/test_addr_similarity.py | 8 | CODE | |
| LOW | tests/pipelines/test_addr_similarity.py | 11 | CODE | |
| LOW | tests/pipelines/test_addr_similarity.py | 11 | CODE | |
| LOW | tests/pipelines/test_nerf_recon_4k.py | 7 | CODE | |
| LOW | tests/pipelines/test_nerf_recon_4k.py | 9 | CODE | |
| LOW | tests/pipelines/test_nerf_recon_4k.py | 12 | CODE | |
| LOW | tests/pipelines/test_image_local_feature_matching.py | 4 | CODE | |
| LOW | tests/pipelines/test_image_local_feature_matching.py | 7 | CODE | |
| LOW | tests/pipelines/test_image_local_feature_matching.py | 8 | CODE | |
| LOW | tests/pipelines/test_image_local_feature_matching.py | 13 | CODE | |
| LOW | tests/pipelines/test_cartoon_stable_diffusion.py | 10 | CODE | |
| LOW | tests/pipelines/test_video_colorization.py | 2 | CODE | |
| LOW | tests/pipelines/test_video_colorization.py | 5 | CODE | |
| LOW | tests/pipelines/test_video_colorization.py | 8 | CODE | |
| LOW | …ts/pipelines/test_document_grounded_dialog_generate.py | 2 | CODE | |
| LOW | tests/pipelines/test_panorama_depth_estimation.py | 6 | CODE | |
| LOW | tests/pipelines/test_panorama_depth_estimation.py | 11 | CODE | |
| LOW | tests/pipelines/test_panorama_depth_estimation_s2net.py | 6 | CODE | |
| LOW | tests/pipelines/test_vqrf.py | 7 | CODE | |
| LOW | tests/pipelines/test_vqrf.py | 9 | CODE | |
| LOW | tests/pipelines/test_vqrf.py | 11 | CODE | |
| LOW | tests/pipelines/test_videocomposer.py | 2 | CODE | |
| LOW | tests/pipelines/test_videocomposer.py | 5 | CODE | |
| LOW | tests/pipelines/test_videocomposer.py | 6 | CODE | |
| LOW | tests/pipelines/test_realtime_video_object_detection.py | 4 | CODE | |
| LOW | tests/pipelines/test_realtime_video_object_detection.py | 5 | CODE | |
| LOW | tests/pipelines/test_realtime_video_object_detection.py | 9 | CODE | |
| LOW | …speaker_diarization_semantic_speaker_turn_detection.py | 3 | CODE | |
| LOW | tests/pipelines/test_remote_config_security.py | 30 | CODE | |
| LOW | tests/pipelines/test_remote_config_security.py | 33 | CODE | |
| LOW | tests/pipelines/test_face_reconstruction.py | 2 | CODE | |
| LOW | tests/pipelines/test_facial_expression_recognition.py | 6 | CODE | |
| LOW | tests/pipelines/test_facial_expression_recognition.py | 8 | CODE | |
| LOW | tests/pipelines/test_facial_expression_recognition.py | 13 | CODE | |
| LOW | tests/pipelines/test_gpt3_text_generation.py | 7 | CODE | |
| LOW | tests/pipelines/test_text_to_speech.py | 9 | CODE | |
| LOW | tests/pipelines/test_text_to_speech.py | 17 | CODE | |
| LOW | …s/pipelines/test_document_grounded_dialog_retrieval.py | 2 | CODE | |
| 4572 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/weight_diff.py | 32 | def smart_tokenizer_and_embedding_resize(special_tokens_dict: Dict, tokenizer, | CODE |
| LOW | docker/build_image.py | 63 | def _generate_cudatoolkit_version(self, cuda_version: str) -> str: | CODE |
| LOW | docker/build_image.py | 75 | def _remove_pynini_related_dependency(content: str) -> str: | CODE |
| LOW | docker/build_image.py | 649 | def _modelscope_hub_install_cmd(self) -> Optional[str]: | CODE |
| LOW | docker/build_image.py | 953 | def probe_base_image_versions(cls, base_image: str) -> dict: | CODE |
| LOW | tests/run.py | 93 | def gather_test_suites_in_files(test_dir, case_file_list, list_tests): | CODE |
| LOW | tests/run.py | 167 | def async_run_command_with_popen(cmd, device_id): | CODE |
| LOW | tests/run.py | 382 | def run_non_parallelizable_test_suites(suites, result_dir): | CODE |
| LOW | tests/run.py | 557 | def patch_transformers_for_safe_models(): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 90 | def test_legitimate_python_repr_payload_parses(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 97 | def test_legitimate_json_payload_parses(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 103 | def test_none_payload_becomes_empty_list(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 106 | def test_already_parsed_list_passes_through(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 119 | def test_bytes_payload_is_decoded_then_parsed(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 125 | def test_malicious_import_payload_blocked(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 138 | def test_malicious_function_call_blocked(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 143 | def test_malicious_attribute_access_blocked(self): | CODE |
| LOW⚡ | …preprocessors/test_action_detection_mapper_security.py | 147 | def test_mapper_call_swallows_malicious_payload(self): | CODE |
| LOW | tests/preprocessors/test_nlp.py | 56 | def test_preprocessor_download(self): | CODE |
| LOW | tests/preprocessors/test_nlp.py | 67 | def test_token_classification_tokenize_bert(self): | CODE |
| LOW | tests/preprocessors/test_nlp.py | 101 | def test_token_classification_tokenize_roberta(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 87 | def test_studio_settings_help(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 101 | def test_download_repo_type_includes_model(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 106 | def test_create_includes_studio_args(self): | CODE |
| LOW⚡ | tests/studios/test_studio_cli.py | 126 | def test_studio_deploy_missing_id(self): | CODE |
| LOW⚡ | tests/studios/test_studio_cli.py | 131 | def test_studio_no_subcommand_raises(self): | CODE |
| LOW⚡ | tests/studios/test_studio_cli.py | 138 | def test_studio_settings_no_field_raises(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 160 | def test_secret_no_action_raises(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 240 | def test_create_studio_exist_ok(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 256 | def test_create_studio_exist_raises(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 426 | def test_secret_update_direct(self): | CODE |
| LOW | tests/studios/test_studio_cli.py | 452 | def test_secret_delete_direct(self): | CODE |
| LOW | tests/pipelines/test_image_editing_masactrl.py | 29 | def test_run_by_direct_model_download(self): | CODE |
| LOW | tests/pipelines/test_skin_retouching.py | 28 | def test_run_by_direct_model_download(self): | CODE |
| LOW | tests/pipelines/test_skin_retouching.py | 39 | def test_run_modelhub_default_model(self): | CODE |
| LOW | tests/pipelines/test_video_multi_modal_embedding.py | 34 | def test_run_with_default_model(self): | CODE |
| LOW | tests/pipelines/test_image_matting.py | 41 | def test_run_modelhub_default_model(self): | CODE |
| LOW | tests/pipelines/test_image_matting.py | 49 | def test_run_with_modelscope_dataset(self): | CODE |
| LOW | tests/pipelines/test_video_frame_interpolation.py | 23 | def test_run_by_direct_model_download(self): | CODE |
| LOW | tests/pipelines/test_video_frame_interpolation.py | 39 | def test_run_with_model_from_modelhub(self): | CODE |
| LOW | tests/pipelines/test_video_frame_interpolation.py | 54 | def test_run_with_default_model(self): | CODE |
| LOW | tests/pipelines/test_lineless_table_recognition.py | 27 | def test_run_with_model_from_modelhub(self): | CODE |
| LOW | tests/pipelines/test_lineless_table_recognition.py | 33 | def test_run_modelhub_default_model(self): | CODE |
| LOW | …pipelines/test_msrresnetlite_video_super_resolution.py | 21 | def test_run_by_direct_model_download(self): | CODE |
| LOW | …pipelines/test_msrresnetlite_video_super_resolution.py | 30 | def test_run_with_model_from_modelhub(self): | CODE |
| LOW | …pipelines/test_msrresnetlite_video_super_resolution.py | 46 | def test_run_with_default_model(self): | CODE |
| LOW | tests/pipelines/test_image_control_3d_portrait.py | 20 | def test_run_by_direct_model_download(self): | CODE |
| LOW | tests/pipelines/test_image_control_3d_portrait.py | 43 | def test_run_modelhub_default_model(self): | CODE |
| LOW | tests/pipelines/test_addr_similarity.py | 22 | def test_run_with_model_from_modelhub(self): | CODE |
| LOW | tests/pipelines/test_human_image_generation.py | 41 | def test_run_modelhub_default_model(self): | CODE |
| LOW | tests/pipelines/test_nerf_recon_4k.py | 40 | # def test_run_by_direct_model_download(self): | COMMENT |
| LOW | tests/pipelines/test_image_local_feature_matching.py | 24 | def test_image_local_feature_matching(self): | CODE |
| LOW | tests/pipelines/test_image_paint_by_example.py | 47 | def test_paintbyexample_with_image(self): | CODE |
| LOW | tests/pipelines/test_image_depth_estimation_marigold.py | 30 | def test_run_by_direct_model_download(self): | CODE |
| LOW | tests/pipelines/test_document_segmentation.py | 34 | def test_run_with_document_segmentation(self): | CODE |
| LOW | tests/pipelines/test_document_segmentation.py | 46 | def test_run_with_topic_segmentation(self): | CODE |
| LOW | tests/pipelines/test_document_segmentation.py | 55 | def test_run_with_documents_segmentation(self): | CODE |
| LOW | tests/pipelines/test_speech_signal_process.py | 171 | def test_zipenhancer_ans_bytes(self): | CODE |
| LOW⚡ | tests/pipelines/test_text_generation.py | 108 | def test_palm_zh_base_with_model_name_batch(self): | STRING |
| LOW⚡ | tests/pipelines/test_text_generation.py | 117 | def test_palm_zh_base_with_model_name_batch_iter(self): | STRING |
| 1525 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/run.py | 487 | CODE | |
| LOW | tests/json_call_test.py | 50 | CODE | |
| LOW | tests/pipelines/test_document_segmentation.py | 31 | CODE | |
| LOW | tests/pipelines/test_speaker_verification.py | 57 | CODE | |
| LOW | tests/pipelines/test_extractive_summarization.py | 28 | CODE | |
| LOW | modelscope/metrics/image_denoise_metric.py | 230 | CODE | |
| LOW | modelscope/metrics/action_detection_evaluator.py | 88 | CODE | |
| LOW | modelscope/preprocessors/kws.py | 42 | CODE | |
| LOW | modelscope/preprocessors/kws.py | 72 | CODE | |
| LOW | modelscope/preprocessors/multi_modal.py | 796 | CODE | |
| LOW | modelscope/preprocessors/multi_modal.py | 810 | CODE | |
| LOW | modelscope/preprocessors/asr.py | 39 | CODE | |
| LOW | modelscope/preprocessors/speaker.py | 33 | CODE | |
| LOW | modelscope/preprocessors/speaker.py | 64 | CODE | |
| LOW | …preprocessors/nlp/token_classification_preprocessor.py | 60 | CODE | |
| LOW | …preprocessors/nlp/token_classification_preprocessor.py | 202 | CODE | |
| LOW | …ocessors/nlp/token_classification_viet_preprocessor.py | 37 | CODE | |
| LOW | …/preprocessors/nlp/text_classification_preprocessor.py | 128 | CODE | |
| LOW | …sors/nlp/machine_reading_comprehension_preprocessor.py | 69 | CODE | |
| LOW | modelscope/preprocessors/nlp/canmt_translation.py | 109 | CODE | |
| LOW | modelscope/preprocessors/nlp/fill_mask_preprocessor.py | 59 | CODE | |
| LOW | modelscope/preprocessors/nlp/fill_mask_preprocessor.py | 273 | CODE | |
| LOW | modelscope/preprocessors/nlp/text_error_correction.py | 67 | CODE | |
| LOW | …elscope/preprocessors/nlp/text_ranking_preprocessor.py | 42 | CODE | |
| LOW | …ocessors/nlp/token_classification_thai_preprocessor.py | 30 | CODE | |
| LOW | …ocessors/nlp/token_classification_thai_preprocessor.py | 50 | CODE | |
| LOW | …elscope/preprocessors/nlp/mgeo_ranking_preprocessor.py | 119 | CODE | |
| LOW | …e/preprocessors/nlp/feature_extraction_preprocessor.py | 75 | CODE | |
| LOW | …eprocessors/nlp/faq_question_answering_preprocessor.py | 18 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 409 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 669 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 695 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 737 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 800 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 386 | CODE | |
| LOW | modelscope/preprocessors/templates/utils.py | 329 | CODE | |
| LOW | modelscope/preprocessors/templates/template.py | 1437 | CODE | |
| LOW | modelscope/preprocessors/cv/mmcls_preprocessor.py | 76 | CODE | |
| LOW | …scope/preprocessors/cv/image_quality_assessment_mos.py | 65 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 44 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 68 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 79 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 89 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 99 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 110 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 120 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 151 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 163 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 175 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 183 | CODE | |
| LOW | modelscope/preprocessors/ofa/utils/vision_helper.py | 192 | CODE | |
| LOW | modelscope/tools/speech_tts_autolabel.py | 26 | CODE | |
| LOW | modelscope/server/api/routers/model_router.py | 37 | CODE | |
| LOW | modelscope/pipelines/builder.py | 82 | CODE | |
| LOW | modelscope/pipelines/pipeline_template.py | 87 | CODE | |
| LOW | …lscope/pipelines/science/protein_structure_pipeline.py | 144 | CODE | |
| LOW | modelscope/pipelines/audio/kws_kwsbp_pipeline.py | 74 | CODE | |
| LOW | …delscope/pipelines/audio/speech_separation_pipeline.py | 151 | CODE | |
| LOW | modelscope/pipelines/audio/funasr_pipeline.py | 75 | CODE | |
| LOW | …pe/pipelines/audio/segmentation_clustering_pipeline.py | 321 | CODE | |
| 1130 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker/build_image.py | 927 | CODE | |
| LOW | tests/run.py | 48 | CODE | |
| LOW | tests/run.py | 93 | CODE | |
| LOW | tests/run.py | 223 | CODE | |
| LOW | tests/run.py | 242 | CODE | |
| LOW | tests/run.py | 490 | CODE | |
| LOW | tests/fileio/test_io.py | 12 | CODE | |
| LOW | tests/studios/conftest_env.py | 112 | CODE | |
| LOW | tests/msdatasets/test_stream_load.py | 59 | CODE | |
| LOW | tests/msdatasets/test_dataset_delete.py | 48 | CODE | |
| LOW | modelscope/metainfo.py | 1086 | CODE | |
| LOW | modelscope/metrics/video_stabilization_metric.py | 122 | CODE | |
| LOW | modelscope/metrics/translation_evaluation_metric.py | 135 | CODE | |
| LOW | modelscope/metrics/token_classification_metric.py | 54 | CODE | |
| LOW | …delscope/metrics/image_instance_segmentation_metric.py | 45 | CODE | |
| LOW | …delscope/metrics/image_instance_segmentation_metric.py | 212 | CODE | |
| LOW | modelscope/preprocessors/multi_modal.py | 277 | CODE | |
| LOW | modelscope/preprocessors/multi_modal.py | 735 | CODE | |
| LOW | modelscope/preprocessors/asr.py | 193 | CODE | |
| LOW | modelscope/preprocessors/common.py | 69 | CODE | |
| LOW | modelscope/preprocessors/common.py | 150 | CODE | |
| LOW | modelscope/preprocessors/common.py | 24 | CODE | |
| LOW | modelscope/preprocessors/audio.py | 101 | CODE | |
| LOW | modelscope/preprocessors/speaker.py | 196 | CODE | |
| LOW | modelscope/preprocessors/video.py | 243 | CODE | |
| LOW | modelscope/preprocessors/image.py | 87 | CODE | |
| LOW | modelscope/preprocessors/image.py | 106 | CODE | |
| LOW | modelscope/preprocessors/base.py | 347 | CODE | |
| LOW | modelscope/preprocessors/science/uni_fold.py | 42 | CODE | |
| LOW | modelscope/preprocessors/science/uni_fold.py | 323 | CODE | |
| LOW | modelscope/preprocessors/science/uni_fold.py | 375 | CODE | |
| LOW | …e/preprocessors/movie_scene_segmentation/transforms.py | 24 | CODE | |
| LOW | …e/preprocessors/movie_scene_segmentation/transforms.py | 247 | CODE | |
| LOW | …preprocessors/nlp/token_classification_preprocessor.py | 107 | CODE | |
| LOW | …preprocessors/nlp/token_classification_preprocessor.py | 343 | CODE | |
| LOW | …sors/nlp/machine_reading_comprehension_preprocessor.py | 71 | CODE | |
| LOW | …sors/nlp/machine_reading_comprehension_preprocessor.py | 107 | CODE | |
| LOW | modelscope/preprocessors/nlp/transformers_tokenizer.py | 52 | CODE | |
| LOW | modelscope/preprocessors/nlp/utils.py | 23 | CODE | |
| LOW | modelscope/preprocessors/nlp/utils.py | 64 | CODE | |
| LOW | …reprocessors/nlp/document_segmentation_preprocessor.py | 53 | CODE | |
| LOW | modelscope/preprocessors/nlp/space_T_en/fields/parse.py | 106 | CODE | |
| LOW | modelscope/preprocessors/nlp/space_T_en/fields/parse.py | 191 | CODE | |
| LOW | …pe/preprocessors/nlp/space_T_en/fields/common_utils.py | 26 | CODE | |
| LOW | …pe/preprocessors/nlp/space_T_en/fields/common_utils.py | 338 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/preprocess.py | 12 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/tokenizer.py | 361 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 829 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 1111 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 105 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 186 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 255 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 292 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 338 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 376 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 409 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 850 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 269 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 409 | CODE | |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 639 | CODE | |
| 961 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modelscope/metrics/video_frame_interpolation_metric.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/metrics/video_frame_interpolation_metric.py | 3 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | modelscope/metrics/image_denoise_metric.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | modelscope/metrics/image_denoise_metric.py | 3 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | modelscope/metrics/image_denoise_metric.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …delscope/pipelines/cv/ocr_utils/model_resnet18_half.py | 1 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …delscope/pipelines/cv/ocr_utils/model_resnet18_half.py | 4 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/resnet18_v1.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/model_dla34.py | 1 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/model_dla34.py | 4 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/table_process.py | 1 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/table_process.py | 4 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/resnet_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/model_vlpt.py | 1 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/pipelines/cv/ocr_utils/model_vlpt.py | 4 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/models/multi_modal/freeu/free_lunch_utils.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/models/multi_modal/freeu/free_lunch_utils.py | 4 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | modelscope/models/multi_modal/freeu/free_lunch_utils.py | 123 | # --------------------------------------------------------- | COMMENT |
| MEDIUM | modelscope/models/multi_modal/freeu/free_lunch_utils.py | 272 | # --------------------------------------------------------- | COMMENT |
| MEDIUM | modelscope/models/multi_modal/prost/models/modeling.py | 397 | # ------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 19 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 37 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 117 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 130 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 139 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 157 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/video_to_video/utils/config.py | 171 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ope/models/multi_modal/mplug_owl/modeling_mplug_owl.py | 1650 | # =================== | STRING |
| MEDIUM | …ope/models/multi_modal/mplug_owl/modeling_mplug_owl.py | 1652 | # =================== | STRING |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 18 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 36 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 116 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 129 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 138 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 156 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …cope/models/multi_modal/image_to_video/utils/config.py | 161 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | modelscope/models/nlp/palm_v2/dureader_eval.py | 1 | # ============================================================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/palm_v2/dureader_eval.py | 15 | # ============================================================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/chatglm/text_generation.py | 285 | # =================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/chatglm/text_generation.py | 287 | # =================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/chatglm/text_generation.py | 335 | # ========================= | COMMENT |
| MEDIUM | modelscope/models/nlp/chatglm/text_generation.py | 337 | # ========================= | COMMENT |
| MEDIUM⚡ | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 434 | # ================================== | COMMENT |
| MEDIUM⚡ | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 436 | # ================================== | COMMENT |
| MEDIUM⚡ | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 441 | # ================= | COMMENT |
| MEDIUM⚡ | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 443 | # ================= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 245 | # =================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 247 | # =================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 276 | # =========================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 278 | # =========================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 293 | # ========================= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 295 | # ========================= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 380 | # ================================================= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 382 | # ================================================= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 397 | # ===================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 399 | # ===================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 413 | # ================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 415 | # ================================== | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 1223 | # ============= | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/distributed_gpt_moe.py | 1225 | # ============= | COMMENT |
| 237 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/studios/conftest_env.py | 61 | Create a temporary studio for testing purposes. Args: config: dict from get_test_config() name_pref | STRING |
| HIGH | docs/README.md | 18 | Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized file | STRING |
| HIGH | modelscope/preprocessors/base.py | 213 | Instantiate a preprocessor from local directory or remote model repo. Note that when loading from remote, the mo | STRING |
| HIGH | modelscope/preprocessors/nlp/space/batch.py | 5 | This operator creates a batched reader which combines the data from the input reader to batched data. Args | STRING |
| HIGH | modelscope/fileio/io.py | 18 | Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. | STRING |
| HIGH | modelscope/fileio/io.py | 60 | Dump data to json/yaml strings or files. This method provides a unified api for dumping data as strings or to files | STRING |
| HIGH | modelscope/fileio/io.py | 108 | Dump data to json/yaml strings or files. This method provides a unified api for dumping data as strings or to files | STRING |
| HIGH | …pelines/multi_modal/diffusers_wrapped/pasd_pipeline.py | 862 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …lscope/pipelines/nlp/text_error_correction_pipeline.py | 68 | Args: inputs (Dict[str, Tensor]) Examples: { 'predi | STRING |
| HIGH | modelscope/pipelines/cv/body_3d_keypoints_pipeline.py | 227 | Read video from local video file or from a video stream URL. Args: video_url (str or cv2.VideoCaptu | STRING |
| HIGH | modelscope/pipelines/cv/ocr_utils/resnet18_v1.py | 175 | Generator for v1 ResNet models. This function generates a family of ResNet v1 models. See the resnet_v1_*() meth | STRING |
| HIGH | modelscope/pipelines/cv/ocr_utils/resnet_utils.py | 129 | Stacks ResNet `Blocks` and controls output feature density. First, this function creates scopes for the ResNet in th | STRING |
| HIGH | modelscope/utils/config.py | 531 | merge dict ``a`` into dict ``b`` (non-inplace). Values in ``a`` will overwrite ``b``. ``b`` is copied first to | STRING |
| HIGH | modelscope/utils/device.py | 45 | Device placement function, allow user to specify which device to place model or tensor Args: framework (str | STRING |
| HIGH | modelscope/utils/repo_utils.py | 127 | Filter repo objects based on an allowlist and a denylist. Input must be a list of paths (`str` or `Path`) or a | STRING |
| HIGH | modelscope/utils/repo_utils.py | 224 | Validate and parse a repo_id in '<owner>/<name>' format. Args: repo_id (str): The repo identifier, | STRING |
| HIGH | modelscope/utils/import_utils.py | 89 | Import modules from the given list of strings. Args: imports (list | str | None): The given module names to | STRING |
| HIGH | modelscope/utils/thread_utils.py | 18 | A decorator to execute a function in a threaded manner using ThreadPoolExecutor. Args: max_workers (in | STRING |
| HIGH | modelscope/models/science/unifold/msa/parsers.py | 404 | Parses the detailed HMM HMM comparison section for a single Hit. This works on .hhr files generated from both HHBli | STRING |
| HIGH | modelscope/models/science/unifold/msa/templates.py | 183 | Determines if template is valid (without parsing the template mmcif file). Args: hit: HhrHit for the templa | STRING |
| HIGH | modelscope/models/science/unifold/msa/templates.py | 243 | Tries to find the template chain in the given pdb file. This method tries the three following things in order: | STRING |
| HIGH | modelscope/models/science/unifold/msa/templates.py | 312 | Aligns template from the mmcif_object to the query. In case PDB70 contains a different version of the template sequ | STRING |
| HIGH | modelscope/models/science/unifold/msa/templates.py | 526 | Parses atom positions in the target structure and aligns with the query. Atoms for each residue in the template str | STRING |
| HIGH | modelscope/models/science/unifold/msa/tools/kalign.py | 49 | Aligns the sequences and returns the alignment in A3M string. Args: sequences: A list of query sequ | STRING |
| HIGH | modelscope/models/science/unifold/msa/tools/hmmbuild.py | 45 | Builds a HHM for the aligned sequences given as an A3M string. Args: sto: A string with the aligned | STRING |
| HIGH | modelscope/models/science/unifold/msa/tools/hmmbuild.py | 61 | Builds a HHM for the aligned sequences given as an A3M string. Args: a3m: A string with the aligned | STRING |
| HIGH | modelscope/models/science/unifold/msa/tools/hmmbuild.py | 83 | Builds a HMM for the aligned sequences given as an MSA string. Args: msa: A string with the aligned | STRING |
| HIGH | …scope/models/science/unifold/data/residue_constants.py | 728 | Maps the given sequence into a one-hot encoded matrix. Args: sequence: An amino acid sequence. mapp | STRING |
| HIGH | …elscope/models/multi_modal/mgeo/text_classification.py | 73 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): In | STRING |
| HIGH | …lscope/models/multi_modal/mgeo/token_classification.py | 98 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): In | STRING |
| HIGH | modelscope/models/nlp/structbert/fill_mask.py | 157 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | modelscope/models/nlp/structbert/backbone.py | 731 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | …lscope/models/nlp/structbert/faq_question_answering.py | 221 | Args: input (Dict[str, Tensor]): the preprocessed data, it contains the following keys: | STRING |
| HIGH | modelscope/models/nlp/structbert/text_classification.py | 114 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | …delscope/models/nlp/structbert/token_classification.py | 111 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | modelscope/models/nlp/task_models/feature_extraction.py | 35 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): In | STRING |
| HIGH | modelscope/models/nlp/task_models/task_model.py | 602 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): In | STRING |
| HIGH | modelscope/models/nlp/plug_mental/backbone.py | 884 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | modelscope/models/nlp/T5/text2text_generation.py | 147 | Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indi | STRING |
| HIGH | modelscope/models/nlp/bloom/sentence_embedding.py | 90 | Args: query (:obj: `dict`): Dict of pretrained models's input for the query sequence. See | STRING |
| HIGH | modelscope/models/nlp/bert/sentence_embedding.py | 72 | Args: query (:obj: `dict`): Dict of pretrained models's input for the query sequence. See | STRING |
| HIGH | modelscope/models/nlp/deberta_v2/fill_mask.py | 87 | Args: input_ids (`torch.LongTensor` of shape `('batch_size, sequence_length')`): In | STRING |
| HIGH | modelscope/models/nlp/deberta_v2/backbone.py | 1104 | Args: input_ids (`torch.LongTensor` of shape `('batch_size, sequence_length')`): In | STRING |
| HIGH | modelscope/models/nlp/space/dialog_modeling.py | 75 | return the result by the model Args: input (Dict[str, Tensor]): the preprocessed data Retu | STRING |
| HIGH | modelscope/models/nlp/megatron_bert/fill_mask.py | 159 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | modelscope/models/nlp/ponet/fill_mask.py | 148 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`('batch_size, sequence_length')`): | STRING |
| HIGH | modelscope/models/nlp/ponet/backbone.py | 715 | Args: input_ids (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`): | STRING |
| HIGH | …e/models/cv/text_to_360panorama_image/pipeline_base.py | 579 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …ope/models/cv/text_to_360panorama_image/pipeline_sr.py | 820 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …scope/models/cv/text_texture_generation/Tex2Texture.py | 296 | Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[st | STRING |
| HIGH | …ocal_feature_matching/src/loftr/utils/fine_matching.py | 58 | Compute the expectation of coordinate values using spatial probabilities. The input heatmap is assumed to represent | STRING |
| HIGH | …detection/scrfd/mmdet_patch/models/backbones/resnet.py | 199 | Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``emp | STRING |
| HIGH | modelscope/models/cv/face_emotion/efficient/utils.py | 346 | Get a block through a string notation of arguments. Args: block_string (str): A string notation of a | STRING |
| HIGH | modelscope/models/base/base_model.py | 102 | Instantiate a model from local directory or remote model repo. Note that when loading from remote, the model rev | STRING |
| HIGH | modelscope/trainers/cli_argument_parser.py | 82 | Parse iterable values in the string. All elements inside '()' or '[]' are treated as iterable values. Ar | STRING |
| HIGH | modelscope/hub/mcp_api.py | 93 | List available MCP servers, if (optional) token is presented, this would return private MCP servers as well. | STRING |
| HIGH | modelscope/hub/mcp_api.py | 217 | Get detailed information for a specific MCP Server, a valid token shall be provided if the MCP server i | STRING |
| HIGH | modelscope/hub/mcp_api.py | 295 | Host an MCP server under your own account. Args: server_id: MCP server ID (e.g., "@amap/am | STRING |
| HIGH | modelscope/hub/deploy.py | 201 | Deploy model to cloud, current we only support PAI EAS, this is an async API , and the deployment could take a w | STRING |
| HIGH | modelscope/hub/deploy.py | 245 | Query the specified instance information. Args: instance_name (str): The deployed instance name. | STRING |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker/build_image.py | 1300 | except Exception as error: | CODE |
| LOW | docker/build_image.py | 1473 | except Exception as build_error: | CODE |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 33 | except Exception: | CODE |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 43 | except Exception: | CODE |
| LOW | …preprocessors/test_action_detection_mapper_security.py | 62 | except Exception: | CODE |
| LOW | tests/studios/test_studio_cli.py | 314 | except Exception: | CODE |
| LOW | tests/pipelines/test_human3d_animation_security.py | 32 | except Exception: | CODE |
| LOW | tests/pipelines/test_tinynas_classification_security.py | 28 | except Exception: | CODE |
| LOW | tests/utils/test_hf_util.py | 608 | except Exception: | CODE |
| LOW | tests/utils/test_hf_util.py | 660 | except Exception as e: | CODE |
| LOW | tests/utils/test_hf_util.py | 664 | except Exception: | CODE |
| LOW | tests/utils/test_hf_util.py | 59 | except Exception as e: | STRING |
| LOW | tests/utils/test_hf_util.py | 125 | except Exception: | STRING |
| LOW | tests/utils/test_hf_util.py | 157 | except Exception: | STRING |
| LOW | tests/utils/test_hf_util.py | 195 | except Exception: | STRING |
| LOW | tests/cli/test_create_cmd.py | 37 | except Exception as e: | CODE |
| MEDIUM | tests/cli/test_create_cmd.py | 38 | print(f'Error deleting model {self.repo_id}: {e}') | CODE |
| LOW | tests/cli/test_modelcard_cmd.py | 35 | except Exception as e: | CODE |
| MEDIUM | tests/cli/test_modelcard_cmd.py | 32 | def tearDown(self): | CODE |
| LOW | tests/cli/test_download_cmd.py | 57 | except Exception as e: | CODE |
| LOW⚡ | tests/cli/test_download_cmd.py | 131 | except Exception as e: | CODE |
| LOW⚡ | tests/cli/test_download_cmd.py | 135 | except Exception as e: | CODE |
| MEDIUM | tests/cli/test_download_cmd.py | 128 | def tearDown(self): | CODE |
| LOW | …s/trainers/test_image_instance_segmentation_trainer.py | 33 | except Exception: | CODE |
| LOW | …/trainers/test_general_image_classification_trainer.py | 36 | except Exception as e: | CODE |
| LOW | tests/hub/test_create_aigc_model.py | 37 | except Exception as e: | CODE |
| LOW⚡ | tests/hub/test_hub_revision_release_mode.py | 51 | except Exception as e: | CODE |
| MEDIUM | tests/hub/test_hub_revision_release_mode.py | 48 | def tearDown(self): | CODE |
| LOW | tests/hub/test_upload_file_folder.py | 55 | except Exception as e: | CODE |
| LOW | tests/hub/test_hub_upload.py | 47 | except Exception as e: | CODE |
| LOW | tests/hub/test_hub_scan_cache.py | 36 | except Exception as e: | CODE |
| LOW | tests/hub/test_hub_scan_cache.py | 44 | except Exception as e: | CODE |
| LOW | tests/hub/test_download_file_lock.py | 74 | except Exception: # noqa | CODE |
| MEDIUM | tests/hub/test_download_file_lock.py | 49 | def test_multi_processing_disabled(self): | CODE |
| MEDIUM | tests/hub/test_commit_scheduler.py | 45 | def cleanup(scheduler): | CODE |
| MEDIUM | tests/hub/test_commit_scheduler.py | 54 | def remove_atexit_callback(scheduler): | CODE |
| LOW⚡ | tests/hub/test_commit_scheduler.py | 49 | except Exception as e: | CODE |
| LOW⚡ | tests/hub/test_commit_scheduler.py | 57 | except Exception as e: | CODE |
| LOW⚡ | tests/hub/test_commit_scheduler.py | 66 | except Exception: | CODE |
| LOW⚡ | tests/hub/test_commit_scheduler.py | 74 | except Exception as e: | CODE |
| LOW⚡ | tests/hub/test_hub_private_files.py | 57 | except Exception as e: | CODE |
| LOW | tests/hub/test_hub_repository.py | 50 | except Exception as e: | CODE |
| LOW | tests/hub/test_hub_operation.py | 47 | except Exception as e: | CODE |
| MEDIUM | tests/hub/test_hub_operation.py | 44 | def tearDown(self): | CODE |
| LOW⚡ | tests/hub/test_hub_private_repository.py | 40 | except Exception as e: | CODE |
| LOW | tests/hub/test_create_repo.py | 30 | except Exception as e: | CODE |
| LOW | tests/hub/test_create_repo.py | 46 | except Exception as e: | CODE |
| LOW | tests/hub/test_create_repo.py | 55 | except Exception as e: | CODE |
| MEDIUM | tests/hub/test_create_repo.py | 24 | def tearDown(self): | CODE |
| LOW | tests/hub/test_hub_revision.py | 44 | except Exception as e: | CODE |
| MEDIUM | tests/hub/test_hub_revision.py | 41 | def tearDown(self): | CODE |
| LOW | modelscope/__init__.py | 130 | except Exception: # noqa | CODE |
| LOW | modelscope/preprocessors/nlp/text_clean.py | 60 | except Exception: | CODE |
| MEDIUM | modelscope/preprocessors/nlp/text_clean.py | 43 | def clean(self, s): | CODE |
| LOW | …reprocessors/nlp/document_segmentation_preprocessor.py | 72 | except Exception as e: | CODE |
| LOW | …processors/nlp/space_T_en/fields/preprocess_dataset.py | 22 | except Exception: | CODE |
| LOW | …pe/preprocessors/nlp/space_T_en/fields/common_utils.py | 438 | except Exception as e: | CODE |
| LOW | modelscope/preprocessors/nlp/space/tokenizer.py | 595 | except Exception: | CODE |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 321 | except Exception as e: | CODE |
| LOW | modelscope/preprocessors/nlp/space/fields/gen_field.py | 457 | except Exception: | CODE |
| 242 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modelscope/preprocessors/kws.py | 14 | __all__ = ['WavToLists'] | CODE |
| LOW | modelscope/preprocessors/multi_modal.py | 33 | __all__ = [ | CODE |
| LOW | modelscope/preprocessors/tts.py | 17 | __all__ = ['KanttsDataPreprocessor'] | CODE |
| LOW | modelscope/preprocessors/asr.py | 12 | __all__ = ['WavToScp'] | CODE |
| LOW | modelscope/preprocessors/science/uni_fold.py | 34 | __all__ = [ | CODE |
| LOW | modelscope/preprocessors/nlp/transformers_tokenizer.py | 16 | __all__ = [ | CODE |
| LOW | modelscope/preprocessors/nlp/utils.py | 20 | __all__ = ['parse_text_and_label', 'labels_to_id'] | CODE |
| LOW | …/space_T_en/conversational_text_to_sql_preprocessor.py | 24 | __all__ = ['ConversationalTextToSqlPreprocessor'] | CODE |
| LOW | …ors/nlp/space/dialog_intent_prediction_preprocessor.py | 16 | __all__ = ['DialogIntentPredictionPreprocessor'] | CODE |
| LOW | …essors/nlp/space/dialog_state_tracking_preprocessor.py | 12 | __all__ = ['DialogStateTrackingPreprocessor'] | CODE |
| LOW | …reprocessors/nlp/space/dialog_modeling_preprocessor.py | 14 | __all__ = ['DialogModelingPreprocessor'] | CODE |
| LOW | modelscope/preprocessors/nlp/space/tokenizer.py | 138 | logger = logging.getLogger(__name__) | CODE |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | …lp/space_T_cn/table_question_answering_preprocessor.py | 18 | __all__ = ['TableQuestionAnsweringPreprocessor'] | CODE |
| LOW | modelscope/fileio/format/jsonplus.py | 26 | __all__ = [ | CODE |
| LOW | modelscope/pipelines/pipeline_template.py | 14 | __all__ = ['PipelineTemplate'] | CODE |
| LOW | …lscope/pipelines/science/protein_structure_pipeline.py | 29 | __all__ = ['ProteinStructurePipeline'] | CODE |
| LOW | …elines/audio/language_recognition_eres2net_pipeline.py | 22 | __all__ = ['LanguageRecognitionPipeline'] | CODE |
| LOW | …pe/pipelines/audio/inverse_text_processing_pipeline.py | 18 | __all__ = ['InverseTextProcessingPipeline'] | CODE |
| LOW | modelscope/pipelines/audio/text_to_speech_pipeline.py | 14 | __all__ = ['TextToSpeechSambertHifiganPipeline'] | CODE |
| LOW | modelscope/pipelines/audio/kws_kwsbp_pipeline.py | 19 | __all__ = ['KeyWordSpottingKwsbpPipeline'] | CODE |
| LOW | …scope/pipelines/audio/language_recognition_pipeline.py | 22 | __all__ = ['LanguageRecognitionPipeline'] | CODE |
| LOW | …delscope/pipelines/audio/speech_separation_pipeline.py | 21 | __all__ = ['SeparationPipeline'] | CODE |
| LOW | modelscope/pipelines/audio/funasr_pipeline.py | 20 | __all__ = ['FunASRPipeline'] | CODE |
| LOW | …pe/pipelines/audio/segmentation_clustering_pipeline.py | 23 | __all__ = ['SegmentationClusteringPipeline'] | CODE |
| LOW | …cope/pipelines/audio/codec_based_synthesis_pipeline.py | 20 | __all__ = ['LauraCodecTTSPipeline'] | CODE |
| LOW | …elscope/pipelines/audio/audio_quantization_pipeline.py | 21 | __all__ = ['AudioQuantizationPipeline'] | CODE |
| LOW | …pipelines/audio/speaker_verification_light_pipeline.py | 22 | __all__ = ['SpeakerVerificationPipeline'] | CODE |
| LOW | …pe/pipelines/audio/speaker_change_locating_pipeline.py | 21 | __all__ = ['SpeakerChangeLocatingPipeline'] | CODE |
| LOW | …lscope/pipelines/audio/asr_wenet_inference_pipeline.py | 16 | __all__ = ['WeNetAutomaticSpeechRecognitionPipeline'] | CODE |
| LOW | …elscope/pipelines/multi_modal/mgeo_ranking_pipeline.py | 16 | __all__ = ['MGeoRankingPipeline'] | CODE |
| LOW | …/pipelines/multi_modal/text_to_image_freeu_pipeline.py | 20 | __all__ = ['FreeUTextToImagePipeline'] | CODE |
| LOW | …ines/multi_modal/visual_question_answering_pipeline.py | 16 | __all__ = ['VisualQuestionAnsweringPipeline'] | CODE |
| LOW | …lines/multi_modal/video_question_answering_pipeline.py | 15 | __all__ = ['VideoQuestionAnsweringPipeline'] | CODE |
| LOW | …scope/pipelines/nlp/translation_evaluation_pipeline.py | 23 | __all__ = ['TranslationEvaluationPipeline'] | CODE |
| LOW | …scope/pipelines/nlp/faq_question_answering_pipeline.py | 13 | __all__ = ['FaqQuestionAnsweringPipeline'] | CODE |
| LOW | …ines/nlp/document_grounded_dialog_generate_pipeline.py | 14 | __all__ = ['DocumentGroundedDialogGeneratePipeline'] | CODE |
| LOW | …scope/pipelines/nlp/automatic_post_editing_pipeline.py | 30 | __all__ = ['AutomaticPostEditingPipeline'] | CODE |
| LOW | …ope/pipelines/nlp/named_entity_recognition_pipeline.py | 12 | __all__ = ['NamedEntityRecognitionPipeline'] | CODE |
| LOW | …cope/pipelines/nlp/interactive_translation_pipeline.py | 28 | __all__ = ['InteractiveTranslationPipeline'] | CODE |
| LOW | …nes/nlp/document_grounded_dialog_retrieval_pipeline.py | 19 | __all__ = ['DocumentGroundedDialogRetrievalPipeline'] | CODE |
| LOW | …pipelines/nlp/fasttext_text_classification_pipeline.py | 17 | __all__ = ['FasttextSequenceClassificationPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/word_alignment_pipeline.py | 15 | __all__ = ['WordAlignmentPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/feature_extraction_pipeline.py | 17 | __all__ = ['FeatureExtractionPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/text_ranking_pipeline.py | 16 | __all__ = ['TextRankingPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/fid_dialogue_pipeline.py | 28 | __all__ = ['FidDialoguePipeline'] | CODE |
| LOW | …pelines/nlp/translation_quality_estimation_pipeline.py | 16 | __all__ = ['TranslationQualityEstimationPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/fill_mask_pipeline.py | 15 | __all__ = ['FillMaskPipeline'] | CODE |
| LOW | …e/pipelines/nlp/conversational_text_to_sql_pipeline.py | 16 | __all__ = ['ConversationalTextToSqlPipeline'] | CODE |
| LOW | …scope/pipelines/nlp/information_extraction_pipeline.py | 14 | __all__ = ['InformationExtractionPipeline'] | CODE |
| LOW | …ope/pipelines/nlp/table_question_answering_pipeline.py | 24 | __all__ = ['TableQuestionAnsweringPipeline'] | CODE |
| LOW | …pipelines/nlp/user_satisfaction_estimation_pipeline.py | 16 | __all__ = ['UserSatisfactionEstimationPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/dialog_modeling_pipeline.py | 14 | __all__ = ['DialogModelingPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/canmt_translation_pipeline.py | 18 | __all__ = ['CanmtTranslationPipeline'] | CODE |
| LOW | modelscope/pipelines/nlp/word_segmentation_pipeline.py | 20 | __all__ = ['WordSegmentationPipeline', 'WordSegmentationThaiPipeline'] | CODE |
| LOW | …scope/pipelines/nlp/polylm_text_generation_pipeline.py | 18 | __all__ = ['PolyLMTextGenerationPipeline'] | CODE |
| LOW | …lscope/pipelines/nlp/document_segmentation_pipeline.py | 22 | __all__ = ['DocumentSegmentationPipeline'] | CODE |
| LOW | …ope/pipelines/nlp/extractive_summarization_pipeline.py | 22 | __all__ = ['ExtractiveSummarizationPipeline'] | CODE |
| LOW | …lscope/pipelines/nlp/text_error_correction_pipeline.py | 16 | __all__ = ['TextErrorCorrectionPipeline'] | CODE |
| LOW | …lscope/pipelines/nlp/dialog_state_tracking_pipeline.py | 14 | __all__ = ['DialogStateTrackingPipeline'] | CODE |
| 253 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/run.py | 570 | except AttributeError or ImportError: | CODE |
| HIGH | tests/run.py | 578 | except AttributeError or ImportError: | CODE |
| HIGH | tests/studios/test_studio_cli.py | 314 | except Exception: | CODE |
| HIGH | tests/utils/test_hf_util_kernels.py | 81 | except AttributeError: | CODE |
| HIGH | tests/utils/test_hf_util.py | 125 | except Exception: | CODE |
| HIGH | tests/utils/test_hf_util.py | 138 | except: # noqa | CODE |
| HIGH | tests/utils/test_hf_util.py | 157 | except Exception: | CODE |
| HIGH | tests/utils/test_hf_util.py | 195 | except Exception: | CODE |
| HIGH | tests/utils/test_hf_util.py | 608 | except Exception: | CODE |
| HIGH | tests/utils/test_hf_util.py | 664 | except Exception: | CODE |
| HIGH | tests/hub/test_download_file_lock.py | 74 | except Exception: # noqa | CODE |
| HIGH | tests/hub/test_commit_scheduler.py | 66 | except Exception: | CODE |
| HIGH | modelscope/__init__.py | 130 | except Exception: # noqa | CODE |
| HIGH | …ope/preprocessors/nlp/space_T_cn/fields/schema_link.py | 53 | except ValueError: | CODE |
| HIGH | …ope/preprocessors/nlp/space_T_cn/fields/schema_link.py | 60 | except (TypeError, ValueError): | CODE |
| HIGH | modelscope/preprocessors/templates/loader.py | 1044 | except Exception: | CODE |
| HIGH | modelscope/preprocessors/templates/template.py | 1673 | except ValueError: | CODE |
| HIGH | modelscope/preprocessors/templates/base.py | 50 | except ValueError: | CODE |
| HIGH | modelscope/fileio/format/jsonplus.py | 22 | except ImportError: | CODE |
| HIGH | modelscope/pipelines/base.py | 513 | except AttributeError: | CODE |
| HIGH | modelscope/utils/plugins.py | 570 | except Exception: | CODE |
| HIGH | modelscope/utils/test_utils.py | 44 | except Exception: | CODE |
| HIGH | modelscope/utils/config.py | 726 | except TypeError: | CODE |
| HIGH | modelscope/utils/import_utils.py | 194 | except importlib_metadata.PackageNotFoundError: | CODE |
| HIGH | modelscope/utils/regress_test_utils.py | 448 | except MsRegressTool.EarlyStopError: | CODE |
| HIGH | modelscope/utils/audio/audio_utils.py | 118 | except Exception: | CODE |
| HIGH | modelscope/utils/hf_util/patcher.py | 82 | except: # noqa | CODE |
| HIGH | modelscope/utils/hf_util/patcher.py | 98 | except: # noqa | CODE |
| HIGH | modelscope/utils/hf_util/patcher.py | 609 | except Exception: # noqa | CODE |
| HIGH | modelscope/utils/hf_util/patcher.py | 76 | except: # noqa | CODE |
| HIGH | modelscope/utils/hf_util/patcher.py | 118 | except: # noqa | CODE |
| HIGH | modelscope/models/audio/aec/jaec.py | 113 | except Exception: | CODE |
| HIGH | …elscope/models/cv/anydoor/ldm/models/diffusion/ddpm.py | 1493 | except KeyError: | CODE |
| HIGH | …e/models/cv/dense_optical_flow_estimation/core/corr.py | 9 | except ModuleNotFoundError: | CODE |
| HIGH | …cope/models/cv/video_object_segmentation/mod_resnet.py | 168 | except Exception: | CODE |
| HIGH | …lscope/models/cv/nerf_recon_vq_compression/renderer.py | 69 | except Exception: | CODE |
| HIGH | …lscope/models/cv/nerf_recon_vq_compression/renderer.py | 165 | except Exception: | CODE |
| HIGH | …e/models/cv/video_multi_object_tracking/models/yolo.py | 84 | except Exception: | CODE |
| HIGH | …v/controllable_image_generation/annotator/annotator.py | 76 | except Exception: | CODE |
| HIGH | …/controllable_image_generation/annotator/mlsd/utils.py | 607 | except Exception: | CODE |
| HIGH | …models/cv/video_stabilization/utils/ProjectionUtils.py | 193 | except Exception: | CODE |
| HIGH | …elscope/models/cv/video_stabilization/DUT/rf_det_so.py | 211 | except Exception: | CODE |
| HIGH | …ope/models/cv/video_stabilization/DUT/rf_det_module.py | 219 | except Exception: | CODE |
| HIGH | …elscope/models/cv/video_stabilization/DUT/RAFT/corr.py | 12 | except Exception: | CODE |
| HIGH | …ion/scrfd/mmdet_patch/models/dense_heads/scrfd_head.py | 231 | except Exception: | CODE |
| HIGH | modelscope/cli/llamafile.py | 140 | except ModuleNotFoundError: | CODE |
| HIGH | modelscope/trainers/nlp_trainer.py | 64 | except AttributeError: | CODE |
| HIGH | modelscope/trainers/cli_argument_parser.py | 68 | except ValueError: | CODE |
| HIGH | modelscope/trainers/cli_argument_parser.py | 72 | except ValueError: | CODE |
| HIGH | modelscope/trainers/hooks/compression/utils.py | 138 | except ImportError: | CODE |
| HIGH | …s/image_control_3d_portrait/torch_utils/persistence.py | 144 | except TypeError: | CODE |
| HIGH | modelscope/msdatasets/utils/hf_datasets_util.py | 471 | except Exception: | CODE |
| HIGH | modelscope/hub/file_download.py | 79 | except Exception: | CODE |
| HIGH | modelscope/hub/check_model.py | 104 | except: # noqa: E722 | CODE |
| HIGH | modelscope/hub/repository.py | 49 | except GitError: | CODE |
| HIGH | modelscope/hub/utils/caching.py | 93 | except OSError: | CODE |
| HIGH | modelscope/hub/utils/caching.py | 75 | except OSError: | CODE |
| HIGH | modelscope/hub/utils/caching.py | 209 | except OSError: | CODE |
| HIGH | modelscope/hub/utils/utils.py | 496 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/weight_diff.py | 1 | # Copyright 2023 Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li | COMMENT |
| LOW | docs/source/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/source/conf.py | 81 | source_suffix = ['.rst', '.md'] | COMMENT |
| LOW | docs/source/conf.py | 101 | # 'faq.md', | COMMENT |
| LOW | docs/source/conf.py | 121 | COMMENT | |
| LOW | modelscope/pipeline_inputs.py | 321 | InputKeys.IMAGE: InputType.IMAGE, | COMMENT |
| LOW | …rics/video_super_resolution_metric/matlab_functions.py | 41 | # in output space maps to 0.5 in input space, and 0.5 + scale in output | COMMENT |
| LOW | modelscope/preprocessors/nlp/space/tokenizer.py | 121 | COMMENT | |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 1 | # | COMMENT |
| LOW | modelscope/preprocessors/nlp/space/dst_processors.py | 961 | # type_ids: 0 0 0 0 0 0 0 | COMMENT |
| LOW | modelscope/preprocessors/nlp/space/tensorlistdataset.py | 1 | # | COMMENT |
| LOW | modelscope/fileio/format/jsonplus.py | 21 | from moneyed import Currency, Money | COMMENT |
| LOW | modelscope/fileio/format/jsonplus.py | 41 | # respectively. | COMMENT |
| LOW | …s/multi_modal/disco_guided_diffusion_pipeline/utils.py | 201 | # only used for by_convs, to calc the boundaries of each filter the | COMMENT |
| LOW | …s/multi_modal/disco_guided_diffusion_pipeline/utils.py | 261 | # along cur dim)- a list of 1d neighbors locations. | COMMENT |
| LOW | modelscope/pipelines/cv/ocr_utils/resnet18_v1.py | 1 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | modelscope/pipelines/cv/ocr_utils/resnet_utils.py | 1 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | modelscope/pipelines/cv/ocr_utils/resnet_utils.py | 241 | with slim.arg_scope([slim.batch_norm], **batch_norm_params): | COMMENT |
| LOW | modelscope/utils/nlp/distributed.py | 1 | # Copyright 2021-2022 The Alibaba DAMO NLP Team Authors. | COMMENT |
| LOW | modelscope/utils/nlp/load_checkpoint.py | 1 | # Copyright 2021-2022 The Alibaba DAMO NLP Team Authors. | COMMENT |
| LOW | modelscope/models/science/unifold/msa/mmcif.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …delscope/models/science/unifold/msa/msa_identifiers.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/parsers.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/templates.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/pipeline.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …delscope/models/science/unifold/msa/tools/hmmsearch.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/hhblits.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/__init__.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/kalign.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/utils.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/hmmbuild.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …delscope/models/science/unifold/msa/tools/jackhmmer.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/msa/tools/hhsearch.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …lscope/models/science/unifold/data/process_multimer.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/data/__init__.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | modelscope/models/science/unifold/data/protein.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …scope/models/science/unifold/data/residue_constants.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …scope/models/science/unifold/data/residue_constants.py | 121 | [0.0, 0.0, 0.0, 0.0], # TRP | COMMENT |
| LOW | modelscope/models/science/unifold/data/msa_pairing.py | 1 | # Copyright 2021 DeepMind Technologies Limited | COMMENT |
| LOW | …elscope/models/audio/ans/zipenhancer_layers/scaling.py | 1 | # Copyright 2022-2023 Xiaomi Corp. (authors: Daniel Povey) | COMMENT |
| LOW | …elscope/models/audio/ans/zipenhancer_layers/scaling.py | 41 | # models to ONNX via torch.jit.trace() | COMMENT |
| LOW | …scope/models/audio/ans/zipenhancer_layers/zipformer.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | …scope/models/audio/ans/zipenhancer_layers/zipformer.py | 501 | compression_length = self.embed_dim**0.5 | COMMENT |
| LOW | …scope/models/audio/ans/zipenhancer_layers/zipformer.py | 721 | # inplace operator important | COMMENT |
| LOW | …cope/models/audio/sv/speaker_change_locator_xvector.py | 121 | # e: (BT, F) | COMMENT |
| LOW | modelscope/models/audio/sv/speaker_change_locator.py | 121 | # e: (BT, F) | COMMENT |
| LOW | modelscope/models/audio/kws/farfield/fsmn_sele_v2.py | 161 | numouts = 1.0 | COMMENT |
| LOW | modelscope/models/audio/kws/nearfield/cmvn.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | …delscope/models/multi_modal/clip/configuration_bert.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | COMMENT |
| LOW | modelscope/models/multi_modal/clip/bert_tokenizer.py | 1 | # Copyright 2018 The Google AI Language Team Authors. | COMMENT |
| LOW | modelscope/models/multi_modal/clip/model.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | COMMENT |
| LOW | modelscope/models/multi_modal/clip/modeling_bert.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | COMMENT |
| LOW | modelscope/models/multi_modal/clip/modeling_bert.py | 461 | # used in OpenAI GPT, we just need to prepare the broadcast dimension here. | COMMENT |
| LOW | …lscope/models/multi_modal/prost/models/until_module.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | COMMENT |
| LOW | …lscope/models/multi_modal/prost/models/until_module.py | 201 | for name, child in module._modules.items(): | COMMENT |
| LOW | …lscope/models/multi_modal/prost/models/until_config.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. | COMMENT |
| LOW | modelscope/models/multi_modal/prost/models/modeling.py | 121 | cp_weight = torch.cat(cat_list, dim=2) | COMMENT |
| LOW | modelscope/models/multi_modal/prost/models/modeling.py | 281 | # show_log(task_config, "\t embed_dim: {}".format(embed_dim)) | COMMENT |
| LOW | modelscope/models/multi_modal/diffusion/structbert.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team and Alibaba inc. | COMMENT |
| LOW | modelscope/models/multi_modal/diffusion/tokenizer.py | 1 | # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team and Alibaba inc. | COMMENT |
| 225 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docker/build_image.py | 128 | ret = self.push() | CODE |
| HIGH | docker/build_image.py | 640 | return ('cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone -b ' | CODE |
| HIGH⚡ | …preprocessors/test_action_detection_mapper_security.py | 131 | "'echo HACKED && touch {}')").format(canary) | CODE |
| HIGH⚡ | tests/pipelines/test_tinynas_classification_security.py | 69 | "__import__('os').system('echo HACKED && touch {}')".format( | CODE |
| HIGH | tests/cli/test_download_cmd.py | 50 | repo.push('add model') | CODE |
| HIGH⚡ | tests/hub/test_hub_revision_release_mode.py | 60 | self.repo.push('add model') | CODE |
| HIGH⚡ | tests/hub/test_hub_revision_release_mode.py | 69 | self.repo.push('add new file') | CODE |
| HIGH⚡ | tests/hub/test_hub_revision_release_mode.py | 75 | self.repo.push('add new file', remote_branch=branch_name) | CODE |
| HIGH⚡ | tests/hub/test_hub_private_files.py | 47 | repo.push('add model') | CODE |
| HIGH | tests/hub/test_hub_repository.py | 73 | repo.push('test') | CODE |
| HIGH | tests/hub/test_hub_repository.py | 93 | repo.push('test') | CODE |
| HIGH | tests/hub/test_hub_operation.py | 56 | repo.push('add model') | CODE |
| HIGH | tests/hub/test_hub_revision.py | 53 | self.repo.push('add model') | CODE |
| HIGH | tests/hub/test_hub_revision.py | 80 | self.repo.push('add new file') | CODE |
| HIGH | modelscope/fileio/format/jsonplus.py | 139 | Predicate priority. If undefined, encoder is added at | STRING |
| HIGH | modelscope/fileio/format/jsonplus.py | 164 | # if priority undefined, set it to lowest | COMMENT |
| HIGH | …lscope/trainers/nlp/sequence_classification_trainer.py | 37 | """get attribute from config, if the attribute does exist, return false | STRING |
| HIGH | modelscope/msdatasets/ms_dataset.py | 506 | _repo.push(commit_message=commit_message, branch=revision, force=force) | STRING |
| HIGH | modelscope/hub/push_to_hub.py | 66 | repo.push(commit_message) | CODE |
| HIGH | modelscope/hub/repository.py | 145 | self.git_wrapper.push( | CODE |
| HIGH | modelscope/hub/repository.py | 262 | self.git_wrapper.push( | CODE |
| HIGH⚡ | modelscope/hub/utils/utils.py | 386 | repo.push(commit_message) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | modelscope/models/multi_modal/prost/models/modeling.py | 94 | kernel_size = model.clip.visual.conv2.weight.size(2) | CODE |
| CRITICAL | modelscope/models/multi_modal/prost/models/modeling.py | 95 | conv2_size = model.clip.visual.conv2.weight.size() | CODE |
| CRITICAL | modelscope/models/nlp/codegeex/codegeex.py | 1007 | self.language_model.embedding.word_embeddings.weight.half()) | CODE |
| CRITICAL⚡ | modelscope/models/nlp/plug/distributed_plug.py | 96 | model.module.model.bert.embeddings.word_embeddings.float() | CODE |
| CRITICAL⚡ | modelscope/models/nlp/plug/distributed_plug.py | 97 | model.module.model.bert.embeddings.position_embeddings.float() | CODE |
| CRITICAL⚡ | modelscope/models/nlp/plug/distributed_plug.py | 98 | model.module.model.bert.embeddings.token_type_embeddings.float( | CODE |
| CRITICAL⚡ | modelscope/models/nlp/plug/distributed_plug.py | 101 | model.module.model.bert.embeddings.token_type_embeddings.float( | CODE |
| CRITICAL | …lti_modal/custom_diffusion/custom_diffusion_trainer.py | 390 | self.model.text_encoder.text_model.encoder.parameters(), | CODE |
| CRITICAL | …lti_modal/custom_diffusion/custom_diffusion_trainer.py | 391 | self.model.text_encoder.text_model.final_layer_norm.parameters(), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/hub/test_create_aigc_model.py | 25 | # Create a dummy file for AIGC model test | COMMENT |
| MEDIUM | modelscope/preprocessors/nlp/space/dst_processors.py | 69 | """This method is to generate the utterances with user, sys, dialog_acts and metadata, | STRING |
| MEDIUM | modelscope/exporters/torch_model_exporter.py | 356 | """This function is used to recover the original call method. | STRING |
| MEDIUM | modelscope/pipelines/nlp/distributed_plug_pipeline.py | 18 | """This class is used to instantiate the plug model. | STRING |
| MEDIUM | modelscope/pipelines/nlp/distributed_gpt3_pipeline.py | 21 | """This class is used to instantiate the gpt3 model. | STRING |
| MEDIUM | …delscope/pipelines/nlp/distributed_gpt_moe_pipeline.py | 18 | """This class is used to instantiate the gpt-moe model. | STRING |
| MEDIUM | modelscope/utils/plugins.py | 2 | # This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp | COMMENT |
| MEDIUM | modelscope/utils/regress_test_utils.py | 27 | """This class is used to stop inference/training results from changing by some unaware affections by unittests. | STRING |
| MEDIUM | modelscope/utils/thread_utils.py | 47 | # Create a tqdm progress bar with the total number of items to process | COMMENT |
| MEDIUM | modelscope/utils/thread_utils.py | 56 | # Define a wrapper function to update the progress bar | COMMENT |
| MEDIUM | …scope/models/science/unifold/data/residue_constants.py | 491 | # Create a fast lookup dict for bond lengths. | COMMENT |
| MEDIUM | …scope/models/science/unifold/data/residue_constants.py | 798 | # Define a restype name for all unknown residues. | COMMENT |
| MEDIUM | …scope/models/science/unifold/data/residue_constants.py | 1171 | # Create an ambiguous atoms mask. shape: (21, 14). | COMMENT |
| MEDIUM | modelscope/models/science/unifold/data/data_ops.py | 809 | # Create a mask for known ground truth positions. | COMMENT |
| MEDIUM | modelscope/models/science/unifold/data/data_ops.py | 846 | # Create the mask for the alternative ground truth (differs from the | COMMENT |
| MEDIUM | …elscope/models/audio/ans/zipenhancer_layers/scaling.py | 40 | # The following function is to solve the above error when exporting | COMMENT |
| MEDIUM | modelscope/models/audio/separation/mossformer.py | 229 | """This class implements the transformer encoder. | STRING |
| MEDIUM | modelscope/models/audio/separation/m2/mossformer.py | 262 | """This class implements the transformer encoder. | STRING |
| MEDIUM | …pe/models/multi_modal/vldoc/modeling_layout_roberta.py | 252 | # Create the position ids from the input token ids. Any padded tokens remain padded. | COMMENT |
| MEDIUM | …/models/multi_modal/ofa/generate/sequence_generator.py | 694 | # Create a set of "{sent}{unfin_idx}", where | COMMENT |
| MEDIUM | modelscope/models/nlp/mglm/data_utils/file_utils.py | 2 | # This file is provided as is from: | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/moe/sharded_moe.py | 157 | # The following functions are extracted and scripted | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/moe/sharded_moe.py | 210 | # Create a mask for 1st's expert per token | COMMENT |
| MEDIUM | modelscope/models/nlp/gpt_moe/moe/utils.py | 94 | # Create the param MoE groups, leave param assign to next step | COMMENT |
| MEDIUM | modelscope/models/nlp/xlm_roberta/backbone.py | 114 | # Create the position ids from the input token ids. Any padded tokens remain padded. | COMMENT |
| MEDIUM | modelscope/models/nlp/deberta_v2/backbone.py | 83 | >>> # Create a mask | STRING |
| MEDIUM | …lscope/models/nlp/llama/convert_llama_weights_to_hf.py | 27 | # This file is mainly copied from the llama code of transformers | COMMENT |
| MEDIUM | modelscope/models/nlp/llama/text_generation.py | 73 | # This file is mainly copied from the llama code of transformers | COMMENT |
| MEDIUM | …odels/cv/image_control_3d_portrait/network/triplane.py | 100 | # Create a batch of rays for volume rendering | COMMENT |
| MEDIUM | …inynas_detection/damo/base_models/core/ota_assigner.py | 129 | # Create an overlap for each predicted box | COMMENT |
| MEDIUM | modelscope/models/cv/human3d_animation/utils.py | 250 | # The following code is based on https://github.com/Mathux/ACTOR.git | COMMENT |
| MEDIUM | …scope/models/cv/video_depth_estimation/utils/config.py | 68 | # Create a name based on available information | COMMENT |
| MEDIUM | modelscope/msdatasets/download/dataset_builder.py | 403 | # Create a dataset for each of the given splits | COMMENT |
| MEDIUM | modelscope/hub/cache_manager.py | 507 | # Create a single revision from cached files | COMMENT |
| MEDIUM | modelscope/hub/cache_manager.py | 522 | # Create a CachedRevisionInfo for the repository | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modelscope/pipelines/builder.py | 150 | # if not specified in both args and configuration.json, prefer llm pipeline for aforementioned tasks | COMMENT |
| MEDIUM | …elines/nlp/document_grounded_dialog_rerank_pipeline.py | 398 | # 2. check what's the minimum number of predicted pages needed to get a robust P/R@k | COMMENT |
| MEDIUM | modelscope/utils/plugins.py | 1181 | """update the plugins file in order to maintain the latest plugins information | STRING |
| MEDIUM | modelscope/models/science/unifold/msa/templates.py | 605 | # Essentially set to infinity - we don't want to reject templates unless | COMMENT |
| LOW | …scope/models/audio/ans/zipenhancer_layers/zipformer.py | 227 | # only need the mask, can just use the 1st one and expand later | COMMENT |
| MEDIUM | …delscope/models/multi_modal/clip_interrogator/model.py | 80 | # CLIP-Interrogator utilize CLIP and BLIP to generate rich caption for images. | COMMENT |
| MEDIUM | …elscope/models/nlp/mglm/mglm_for_text_summarization.py | 169 | # https://medium.com/huggingface/how-to-build-a-state-of-the-art-conversational-ai-with-transfer-learning-2d818ac263 | COMMENT |
| MEDIUM | modelscope/models/nlp/peer/backbone.py | 174 | self.side_info_size = 16 # leverage the information of token_position_in_sentence | CODE |
| MEDIUM | modelscope/models/nlp/plug/distributed_plug.py | 124 | # https://medium.com/huggingface/how-to-build-a-state-of-the-art- | COMMENT |
| MEDIUM | …scope/models/cv/image_to_image_translation/ops/apps.py | 2 | # APPs that facilitate the use of pretrained neural networks. | COMMENT |
| LOW | …/models/cv/image_to_3d/ldm/modules/encoders/modules.py | 18 | # TODO: can we directly rely on lucidrains code and simply add this as a requirement? --> test | COMMENT |
| LOW | …pe/models/cv/nerf_recon_acc/dataloader/nerf_dataset.py | 289 | # just use white during inference | COMMENT |
| LOW | …pe/models/cv/nerf_recon_acc/dataloader/nerf_dataset.py | 508 | # just use white during inference | COMMENT |
| LOW | …facial_68ldk_detection/lib/dataset/alignmentDataset.py | 94 | # If not, just return the image as is | COMMENT |
| LOW | …68ldk_detection/lib/dataset/encoder/encoder_default.py | 45 | # If not, just return the image as is | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 180 | # Step 1: rescale focal length according to training resolution | COMMENT |
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 190 | # Step 2: correct poses | COMMENT |
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 198 | # Step 3: correct scale so that the nearest depth is at a little more than 1.0 | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 248 | # Step 1: Network forward, get detections & embeddings | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 288 | # Step 2: First association, with embedding | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 307 | # Step 3: Second association, with IOU | COMMENT |
| LOW⚡ | …cv/video_multi_object_tracking/tracker/multitracker.py | 345 | # Step 4: Init new stracks | COMMENT |
| LOW⚡ | …cv/video_multi_object_tracking/tracker/multitracker.py | 352 | # Step 5: Update state | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 25 | # Step 1: 数据集准备,可以使用modelscope上已有的数据集,也可以自己在本地构建COCO数据集 | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 37 | # Step 2: 相关参数设置 | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 62 | # Step 3: 开启训练任务 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 180 | # Step 1: rescale focal length according to training resolution | COMMENT |
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 190 | # Step 2: correct poses | COMMENT |
| LOW⚡ | …models/cv/nerf_recon_vq_compression/dataloader/llff.py | 198 | # Step 3: correct scale so that the nearest depth is at a little more than 1.0 | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 248 | # Step 1: Network forward, get detections & embeddings | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 288 | # Step 2: First association, with embedding | COMMENT |
| LOW | …cv/video_multi_object_tracking/tracker/multitracker.py | 307 | # Step 3: Second association, with IOU | COMMENT |
| LOW⚡ | …cv/video_multi_object_tracking/tracker/multitracker.py | 345 | # Step 4: Init new stracks | COMMENT |
| LOW⚡ | …cv/video_multi_object_tracking/tracker/multitracker.py | 352 | # Step 5: Update state | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 25 | # Step 1: 数据集准备,可以使用modelscope上已有的数据集,也可以自己在本地构建COCO数据集 | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 37 | # Step 2: 相关参数设置 | COMMENT |
| LOW | …es/pytorch/human_detection/finetune_human_detection.py | 62 | # Step 3: 开启训练任务 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modelscope/exporters/torch_model_exporter.py | 138 | # Check if this arg has a default value | COMMENT |
| LOW | modelscope/models/nlp/mglm/generation_utils.py | 244 | # Check if we are done so that we can save a pad step if all(done) | STRING |
| LOW | modelscope/models/nlp/T5/backbone.py | 926 | # Set embed_tokens to first layer | STRING |
| LOW | modelscope/models/nlp/heads/crf_head.py | 356 | # Set score to the next score if this timestep is valid (mask == 1) | COMMENT |
| LOW | modelscope/models/nlp/heads/crf_head.py | 424 | # Set score to the next score if this timestep is valid (mask == 1) | COMMENT |
| LOW | modelscope/models/nlp/heads/crf_head.py | 527 | # Set score to the next score if this timestep is valid (mask == 1) | COMMENT |
| LOW | …lscope/models/cv/video_depth_estimation/utils/image.py | 20 | # Check if camera opened successfully | COMMENT |
| LOW | …s/cv/video_depth_estimation/models/model_checkpoint.py | 112 | # Check if saving or not | COMMENT |
| LOW | …lti_modal/custom_diffusion/custom_diffusion_trainer.py | 365 | # Check if initializer_token is a single token or a sequence of tokens | COMMENT |
| LOW | …rainers/nlp/document_grounded_dialog_rerank_trainer.py | 438 | # Check if saved optimizer or scheduler states exist | COMMENT |
| LOW | modelscope/hub/file_download.py | 234 | # Check if download is complete | COMMENT |
| LOW⚡ | modelscope/hub/utils/utils.py | 380 | # Write the file if it has changed | COMMENT |
| LOW | modelscope/hub/utils/aigc.py | 126 | # Check if it's a local file path (not a URL) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modelscope/models/multi_modal/mgeo/backbone.py | 1784 | dummy_token = torch.full((effective_batch_size, 1), | STRING |
| LOW | modelscope/models/multi_modal/mgeo/backbone.py | 1788 | input_ids = torch.cat([input_ids, dummy_token], dim=1) | STRING |
| LOW | modelscope/models/multi_modal/mgeo/backbone.py | 1911 | dummy_token = torch.full((effective_batch_size, 1), | STRING |
| LOW | modelscope/models/multi_modal/mgeo/backbone.py | 1915 | input_ids = torch.cat([input_ids, dummy_token], dim=1) | STRING |
| LOW | modelscope/models/nlp/structbert/fill_mask.py | 280 | dummy_token = torch.full((effective_batch_size, 1), | STRING |
| LOW | modelscope/models/nlp/structbert/fill_mask.py | 284 | input_ids = torch.cat([input_ids, dummy_token], dim=1) | STRING |
| LOW | modelscope/models/nlp/task_models/fill_mask.py | 68 | dummy_token = torch.full((effective_batch_size, 1), | CODE |
| LOW | modelscope/models/nlp/task_models/fill_mask.py | 72 | input_ids = torch.cat([input_ids, dummy_token], dim=1) | CODE |
| LOW | modelscope/models/nlp/megatron_bert/fill_mask.py | 281 | dummy_token = torch.full((effective_batch_size, 1), | STRING |
| LOW | modelscope/models/nlp/megatron_bert/fill_mask.py | 285 | input_ids = torch.cat([input_ids, dummy_token], dim=1) | STRING |
| LOW | …dels/cv/face_reconstruction/models/pix2pix/networks.py | 361 | fake_data, | CODE |
| LOW | …dels/cv/face_reconstruction/models/pix2pix/networks.py | 371 | fake_data (tensor array) -- generated images from the generator | STRING |
| LOW | …dels/cv/face_reconstruction/models/pix2pix/networks.py | 384 | interpolatesv = fake_data | CODE |
| LOW | …dels/cv/face_reconstruction/models/pix2pix/networks.py | 391 | interpolatesv = alpha * real_data + ((1 - alpha) * fake_data) | CODE |
| LOW | …e/models/cv/video_panoptic_segmentation/video_k_net.py | 142 | previous='placeholder', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …delscope/models/multi_modal/clip_interrogator/model.py | 81 | # CLIP is a zero-shot image classifier which can be used to generate image and text embeddings. | COMMENT |
| MEDIUM | modelscope/outputs/outputs.py | 1172 | # zero-shot classification result for single sample | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modelscope/models/multi_modal/mgeo/backbone.py | 2501 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modelscope/models/nlp/plug/AnnealingLR.py | 59 | # TODO: implement exponential decay | COMMENT |