Spaces:
Paused
Paused
Rishi Desai
commited on
Commit
·
99fbcab
1
Parent(s):
88b5c01
updated readme
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 😎
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: green
|
|
@@ -9,7 +9,7 @@ app_file: demo.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
#
|
| 13 |
A tool for improving facial consistency and quality in AI-generated images. Dramatically enhance facial fidelity while preserving the original image's background, lighting, and composition.
|
| 14 |
|
| 15 |
<div style="text-align: center;">
|
|
@@ -25,18 +25,17 @@ A tool for improving facial consistency and quality in AI-generated images. Dram
|
|
| 25 |
|
| 26 |
### Setup
|
| 27 |
|
| 28 |
-
1. Set up your Hugging Face
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
- Log into Hugging Face and accept their terms of service to download [Flux.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
export HF_HOME=/path/to/your/huggingface_cache
|
| 35 |
-
```
|
| 36 |
-
- Models will be downloaded to `$HF_HOME` and symlinked to `FaceEnhance/ComfyUI/models/`
|
| 37 |
|
| 38 |
2. Create the virtual environment:
|
| 39 |
-
```
|
| 40 |
python -m venv venv
|
| 41 |
source venv/bin/activate
|
| 42 |
python -m pip install -r requirements.txt
|
|
@@ -53,7 +52,7 @@ A tool for improving facial consistency and quality in AI-generated images. Dram
|
|
| 53 |
</details>
|
| 54 |
|
| 55 |
3. Run the install script:
|
| 56 |
-
```
|
| 57 |
python install.py
|
| 58 |
```
|
| 59 |
|
|
@@ -63,7 +62,7 @@ A tool for improving facial consistency and quality in AI-generated images. Dram
|
|
| 63 |
|
| 64 |
4. Run inference on one example:
|
| 65 |
|
| 66 |
-
```
|
| 67 |
python test.py --input examples/dany_gpt_1.png --ref examples/dany_face.jpg --out examples/dany_enhanced.png
|
| 68 |
```
|
| 69 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FaceEnhance
|
| 3 |
emoji: 😎
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: green
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# FaceEnhance
|
| 13 |
A tool for improving facial consistency and quality in AI-generated images. Dramatically enhance facial fidelity while preserving the original image's background, lighting, and composition.
|
| 14 |
|
| 15 |
<div style="text-align: center;">
|
|
|
|
| 25 |
|
| 26 |
### Setup
|
| 27 |
|
| 28 |
+
1. Set up your Hugging Face account:
|
| 29 |
+
<details>
|
| 30 |
+
<summary>Instructions</summary>
|
| 31 |
+
|
| 32 |
- Log into Hugging Face and accept their terms of service to download [Flux.1-dev](https://huggingface.co/black-forest-labs/FLUX.1-dev)
|
| 33 |
+
- Models will be downloaded to `HF_HOME` and symlinked to `FaceEnhance/ComfyUI/models/`
|
| 34 |
+
|
| 35 |
+
</details>
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
2. Create the virtual environment:
|
| 38 |
+
```bash
|
| 39 |
python -m venv venv
|
| 40 |
source venv/bin/activate
|
| 41 |
python -m pip install -r requirements.txt
|
|
|
|
| 52 |
</details>
|
| 53 |
|
| 54 |
3. Run the install script:
|
| 55 |
+
```bash
|
| 56 |
python install.py
|
| 57 |
```
|
| 58 |
|
|
|
|
| 62 |
|
| 63 |
4. Run inference on one example:
|
| 64 |
|
| 65 |
+
```bash
|
| 66 |
python test.py --input examples/dany_gpt_1.png --ref examples/dany_face.jpg --out examples/dany_enhanced.png
|
| 67 |
```
|
| 68 |
|