diff --git a/modelscope/models/cv/object_detection_3d/depe/result_vis.py b/modelscope/models/cv/object_detection_3d/depe/result_vis.py index d567654e..efaef0b5 100644 --- a/modelscope/models/cv/object_detection_3d/depe/result_vis.py +++ b/modelscope/models/cv/object_detection_3d/depe/result_vis.py @@ -169,7 +169,7 @@ def plot_result(res_path, check_point_in_img(corners_img, img.shape[0], img.shape[1])) valid = valid.reshape( -1, 8) # valid means: d>0 and visible in current view - corners_img = corners_img.reshape(-1, 8, 2).astype(np.int) + corners_img = corners_img.reshape(-1, 8, 2).astype(int) for aid in range(valid.shape[0]): if scores[aid] < vis_thred and pred_flag[aid]: continue diff --git a/modelscope/pipelines/cv/image_detection_pipeline.py b/modelscope/pipelines/cv/image_detection_pipeline.py index 86963c37..2b8275c2 100644 --- a/modelscope/pipelines/cv/image_detection_pipeline.py +++ b/modelscope/pipelines/cv/image_detection_pipeline.py @@ -30,7 +30,7 @@ class ImageDetectionPipeline(Pipeline): def preprocess(self, input: Input) -> Dict[str, Any]: img = LoadImage.convert_to_ndarray(input) - img = img.astype(np.float) + img = img.astype(np.float64) img = self.model.preprocess(img) result = {'img': img} return result diff --git a/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py b/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py index 39195bcd..123057f5 100644 --- a/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py +++ b/modelscope/pipelines/cv/referring_video_object_segmentation_pipeline.py @@ -225,7 +225,7 @@ class ReferringVideoObjectSegmentationPipeline(Pipeline): def apply_mask(image, mask, color, transparency=0.7): mask = mask[..., np.newaxis].repeat(repeats=3, axis=2) mask = mask * transparency - color_matrix = np.ones(image.shape, dtype=np.float) * color + color_matrix = np.ones(image.shape, dtype=np.float64) * color out_image = color_matrix * mask + image * (1.0 - mask) return out_image diff --git a/requirements/audio/audio_signal.txt b/requirements/audio/audio_signal.txt index 71037baa..16a18e67 100644 --- a/requirements/audio/audio_signal.txt +++ b/requirements/audio/audio_signal.txt @@ -1,5 +1,5 @@ hyperpyyaml -librosa<=0.9.2 +librosa==0.9.2 MinDAEC mir_eval>=0.7 numpy diff --git a/requirements/audio/audio_tts.txt b/requirements/audio/audio_tts.txt index b1a85faf..81a5c6f4 100644 --- a/requirements/audio/audio_tts.txt +++ b/requirements/audio/audio_tts.txt @@ -3,7 +3,7 @@ greenlet>=1.1.2 inflect jedi>=0.18.1 kantts -librosa<=0.9.2 +librosa==0.9.2 lxml matplotlib msgpack>=1.0.4 diff --git a/requirements/cv.txt b/requirements/cv.txt index 6ea02c54..0cec3659 100644 --- a/requirements/cv.txt +++ b/requirements/cv.txt @@ -6,7 +6,7 @@ chumpy clip>=1.0 control_ldm ddpm_guided_diffusion -diffusers +diffusers>=0.13.1,<0.15.0 easydict easyrobust edit_distance diff --git a/requirements/framework.txt b/requirements/framework.txt index 03edde4d..10a1ef63 100644 --- a/requirements/framework.txt +++ b/requirements/framework.txt @@ -4,7 +4,8 @@ datasets>=2.7.0,<=2.8.0 einops filelock>=3.3.0 gast>=0.2.2 -numpy<1.24.0 +# for python3.7 python3.8 compatible +numpy<1.22.0 oss2 # for datasets compatible pandas<=1.5.3 diff --git a/requirements/multi-modal.txt b/requirements/multi-modal.txt index b07b99a2..9d2c3448 100644 --- a/requirements/multi-modal.txt +++ b/requirements/multi-modal.txt @@ -1,7 +1,7 @@ accelerate diffusers>=0.13.1,<0.15.0 ftfy>=6.0.3 -librosa<=0.9.2 +librosa==0.9.2 opencv-python pycocoevalcap>=1.2 pycocotools>=2.0.4 diff --git a/tests/run_config.yaml b/tests/run_config.yaml index 14de4c85..c3daf065 100644 --- a/tests/run_config.yaml +++ b/tests/run_config.yaml @@ -87,3 +87,9 @@ envs: - test_image_style_transfer.py - test_image_portrait_stylization_trainer.py - test_language_identification.py + - test_ocr_detection_db_trainer.py + - test_nerf_recon_acc.py + - test_tensorboard_hook.py + - test_efficient_diffusion_tuning_trainer.py + - test_trainer.py + - test_nerf_recon_acc_trainer.py