-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
60 lines (55 loc) · 1.92 KB
/
docker-compose.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
services:
a2f-init:
image: nvcr.io/eevaigoeixww/animation/audio2face:1.0.11
container_name: a2f-init-container
entrypoint: >
sh -c "./service/generate_trt_model.py built-in claire_v1.3 --fp16 &&
./service/generate_a2e_trt_model.py --fp16"
volumes:
- a2f-init-data:/tmp/a2f_pipeline/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
a2f-service:
image: nvcr.io/eevaigoeixww/animation/audio2face:1.0.11
depends_on:
a2f-init:
condition: service_completed_successfully
entrypoint: ./service/launch_service.py /configs/a2f_config.yaml
volumes:
- a2f-init-data:/tmp/a2f_pipeline/
- ./a2f_config.yaml:/configs/a2f_config.yaml:ro
network_mode: "host"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
a2f-controller:
image: nvcr.io/eevaigoeixww/animation/a2f_controller:1.0.6
entrypoint: ./service/launch_service.py /configs/ac_a2f_config.yaml
network_mode: "host"
volumes:
- ./ac_a2f_config.yaml:/configs/ac_a2f_config.yaml:ro
volumes:
a2f-init-data: {}