Spaces:
Paused
Paused
Rishi Desai
commited on
Commit
·
15f2ccc
1
Parent(s):
709fad3
readme
Browse files- README.md +21 -23
- examples/chatgpt_elon.png +3 -0
- examples/enhanced_elon.png +3 -0
README.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
| 1 |
# FaceEnhance
|
| 2 |
Enhancing faces in AI generated images.
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
## Installation
|
| 5 |
|
| 6 |
### Prerequisites
|
|
@@ -11,33 +22,29 @@ Enhancing faces in AI generated images.
|
|
| 11 |
### Setup
|
| 12 |
|
| 13 |
1. Set up your Hugging Face token:
|
| 14 |
-
- Create a token at [Hugging Face](https://huggingface.co/settings/tokens)
|
| 15 |
- Set the token as an environment variable. HuggingFace requires login for downloading Flux:
|
| 16 |
```
|
| 17 |
export HUGGINGFACE_TOKEN=your_token_here
|
|
|
|
| 18 |
```
|
| 19 |
-
|
| 20 |
-
```
|
| 21 |
-
export HF_HOME=/path/to/your/huggingface_cache
|
| 22 |
-
```
|
| 23 |
-
Models will be downloaded here and then symlinked to ./ComfyUI/models/.
|
| 24 |
|
| 25 |
-
2. Create virtual environment:
|
| 26 |
```
|
| 27 |
python -m venv venv
|
| 28 |
source venv/bin/activate
|
| 29 |
python -m pip install -r requirements.txt
|
| 30 |
```
|
| 31 |
|
| 32 |
-
3. Run
|
| 33 |
```
|
| 34 |
python install.py
|
| 35 |
```
|
| 36 |
|
| 37 |
-
This
|
| 38 |
-
- Install
|
| 39 |
-
-
|
| 40 |
-
- Download and install all required models (Flux.1-dev, ControlNet, text encoders, PuLID, and more)
|
| 41 |
|
| 42 |
## Configuration
|
| 43 |
|
|
@@ -67,16 +74,7 @@ ssh -L 7860:localhost:7860 root@[IP_ADDRESS] -p [SERVER_PORT] -i [PRIVATE_KEY]
|
|
| 67 |
|
| 68 |
3. Go to http://localhost:7860
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
1. Upload an input image you want to enhance
|
| 73 |
-
2. Upload a high-quality reference face image
|
| 74 |
-
3. Click "Enhance Face" to start the process
|
| 75 |
-
4. Wait approximately 60 seconds for processing
|
| 76 |
-
5. View the enhanced result in the output panel
|
| 77 |
-
|
| 78 |
-
## Notes
|
| 79 |
-
|
| 80 |
-
- The script runs a ComfyUI server ephemerally
|
| 81 |
- All images are saved in ./ComfyUI/input/scratch/
|
| 82 |
- Temporary files are created during processing and cleaned up afterward
|
|
|
|
| 1 |
# FaceEnhance
|
| 2 |
Enhancing faces in AI generated images.
|
| 3 |
|
| 4 |
+
<div style="display: flex; justify-content: space-around;">
|
| 5 |
+
<div>
|
| 6 |
+
<h4>Before</h4>
|
| 7 |
+
<img src="examples/chatgpt_elon.png" alt="Elon Before" width="300"/>
|
| 8 |
+
</div>
|
| 9 |
+
<div>
|
| 10 |
+
<h4>After</h4>
|
| 11 |
+
<img src="examples/enhanced_elon.png" alt="Elon After" width="300"/>
|
| 12 |
+
</div>
|
| 13 |
+
</div>
|
| 14 |
+
|
| 15 |
## Installation
|
| 16 |
|
| 17 |
### Prerequisites
|
|
|
|
| 22 |
### Setup
|
| 23 |
|
| 24 |
1. Set up your Hugging Face token:
|
| 25 |
+
- Create a token at [Hugging Face](https://huggingface.co/settings/tokens)
|
| 26 |
- Set the token as an environment variable. HuggingFace requires login for downloading Flux:
|
| 27 |
```
|
| 28 |
export HUGGINGFACE_TOKEN=your_token_here
|
| 29 |
+
export HF_HOME=/path/to/your/huggingface_cache
|
| 30 |
```
|
| 31 |
+
- Models will be downloaded to `$HF_HOME` and then symlinked to `./ComfyUI/models/`
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
2. Create the virtual environment:
|
| 34 |
```
|
| 35 |
python -m venv venv
|
| 36 |
source venv/bin/activate
|
| 37 |
python -m pip install -r requirements.txt
|
| 38 |
```
|
| 39 |
|
| 40 |
+
3. Run the install script:
|
| 41 |
```
|
| 42 |
python install.py
|
| 43 |
```
|
| 44 |
|
| 45 |
+
This will
|
| 46 |
+
- Install ComfyUI, custom nodes, and required dependencies to your venv
|
| 47 |
+
- Download all required models (Flux.1-dev, ControlNet, text encoders, PuLID, and more)
|
|
|
|
| 48 |
|
| 49 |
## Configuration
|
| 50 |
|
|
|
|
| 74 |
|
| 75 |
3. Go to http://localhost:7860
|
| 76 |
|
| 77 |
+
### Notes
|
| 78 |
+
- The script and demo run a ComfyUI server ephemerally
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
- All images are saved in ./ComfyUI/input/scratch/
|
| 80 |
- Temporary files are created during processing and cleaned up afterward
|
examples/chatgpt_elon.png
ADDED
|
Git LFS Details
|
examples/enhanced_elon.png
ADDED
|
Git LFS Details
|