Spaces:
Paused
Paused
ekhatskevich commited on
Commit ·
6ef3309
1
Parent(s): 02b172f
fix: tensors
Browse files
app.py
CHANGED
|
@@ -16,17 +16,18 @@ def resolve_hf_path(path):
|
|
| 16 |
return local_path
|
| 17 |
return path
|
| 18 |
|
| 19 |
-
os.environ["FLUX_FILL_PATH"] = "hf://black-forest-labs/FLUX.1-Fill-dev"
|
| 20 |
os.environ["PORTRAIT_MODEL_PATH"] = "ms://iic/ACE_Plus@portrait/comfyui_portrait_lora64.safetensors"
|
| 21 |
os.environ["SUBJECT_MODEL_PATH"] = "ms://iic/ACE_Plus@subject/comfyui_subject_lora16.safetensors"
|
| 22 |
os.environ["LOCAL_MODEL_PATH"] = "ms://iic/ACE_Plus@local_editing/comfyui_local_lora16.safetensors"
|
| 23 |
os.environ["ACE_PLUS_FFT_MODEL"] = "hf://ali-vilab/ACE_Plus@ace_plus_fft.safetensors"
|
| 24 |
|
| 25 |
-
|
| 26 |
ace_plus_fft_model_path = resolve_hf_path(os.environ["ACE_PLUS_FFT_MODEL"])
|
| 27 |
|
| 28 |
# Update the environment variables with the resolved local file paths.
|
| 29 |
os.environ["ACE_PLUS_FFT_MODEL"] = ace_plus_fft_model_path
|
|
|
|
| 30 |
|
| 31 |
from inference.ace_plus_inference import ACEInference
|
| 32 |
from scepter.modules.utils.config import Config
|
|
|
|
| 16 |
return local_path
|
| 17 |
return path
|
| 18 |
|
| 19 |
+
os.environ["FLUX_FILL_PATH"] = "hf://black-forest-labs/FLUX.1-Fill-dev@ae.safetensors"
|
| 20 |
os.environ["PORTRAIT_MODEL_PATH"] = "ms://iic/ACE_Plus@portrait/comfyui_portrait_lora64.safetensors"
|
| 21 |
os.environ["SUBJECT_MODEL_PATH"] = "ms://iic/ACE_Plus@subject/comfyui_subject_lora16.safetensors"
|
| 22 |
os.environ["LOCAL_MODEL_PATH"] = "ms://iic/ACE_Plus@local_editing/comfyui_local_lora16.safetensors"
|
| 23 |
os.environ["ACE_PLUS_FFT_MODEL"] = "hf://ali-vilab/ACE_Plus@ace_plus_fft.safetensors"
|
| 24 |
|
| 25 |
+
flux_full = resolve_hf_path(os.environ["FLUX_FILL_PATH"])
|
| 26 |
ace_plus_fft_model_path = resolve_hf_path(os.environ["ACE_PLUS_FFT_MODEL"])
|
| 27 |
|
| 28 |
# Update the environment variables with the resolved local file paths.
|
| 29 |
os.environ["ACE_PLUS_FFT_MODEL"] = ace_plus_fft_model_path
|
| 30 |
+
os.environ["FLUX_FILL_PATH"] = flux_full
|
| 31 |
|
| 32 |
from inference.ace_plus_inference import ACEInference
|
| 33 |
from scepter.modules.utils.config import Config
|