Look Into Slow Tests
维护者通常 3 天内回复
@ericspod 已经在做这个了。
开始于 2026年9月28日。
评估
这个 Issue 还没有评估数据。
描述
I ran each test file individually recently with a 2-GPU setup. Below are those files which took more than 5 seconds to run when excluding the import and initialisation time. It would be good to look into why these are slow (much probably has to do with download times), reduce the amount of redundant testing, and otherwise try to streamline things.
| Filename | Time (s) |
|---|---|
| integration/test_integration_classification_2d.py | 580.076 |
| bundle/test_bundle_trt_export.py | 538.953 |
| integration/test_integration_bundle_run.py | 439.857 |
| integration/test_integration_segmentation_3d.py | 438.660 |
| utils/enums/test_wsireader.py | 404.262 |
| integration/test_integration_workflows.py | 336.788 |
| bundle/test_bundle_download.py | 323.891 |
| integration/test_integration_workflows_adversarial.py | 300.619 |
| integration/test_integration_autorunner.py | 276.426 |
| bundle/test_bundle_ckpt_export.py | 219.295 |
| fl/test_fl_monai_algo_stats.py | 218.605 |
| fl/monai_algo/test_fl_monai_algo_dist.py | 194.986 |
| integration/test_auto3dseg_hpo.py | 193.460 |
| networks/test_convert_to_trt.py | 139.984 |
| data/test_sampler_dist.py | 132.943 |
| integration/test_integration_workers.py | 126.904 |
| integration/test_integration_workflows_gan.py | 116.990 |
| integration/test_auto3dseg_ensemble.py | 110.056 |
| integration/test_integration_gpu_customization.py | 103.974 |
| apps/test_auto3dseg.py | 95.528 |
| data/test_itk_torch_bridge.py | 89.321 |
| networks/layers/test_gmm.py | 77.592 |
| networks/nets/test_resnet.py | 77.323 |
| bundle/test_bundle_verify_net.py | 71.664 |
| handlers/test_handler_regression_metrics_dist.py | 70.013 |
| data/test_mapping_file.py | 58.906 |
| networks/layers/filtering/test_trainable_joint_bilateral.py | 49.001 |
| networks/nets/test_dints_network.py | 46.907 |
| apps/test_auto3dseg_bundlegen.py | 46.594 |
| networks/nets/test_efficientnet.py | 44.872 |
| integration/test_integration_fast_train.py | 44.561 |
| networks/layers/filtering/test_trainable_bilateral.py | 41.359 |
| bundle/test_bundle_verify_metadata.py | 36.982 |
| transforms/test_ultrasound_confidence_map_transform.py | 36.933 |
| networks/nets/test_bundle_init_bundle.py | 36.709 |
| test_timedcall_dist.py | 36.706 |
| networks/test_bundle_onnx_export.py | 36.660 |
| bundle/test_config_parser.py | 35.723 |
| transforms/inverse/test_inverse.py | 35.345 |
| inferers/test_sliding_window_inference.py | 34.826 |
| data/test_weighted_random_sampler_dist.py | 33.763 |
| data/test_persistentdataset_dist.py | 33.200 |
| engines/test_prepare_batch_default_dist.py | 32.900 |
| transforms/test_load_image.py | 32.425 |
| networks/nets/test_senet.py | 32.328 |
| networks/blocks/test_selfattention.py | 32.323 |
| networks/layers/test_gaussian_filter.py | 32.077 |
| bundle/test_bundle_utils.py | 32.029 |
| losses/test_perceptual_loss.py | 28.908 |
| apps/detection/networks/test_retinanet.py | 26.551 |
| networks/blocks/warp/test_warp.py | 26.534 |
| optimizers/test_optim_novograd.py | 21.369 |
| handlers/test_handler_garbage_collector.py | 21.284 |
| networks/nets/test_unetr.py | 21.035 |
| apps/test_mednistdataset.py | 20.684 |
| networks/nets/test_highresnet.py | 20.231 |
| networks/blocks/test_crossattention.py | 19.984 |
| transforms/test_inverse_collation.py | 19.824 |
| config/test_cv2_dist.py | 19.403 |
| networks/nets/test_densenet.py | 18.834 |
| fl/monai_algo/test_fl_monai_algo.py | 18.810 |
| networks/nets/test_swin_unetr.py | 18.792 |
| integration/test_integration_stn.py | 18.156 |
| integration/test_integration_determinism.py | 18.071 |
| handlers/test_handler_confusion_matrix_dist.py | 18.069 |
| utils/test_rankfilter_dist.py | 17.819 |
| data/test_lmdbdataset_dist.py | 17.652 |
| handlers/test_handler_rocauc_dist.py | 17.641 |
| handlers/test_handler_average_precision.py | 17.598 |
| handlers/test_handler_metrics_saver_dist.py | 17.519 |
| handlers/test_handler_classification_saver_dist.py | 17.517 |
| metrics/test_cumulative_average_dist.py | 17.467 |
| transforms/test_intensity_statsd.py | 17.304 |
| integration/test_integration_unet_2d.py | 17.053 |
| data/test_make_nifti.py | 16.725 |
| integration/test_integration_sliding_window.py | 16.366 |
| networks/nets/test_ahnet.py | 15.602 |
| handlers/test_handler_mlflow.py | 15.595 |
| integration/test_vis_gradbased.py | 15.586 |
| transforms/test_utils_pytorch_numpy_unification.py | 15.439 |
| metrics/test_hausdorff_distance.py | 15.134 |
| data/test_cachedataset.py | 15.014 |
| networks/nets/test_daf3d.py | 13.200 |
| apps/test_download_and_extract.py | 12.682 |
| apps/test_cross_validation.py | 12.374 |
| networks/layers/filtering/test_bilateral_precise.py | 11.086 |
| transforms/test_spacing.py | 10.760 |
| inferers/test_controlnet_inferers.py | 10.334 |
| transforms/test_load_imaged.py | 10.105 |
| networks/test_convert_to_onnx.py | 10.082 |
| networks/nets/test_vitautoenc.py | 9.830 |
| networks/nets/test_transchex.py | 9.795 |
| apps/vista3d/test_point_based_window_inferer.py | 9.791 |
| networks/nets/test_masked_autoencoder_vit.py | 9.733 |
| networks/blocks/test_transformerblock.py | 9.419 |
| integration/test_meta_affine.py | 9.076 |
| networks/nets/test_vit.py | 8.909 |
| networks/nets/test_vista3d.py | 8.744 |
| visualize/test_vis_gradcam.py | 8.624 |
| networks/nets/test_hovernet.py | 8.578 |
| apps/test_tciadataset.py | 8.276 |
| inferers/test_latent_diffusion_inferer.py | 7.934 |
| apps/detection/networks/test_retinanet_detector.py | 7.833 |
| data/test_arraydataset.py | 7.601 |
| networks/nets/test_milmodel.py | 7.597 |
| bundle/test_bundle_workflow.py | 7.538 |
| data/test_patch_wsi_dataset.py | 7.416 |
| integration/test_mapping_filed.py | 7.087 |
| networks/blocks/test_unetr_block.py | 7.082 |
| transforms/inverse/test_invertd.py | 7.044 |
| transforms/test_rand_torchio.py | 7.033 |
| networks/nets/test_dynunet.py | 6.875 |
| networks/nets/test_torchvision_fc_model.py | 6.852 |
| losses/test_hausdorff_loss.py | 6.844 |
| optimizers/test_lr_finder.py | 6.652 |
| transforms/test_resample_to_match.py | 6.607 |
| networks/nets/test_transformer.py | 6.463 |
| data/test_lmdbdataset.py | 6.364 |
| data/test_thread_buffer.py | 6.175 |
| networks/nets/test_mednext.py | 6.143 |
| integration/test_reg_loss_integration.py | 5.974 |
| transforms/test_keep_largest_connected_component.py | 5.526 |
| losses/image_dissimilarity/test_global_mutual_information_loss.py | 5.496 |
| losses/test_boundary_loss.py | 5.470 |
| networks/blocks/test_fpn_block.py | 5.339 |
| transforms/test_spatial_resample.py | 5.246 |
| metrics/test_surface_dice.py | 5.119 |
| integration/test_metatensor_integration.py | 5.113 |
- 主要语言
- Python
- 星标
- 8.7k
- 派生
- 1.6k
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 18
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Project-MONAI/MONAI 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
Project-MONAI/MONAI#9135 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
Project-MONAI/MONAI#9068 · 2 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Project-MONAI/MONAI#9046 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
Project-MONAI/MONAI#9026 ·
维护者通常 3 天内回复
-
PR Update Action可能已有人在做 @KumoLiu 于 1 天前认领。 未关闭
Project-MONAI/MONAI#9141 · 已指派 3 人 ·
维护者通常 3 天内回复
查看 Project-MONAI/MONAI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
approved correction metadata
难度 1/5 1 小时以内 新手友好度 88/100
acl-org/acl-anthology#10133 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
BasedHardware/omi#20084 ·
维护者通常 1 天内回复
-
bug needs-acceptance wg/evaluation-quality
难度 2/5 1-3 小时 新手友好度 76/100
vllm-project/semantic-router#4424 ·
维护者通常 1 天内回复