From b0b68c819474c6f17b673ab4765f1fe629e015d3 Mon Sep 17 00:00:00 2001 From: Xumin Yu <1090414006@qq.com> Date: Wed, 6 Nov 2024 08:06:02 +0800 Subject: [PATCH] Update imagefunc.py --- py/imagefunc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/imagefunc.py b/py/imagefunc.py index 65239e4..a91bbc4 100644 --- a/py/imagefunc.py +++ b/py/imagefunc.py @@ -1626,7 +1626,7 @@ def get_a_person_mask_generator_model_path() -> str: import wget model_url = f'https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/{model_name}' log(f"Downloading '{model_name}' model") - os.makedirs(model_file_path, exist_ok=True) + os.makedirs(os.path.dirname(model_file_path), exist_ok=True) wget.download(model_url, model_file_path) return model_file_path @@ -2503,4 +2503,4 @@ minicpm_llama3_v25_prompts = """ # OUTPUT Your output should just be an plain list of descriptions. No numbers, no extraneous labels, no hyphens. Create only one prompt. - """ \ No newline at end of file + """