diff --git a/BaiHu/doTask.py b/BaiHu/doTask.py index a8109123..0ac0285a 100644 --- a/BaiHu/doTask.py +++ b/BaiHu/doTask.py @@ -289,6 +289,8 @@ def get_task(): if model_type_id == 3: runComfyUI(model_id=model_id, json_data=vjson_data, input_image=input_image, target_folder=output_path) + # 清理GPU缓存 + clear_cache(server_address) return task_id elif success == 0: