From bcd1c1bfdf30f1d08a4039f500c16c72d63269f6 Mon Sep 17 00:00:00 2001 From: Great <44393369+yaosheng216@users.noreply.github.com> Date: Thu, 13 Mar 2025 11:58:29 +0800 Subject: [PATCH 1/4] Update ace_plus_fft_node.py --- workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py b/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py index df75f25..689bf5a 100644 --- a/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py +++ b/workflow/ComfyUI-ACE_Plus/ace_plus_fft_node.py @@ -141,8 +141,9 @@ class AcePlusFFTProcessor: self.max_aspect_ratio = max_aspect_ratio self.max_seq_len = max_seq_len self.d = d - self.processor_cfg = self.load_yaml(os.path.join('custom_nodes/ComfyUI-ACE_Plus/', - 'config/ace_plus_fft_processor.yaml')) + current_dir = os.path.dirname(os.path.abspath(__file__)) + config_path = os.path.join(current_dir, 'config', 'ace_plus_fft_processor.yaml') + self.processor_cfg = self.load_yaml(config_path) self.task_list = {} for task in self.processor_cfg['PREPROCESSOR']: self.task_list[task['TYPE']] = task From da6261f086bb1fccdb8016ef5ddd868f485ffff8 Mon Sep 17 00:00:00 2001 From: mcj Date: Thu, 13 Mar 2025 13:38:47 +0800 Subject: [PATCH 2/4] Update requirements.txt --- requirements.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index de32498..8b13789 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1 @@ -huggingface_hub -diffusers -transformers -torch>=2.4.1 -xformers>=0.0.27.post2 -gradio>=4.44.1 -scepter -ms_swift \ No newline at end of file + From 5242eb04336f4346f2182a032fcd4cf34be627f1 Mon Sep 17 00:00:00 2001 From: mcj Date: Thu, 13 Mar 2025 13:39:34 +0800 Subject: [PATCH 3/4] Create repo_requirements.txt --- repo_requirements.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 repo_requirements.txt diff --git a/repo_requirements.txt b/repo_requirements.txt new file mode 100644 index 0000000..d92654d --- /dev/null +++ b/repo_requirements.txt @@ -0,0 +1,8 @@ +huggingface_hub +diffusers +transformers +torch>=2.4.1 +xformers>=0.0.27.post2 +gradio>=4.44.1 +scepter +ms_swift From bab778e0a3d0c7b2355e722cb3e93b80e1da1033 Mon Sep 17 00:00:00 2001 From: mcj Date: Thu, 13 Mar 2025 13:40:40 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11d07f4..d63bbb5 100644 --- a/README.md +++ b/README.md @@ -465,7 +465,7 @@ git clone https://github.com/ali-vilab/ACE_plus.git Install the necessary packages with `pip`: ```bash cd ACE_plus -pip install -r requirements.txt +pip install -r repo_requirements.txt ``` ACE++ depends on FLUX.1-Fill-dev as its base model, which you can download from [![HuggingFace link](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-yellow)](https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev). In order to run the inference code or Gradio demo normally, we have defined the relevant environment variables to specify the location of the model.