This commit is contained in:
皓童
2025-03-13 17:39:35 +08:00
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -469,7 +469,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.
+8
View File
@@ -0,0 +1,8 @@
huggingface_hub
diffusers
transformers
torch>=2.4.1
xformers>=0.0.27.post2
gradio>=4.44.1
scepter
ms_swift
+1 -8
View File
@@ -1,8 +1 @@
huggingface_hub
diffusers
transformers
torch>=2.4.1
xformers>=0.0.27.post2
gradio>=4.44.1
scepter
ms_swift
@@ -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