Building the Docker container with a new Dockerfile

The Docker container is based on our base_image and installs the basic components you'll need to execute this network. Make sure that this container is building and available prior to moving on to the next recipes.

Follow these steps:

  1. Inherent from our base_image, which we built in Chapter 2, Data First, Easy Environment, and Data Prep:
FROM base_image
  1. Install the necessary plotting tools, along with IPython, in case we need to do some debugging:
RUN apt update && apt install -y python3-pydot python-pydot-ng 
graphviz
RUN pip3 install ipython
  1. Download the cityscapes dataset and store it inside the container—the cityscapes dataset should only be around 100 MB:
RUN wget -N 
http://efrosgans.eecs.berkeley.edu/pix2pix/datasets
/cityscapes.tar.g z
RUN mkdir -p /data/cityscapes/
RUN tar -zxvf cityscapes.tar.gz -C /data/cityscapes/
RUN rm cityscapes.tar.gz
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.18.101