Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Docker Setup and Update Documentation for LivePortrait #121

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Sunwood-ai-labs
Copy link

Overview

This pull request introduces essential updates to the Docker environment and enhances the documentation in both English and Japanese for the LivePortrait project. These changes aim to simplify the setup process and improve accessibility for users.

Changes Included

  1. Docker Compose Setup:

    • Added a new docker-compose.yml that configures the application with NVIDIA GPU support, ensuring the application can scale effectively and is easy to deploy.
  2. Dockerfile Creation:

    • Created a Dockerfile that sets up a Python environment on a NVIDIA CUDA base image. This includes installing necessary system packages and Python libraries, preparing the system for high-performance operations with GPU support.
  3. Python Requirements:

    • Defined all necessary Python libraries in requirements.txt, ensuring compatibility and functionality for the LivePortrait project. This includes libraries like PyTorch, OpenCV, and other multimedia processing tools.
  4. Documentation Updates:

    • Japanese Documentation (docs/README_JP.md): Added comprehensive documentation in Japanese, detailing project features, setup instructions, and recent updates to cater to our Japanese-speaking users.
    • README Update (readme.md): Updated the main README file with Docker Compose instructions and added a link to the Japanese documentation to enhance accessibility and provide clear setup guidance.

Justification

These updates are crucial for maintaining an efficient development environment and ensuring that the project is accessible to a broader audience. The Docker enhancements will streamline project setup and deployment, particularly for environments requiring GPU resources. The documentation updates in Japanese will help in engaging a wider community by providing localized support and instructions.

Impact

The changes will not affect existing project functionalities but will significantly improve the setup process and user experience, particularly for new users who may be setting up the project for the first time.

- Configured Docker Compose with NVIDIA GPU support and necessary resources. Deployed a Python application, exposing it on port 8890. This allows for easy setup and scalability of the LivePortrait project.
- Introduced a Dockerfile based on NVIDIA CUDA and Ubuntu with essential packages and Python dependencies for the LivePortrait application. Ensured the system is prepared for high-performance operations with GPU support.
- Listed all necessary Python libraries including PyTorch, OpenCV, and other multimedia and data processing libraries to ensure compatibility and functionality of the LivePortrait project.
- Detailed the LivePortrait project's features, setup instructions, and recent updates in Japanese to provide guidance and context to the Japanese-speaking users.
…nese doc link

- Enhanced the README with Docker Compose setup instructions and added a link to the Japanese documentation, improving accessibility and usability for both English and Japanese speaking users.
- Updated the base image to NVIDIA CUDA 12.0.1 and installed essential system packages.
- Upgraded pip and installed required Python libraries from requirements.txt.
- Set the Asia/Tokyo timezone and specified the working directory to /LivePortrait.
@cleardusk
Copy link
Member

@Sunwood-ai-labs Apologies for the delayed response. We've added a Chinese version of the README. It would be fantastic if you could help add Japanese support!
Regarding the Docker file, we’re not sure how to verify it yet, and we’ll need some time to do the check.

@DevilaN
Copy link

DevilaN commented Aug 28, 2024

Unfortunately it is not building properly. I got:

=> ERROR [app 6/10] COPY requirements.txt .

EDIT: After fixing context issue and properly building I still got:

liveportrait-app-1  | 
liveportrait-app-1  | CUDA Version 12.0.1
liveportrait-app-1  | 
liveportrait-app-1  | Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
liveportrait-app-1  | 
liveportrait-app-1  | This container image and its contents are governed by the NVIDIA Deep Learning Container License.
liveportrait-app-1  | By pulling and using the container, you accept the terms and conditions of this license:
liveportrait-app-1  | https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
liveportrait-app-1  | 
liveportrait-app-1  | A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
liveportrait-app-1  | 
liveportrait-app-1  | [22:15:37] Load appearance_feature_extractor done.   live_portrait_wrapper.py:35
liveportrait-app-1  |            Load motion_extractor done.               live_portrait_wrapper.py:38
liveportrait-app-1  |            Load warping_module done.                 live_portrait_wrapper.py:41
liveportrait-app-1  | [22:15:38] Load spade_generator done.                live_portrait_wrapper.py:44
liveportrait-app-1  |            Load stitching_retargeting_module done.   live_portrait_wrapper.py:48
liveportrait-app-1  | Could not load library libcudnn_cnn_infer.so.8. Error: libnvrtc.so: cannot open shared object file: No such file or directory
liveportrait-app-1 exited with code 139

So something is still not there yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants