在本项目中使用了docker容器搭建环境,Dockerfile 如下:
FROM tensorflow/tensorflow:1.14.0-gpu-py3
RUN pip install scipy==1.3.3
RUN pip install requests
RUN pip install Pillow
RUN pip install matplotlib
RUN pip install pandas
RUN pip install keras==2.2.4
RUN pip install scikit_learn==0.20.0
RUN pip install transformers==3.5.0
创建docker容器:
sudo docker build - < Dockerfile
创建成功之后给打上标签:
docker tag a7a1861d2150 datascience/text2animeface:v0.1
然后进入容器:
sudo docker run --gpus all -it -p 8080:8080 -p 8888:8888 -d -v `pwd`:/mnt datascience/text2animeface:v0.1
然后安装jupyter之后启动jupyter
jupyter-notebook --allow-root
问题出