Upload folder using huggingface_hub
Browse files- .gitignore +25 -0
- README.md +77 -0
- gfpgan/GFPGANv1.4.pth +3 -0
- gfpgan/weights/detection_Resnet50_Final.pth +3 -0
- gfpgan/weights/parsing_parsenet.pth +3 -0
- hyperswap_1a_256.onnx +3 -0
- hyperswap_1b_256.onnx +3 -0
- hyperswap_1c_256.onnx +3 -0
- inswapper_128.onnx +3 -0
- inswapper_128_fp16.onnx +3 -0
.gitignore
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IDE
|
| 2 |
+
.idea/
|
| 3 |
+
.vscode/
|
| 4 |
+
*.swp
|
| 5 |
+
*.swo
|
| 6 |
+
|
| 7 |
+
# Python
|
| 8 |
+
__pycache__/
|
| 9 |
+
*.py[cod]
|
| 10 |
+
*$py.class
|
| 11 |
+
*.so
|
| 12 |
+
.Python
|
| 13 |
+
.env
|
| 14 |
+
.venv
|
| 15 |
+
venv/
|
| 16 |
+
ENV/
|
| 17 |
+
|
| 18 |
+
# OS
|
| 19 |
+
.DS_Store
|
| 20 |
+
Thumbs.db
|
| 21 |
+
|
| 22 |
+
# Temp files
|
| 23 |
+
*.tmp
|
| 24 |
+
*.temp
|
| 25 |
+
*.log
|
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- face-swap
|
| 5 |
+
- face-enhancement
|
| 6 |
+
- deep-learning
|
| 7 |
+
- computer-vision
|
| 8 |
+
- morphstream
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# MorphStream Models
|
| 12 |
+
|
| 13 |
+
Models for real-time face processing used by the MorphStream project.
|
| 14 |
+
|
| 15 |
+
## Structure
|
| 16 |
+
|
| 17 |
+
```
|
| 18 |
+
/
|
| 19 |
+
βββ inswapper_128.onnx # Standard face swap
|
| 20 |
+
βββ inswapper_128_fp16.onnx # FP16 optimized (default)
|
| 21 |
+
βββ hyperswap_1a_256.onnx # HyperSwap variant A
|
| 22 |
+
βββ hyperswap_1b_256.onnx # HyperSwap variant B
|
| 23 |
+
βββ hyperswap_1c_256.onnx # HyperSwap variant C
|
| 24 |
+
βββ gfpgan/
|
| 25 |
+
βββ GFPGANv1.4.pth # Main GFPGAN model
|
| 26 |
+
βββ weights/
|
| 27 |
+
βββ detection_Resnet50_Final.pth # Face detection
|
| 28 |
+
βββ parsing_parsenet.pth # Face parsing
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Face Swap Models
|
| 32 |
+
|
| 33 |
+
| Model | Description | Size |
|
| 34 |
+
|-------|-------------|------|
|
| 35 |
+
| inswapper_128.onnx | Standard quality face swap | ~250MB |
|
| 36 |
+
| inswapper_128_fp16.onnx | Optimized FP16 model (default) | ~125MB |
|
| 37 |
+
| hyperswap_1a_256.onnx | High quality 256px - variant A | - |
|
| 38 |
+
| hyperswap_1b_256.onnx | High quality 256px - variant B | - |
|
| 39 |
+
| hyperswap_1c_256.onnx | High quality 256px - variant C | - |
|
| 40 |
+
|
| 41 |
+
## GFPGAN Models
|
| 42 |
+
|
| 43 |
+
| Model | Description |
|
| 44 |
+
|-------|-------------|
|
| 45 |
+
| gfpgan/GFPGANv1.4.pth | Main GFPGAN model |
|
| 46 |
+
| gfpgan/weights/detection_Resnet50_Final.pth | Face detection (ResNet50) |
|
| 47 |
+
| gfpgan/weights/parsing_parsenet.pth | Face segmentation/parsing |
|
| 48 |
+
|
| 49 |
+
## Usage
|
| 50 |
+
|
| 51 |
+
### Python (huggingface_hub)
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from huggingface_hub import hf_hub_download
|
| 55 |
+
|
| 56 |
+
# Face swap model
|
| 57 |
+
model_path = hf_hub_download(
|
| 58 |
+
repo_id="latark/MorphStream",
|
| 59 |
+
filename="inswapper_128_fp16.onnx"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
# GFPGAN model
|
| 63 |
+
gfpgan_path = hf_hub_download(
|
| 64 |
+
repo_id="latark/MorphStream",
|
| 65 |
+
filename="gfpgan/GFPGANv1.4.pth"
|
| 66 |
+
)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
### GPU Worker
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
./scripts/download_models.sh /models
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## License
|
| 76 |
+
|
| 77 |
+
MIT License
|
gfpgan/GFPGANv1.4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2cd4703ab14f4d01fd1383a8a8b266f9a5833dacee8e6a79d3bf21a1b6be5ad
|
| 3 |
+
size 348632874
|
gfpgan/weights/detection_Resnet50_Final.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d1de9c2944f2ccddca5f5e010ea5ae64a39845a86311af6fdf30841b0a5a16d
|
| 3 |
+
size 109497761
|
gfpgan/weights/parsing_parsenet.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d558d8d0e42c20224f13cf5a29c79eba2d59913419f945545d8cf7b72920de2
|
| 3 |
+
size 85331193
|
hyperswap_1a_256.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e98a8a03a238f461ed3d2570e426b49f46745ee400854a60dceeb70c246add
|
| 3 |
+
size 402742682
|
hyperswap_1b_256.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5124031789c42f71b9558fb71954ef7aedb6da7ed9fac79293e23c61a792a73e
|
| 3 |
+
size 402742682
|
hyperswap_1c_256.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5528c2d76fe9986c99d829278987ef9f3a630cb606db7628d02b57b330f406a5
|
| 3 |
+
size 402742682
|
inswapper_128.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16af
|
| 3 |
+
size 554253681
|
inswapper_128_fp16.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d51a9278a1f650cffefc18ba53f38bf2769bf4bbff89267822cf72945f8a38b
|
| 3 |
+
size 277680638
|