LivePortrait: Efficient Portrait Animation with Stitching and Retargeting Control - A faster version
230
This is the faster version of the LivePortrait: Efficient Portrait Animation with Stitching and Retargeting Control.
Please use run following script to run it on your local environment
#!/bin/bash
container_name="fasterportrait_container"
image_name="snlpatel/fasterporttrait:latest"
# Check if the container is already running
container_id=$(docker ps -q -f name="$container_name")
if [ -z "$container_id" ]; then
# If not running, create and run the container in detached mode
echo "Creating and running container '$container_name' from image '$image_name'..."
docker run -d --name "$container_name" "$image_name"
container_id=$(docker ps -q -f name="$container_name")
if [ -z "$container_id" ]; then
echo "Error: Failed to start container '$container_name'."
exit 1
fi
else
echo "Container '$container_name' is already running (ID: $container_id)."
fi
# Execute the first command inside the running container
echo "Executing 'bash scripts/all_onnx2trt.sh' inside container '$container_name'..."
docker exec -it "$container_name" bash -c "cd /FasterLivePortrait && bash scripts/all_onnx2trt.sh"
# Execute the second command inside the same running container
echo "Executing 'python3 /FasterLivePortrait/fused.py' inside container '$container_name'..."
docker exec -it "$container_name" python3 /FasterLivePortrait/fused.py
echo "Commands executed. Container '$container_name' is still running."
Content type
Image
Digest
sha256:1001a57cc…
Size
12.2 GB
Last updated
over 1 year ago
docker pull snlpatel/fasterporttrait