Integrate fast-deploy for sdsv_dewarp

This commit is contained in:
tuanlv 2024-02-26 12:39:22 +07:00
parent 071551c21c
commit c54e82ba23
3 changed files with 12 additions and 11 deletions

View File

@ -15,7 +15,9 @@ RUN pip install mmcv==1.6.0 -f https://download.openmmlab.com/mmcv/dst/cu116/tor
RUN ln -s /opt/conda/lib/python3.10/site-packages/torch/lib/libcudnn.so.8 /usr/lib/libcudnn.so && \ RUN ln -s /opt/conda/lib/python3.10/site-packages/torch/lib/libcudnn.so.8 /usr/lib/libcudnn.so && \
ln -s /opt/conda/lib/libcublas.so /usr/lib/libcublas.so ln -s /opt/conda/lib/libcublas.so /usr/lib/libcublas.so
RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir # RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir
RUN pip install fastdeploy-gpu-python==1.0.7 -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html --no-cache-dir
RUN python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' --no-cache-dir RUN python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' --no-cache-dir

View File

@ -73,11 +73,11 @@ services:
- S3_BUCKET_NAME=${S3_BUCKET_NAME} - S3_BUCKET_NAME=${S3_BUCKET_NAME}
restart: always restart: always
ports: ports:
- 9000:9000 - 6000:9000
networks: networks:
- ctel-sbt - ctel-sbt
volumes: volumes:
# - BE_media:${MEDIA_ROOT} - BE_media:${MEDIA_ROOT}
- BE_static:/app/static - BE_static:/app/static
- ./cope2n-api:/app - ./cope2n-api:/app
working_dir: /app working_dir: /app
@ -101,8 +101,8 @@ services:
volumes: volumes:
- ./data/minio_data:/data - ./data/minio_data:/data
ports: ports:
- 9884:9884 - 6884:9884
- 9885:9885 - 6885:9885
networks: networks:
- ctel-sbt - ctel-sbt
restart: always restart: always
@ -170,12 +170,12 @@ services:
rabbitmq-sbt: rabbitmq-sbt:
condition: service_started condition: service_started
volumes: volumes:
# - BE_media:${MEDIA_ROOT} - BE_media:${MEDIA_ROOT}
- ./cope2n-api:/app - ./cope2n-api:/app
working_dir: /app working_dir: /app
# command: sh -c "celery -A fwd_api.celery_worker.worker worker -l INFO -c 5" command: sh -c "celery -A fwd_api.celery_worker.worker worker -l INFO -c 5"
command: bash -c "tail -f > /dev/null" # command: bash -c "tail -f > /dev/null"
# Back-end persistent # Back-end persistent
db-sbt: db-sbt:
@ -191,7 +191,7 @@ services:
- POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_SCHEMA} - POSTGRES_DB=${DB_SCHEMA}
ports: ports:
- 5432:5432 - 54321:5432
rabbitmq-sbt: rabbitmq-sbt:
mem_reservation: 600m mem_reservation: 600m
@ -215,7 +215,7 @@ services:
shm_size: 10gb shm_size: 10gb
privileged: true privileged: true
ports: ports:
- 9881:80 - 6881:80
depends_on: depends_on:
be-ctel-sbt: be-ctel-sbt:
condition: service_started condition: service_started

@ -1 +0,0 @@
Subproject commit 220954c5c6bfed15e93e26b2adacf28ff8b75baf