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

Docker #13

Open
YU-SHAO-XU opened this issue Aug 2, 2022 · 5 comments
Open

Docker #13

YU-SHAO-XU opened this issue Aug 2, 2022 · 5 comments

Comments

@YU-SHAO-XU
Copy link

Hi,
I ran the code in (build.sh) by cmd then executor failed running and created a container by code in (exec.sh) i don't know it's function, was there any wrong that i have conducted?because I found another issue say that we had to run dockerfiles/Dockerfile!?
executor failed running

@mapooon
Copy link
Owner

mapooon commented Aug 4, 2022

Instead of building the docker image with build.sh, you can pull the built image directly from:
https://hub.docker.com/r/mapooon/sbi.

@YU-SHAO-XU
Copy link
Author

I pull the built image directly by https://hub.docker.com/r/mapooon/sbi. and something wrong happen!
error

@YU-SHAO-XU
Copy link
Author

Hi
i try to test CDF data accroding to the :

CUDA_VISIBLE_DEVICES=* python3 src/inference/inference_dataset.py
-w weights/sbi.tar
-d CDF)

and the result was weird,is there any wrong!?

image

@xuyingzhongguo
Copy link

FROM nvidia/cuda:11.4.1-runtime-ubuntu20.04

RUN apt-get -y update &&
apt-get -y install python3

RUN apt-get update && apt-get upgrade -y &&
apt-get install -y libgl1-mesa-dev &&
apt-get install -y cmake &&
apt-get -y install python3-pip &&
apt-get -y update && apt-get install -y libopencv-dev &&
apt-get install -y git

RUN pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html &&
pip3 install dlib imutils scipy pandas opencv-python tqdm pretrainedmodels imgaug efficientnet-pytorch&&
pip3 install -U retinaface-pytorch &&
apt-get clean

WORKDIR /app

Fixed these parts and it works.

@nguyenvulong
Copy link

Instead of building the docker image with build.sh, you can pull the built image directly from: https://hub.docker.com/r/mapooon/sbi.

image

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

No branches or pull requests

4 participants