Update README.md
Browse files
README.md
CHANGED
|
@@ -1,88 +1,98 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
```
|
| 30 |
-
|
| 31 |
-
```
|
| 32 |
-
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
```bash
|
| 47 |
-
pip install
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
##
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
title: V-Express
|
| 4 |
+
sdk: gradio
|
| 5 |
+
emoji: 🚀
|
| 6 |
+
colorFrom: blue
|
| 7 |
+
colorTo: indigo
|
| 8 |
+
pinned: false
|
| 9 |
+
short_description: Talking head video Generator
|
| 10 |
+
---
|
| 11 |
+
# Gradio V-Express Project
|
| 12 |
+
|
| 13 |
+
## Introduction
|
| 14 |
+
|
| 15 |
+
This repository is created to run the V-Express project via Gradio, compiling various resources and code snippets shared by different individuals. The original project was created by [tencent-ailab](https://github.com/tencent-ailab/V-Express) and the contributions made by [faraday](https://github.com/faraday) and [StableAIHub](https://www.youtube.com/@StableAIHub) made it possible to run this project using Gradio.
|
| 16 |
+
|
| 17 |
+
Check out the YouTube Video NewGenAI:
|
| 18 |
+
[NewGenAI](https://youtu.be/OFt6a2rR8GY?si=S82ZwP1w1OJvlYJR)
|
| 19 |
+
|
| 20 |
+
## Installation
|
| 21 |
+
|
| 22 |
+
### Steps
|
| 23 |
+
|
| 24 |
+
1. Download CMake from [here](https://cmake.org/download/) and add System Variables Path `C:\Program Files\CMake\bin`.
|
| 25 |
+
|
| 26 |
+
2. Download ffmpeg from [here](https://ffmpeg.org/download.html) and add System Variables Path `C:\Program Files\ffmpeg\bin`.
|
| 27 |
+
|
| 28 |
+
3. Clone the repository:
|
| 29 |
+
```bash
|
| 30 |
+
git clone https://github.com/M4K4R/Gradio-V-Express
|
| 31 |
+
```
|
| 32 |
+
4. Navigate inside the cloned repository:
|
| 33 |
+
```bash
|
| 34 |
+
cd Gradio-V-Express
|
| 35 |
+
```
|
| 36 |
+
5. Create a virtual environment:
|
| 37 |
+
```bash
|
| 38 |
+
python -m venv venv
|
| 39 |
+
```
|
| 40 |
+
6. Activate the virtual environment:
|
| 41 |
+
```bash
|
| 42 |
+
.\venv\Scripts\activate
|
| 43 |
+
```
|
| 44 |
+
7. Install the required packages:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
pip install xformers==0.0.21
|
| 48 |
+
pip install torch==2.0.1+cu118 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
|
| 49 |
+
pip install diffusers==0.24.0 imageio-ffmpeg==0.4.9 omegaconf==2.2.3 onnxruntime-gpu==1.16.3 safetensors==0.4.2 transformers==4.30.2 einops==0.4.1 tqdm==4.66.1 av==11.0.0 accelerate
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
8. Download the Insightface prebuilt wheel from [here](https://github.com/Gourieff/Assets/tree/main/Insightface).
|
| 53 |
+
|
| 54 |
+
9. Install Insightface:
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
pip install "C:\sd\insightface-0.7.3-cp310-cp310-win_amd64.whl"
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
10. Download the Dlib prebuilt wheel from [here](https://github.com/z-mahmud22/Dlib_Windows_Python3.x).
|
| 61 |
+
|
| 62 |
+
11. Install Dlib:
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
pip install "C:\sd\dlib-19.22.99-cp310-cp310-win_amd64.whl"
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
12. Download the models:
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
git lfs install
|
| 72 |
+
git clone https://huggingface.co/tk93/V-Express
|
| 73 |
+
move V-Express/model_ckpts model_ckpts
|
| 74 |
+
move V-Express/*.bin model_ckpts/v-express
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
13. Install Gradio web UI:
|
| 78 |
+
```bash
|
| 79 |
+
pip install gradio
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Usage
|
| 83 |
+
|
| 84 |
+
1. To start the application with Gradio, run:
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
python app.py
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
2. Open your web browser and navigate to the provided Gradio link to interact with the application.
|
| 91 |
+
|
| 92 |
+
## License
|
| 93 |
+
|
| 94 |
+
This repository does not contain original code, but rather a collection of resources from various contributors. Please refer to the individual licenses of the original projects for more details.
|
| 95 |
+
|
| 96 |
+
## Contributions
|
| 97 |
+
|
| 98 |
+
If you have any suggestions or questions, feel free to open an issue or submit a pull request. We welcome contributions from the community!
|