Spaces:
Paused
Paused
FaceEnhance
Enhancing faces in AI generated images.
Installation
Prerequisites
- Python 3.8 or higher
- At least 50GB of free disk space for models and dependencies
Setup
Set up your Hugging Face token:
- Create a token at Hugging Face if you don't have one
- Set the token as an environment variable:
export HUGGINGFACE_TOKEN=your_token_here
Set the Hugging Face cache directory:
export HF_HOME=/path/to/your/huggingface_cache
This defines where models will be downloaded and then symlinked to the ComfyUI folder.
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate
Install dependencies from requirements.txt:
pip install -r requirements.txt
Run the installation script:
python install.py
This script will:
- Install all required dependencies to your venv
- Install ComfyUI and necessary custom nodes
- Download and install all required models (FLUX, ControlNet, text encoders, PuLID, and more)
Configuration
Create a .env file in the project root directory with your API keys:
touch .env
echo "OPENAI_API_KEY=your_openai_api_key_here" >> .env
echo "FAL_API_KEY=your_fal_api_key_here" >> .env
These API keys are required for certain features of the application to work properly.