Coder Social home page Coder Social logo

ashleykleynhans / facefusion-docker Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 7.0 1.81 MB

Docker image for FaceFusion: Next generation face swapper and enhancer

License: GNU General Public License v3.0

Dockerfile 12.25% Shell 74.49% HTML 9.54% HCL 3.72%
docker docker-image face-swap inswapper roop runpod facefusion

facefusion-docker's Introduction

Docker image for FaceFusion: Next generation face swapper and enhancer

Docker Pulls Template Version

Installs

Available on RunPod

This image is designed to work on RunPod. You can use my custom RunPod template to launch it on RunPod.

Building the Docker image

Note

You will need to edit the docker-bake.hcl file and update REGISTRY_USER, and RELEASE. You can obviously edit the other values too, but these are the most important ones.

# Clone the repo
git clone https://github.com/ashleykleynhans/facefusion-docker.git

# Log in to Docker Hub
docker login

# Build the image, tag the image, and push the image to Docker Hub
docker buildx bake -f docker-bake.hcl --push

# Same as above but customize registry/user/release:
REGISTRY=ghcr.io REGISTRY_USER=myuser RELEASE=my-release docker buildx \
    bake -f docker-bake.hcl --push

Running Locally

Install Nvidia CUDA Driver

Start the Docker container

docker run -d \
  --gpus all \
  -v /workspace \
  -p 3000:3001 \
  -p 7777:7777 \
  -p 8888:8888 \
  -p 2999:2999 \
  -e JUPYTER_LAB_PASSWORD="password" \
  ashleykza/facefusion:latest

You can obviously substitute the image name and tag with your own.

Ports

Connect Port Internal Port Description
3000 3001 FaceFusion
7777 7777 Code Server
8888 8888 Jupyter Lab
2999 2999 RunPod File Uploader

Environment Variables

Variable Description Default
JUPYTER_LAB_PASSWORD Set a password for Jupyter lab not set - no password
DISABLE_AUTOLAUNCH Disable Forge from launching automatically (not set)
DISABLE_SYNC Disable syncing if using a RunPod network volume (not set)

Logs

FaceFusion creates a log file, and you can tail the log instead of killing the service to view the logs.

Application Log file
FaceFusion /workspace/logs/facefusion.log

For example:

tail -f /workspace/logs/facefusion.log

Community and Contributing

Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.

Appreciate my work?

Buy Me A Coffee

facefusion-docker's People

Contributors

ashleykleynhans avatar ceramicwhite avatar degengames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

facefusion-docker's Issues

connecting to a mobile app using apis

Would it be possible to use this template to faceswap a target video using a source image, both sent from a mobile phone through API calls and get the result back using API calls again?

RUNPOD Frame processor frame_enhancer could not be loaded

[FACEFUSION.PROCESSORS.FRAME.CORE] Frame processor frame_enhancer could not be loaded

can be found when firing up the runpod template in the facefusion.log and facefusion doesn't start.
Tested with and without Network Storage.

runpod error

Hi sir, I deploy the docker but error outputs like that:
Screenshot 2023-08-31 at 11 48 22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.