Xharlie / ShapenetRender_more_variation

A new shapenet rendering 2D image dataset that also contains deph map, normal map and albedo map.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerfile

nikwl opened this issue · comments

Not really an issue but I wanted to share the Dockerfile I created to use this repo in the hopes that other people might get some use out of it.

FROM nvidia/cuda:10.0-devel-ubuntu18.04

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
    build-essential htop nano wget screen virtualenv
RUN apt-get clean
RUN apt-get update && apt-get install -y git 
ENV DEBIAN_FRONTEND noninteractive

# Install blender
RUN cd opt && \
    wget https://download.blender.org/release/Blender2.79/blender-2.79-linux-glibc219-x86_64.tar.bz2
RUN cd opt && \
    tar xvf blender-2.79-linux-glibc219-x86_64.tar.bz2 && \
    mv blender-2.79-linux-glibc219-x86_64 blender && \
    rm blender-2.79-linux-glibc219-x86_64.tar.bz2
ENV PATH="/opt/blender/2.79/python/bin:$PATH"

RUN apt-get install -y libgl1 libglib2.0-0 libglu1 libxi6 libgconf-2-4 libxrender1
RUN python3.5m -m ensurepip --upgrade
RUN python3.5m -m pip install scikit-build
RUN python3.5m -m pip install --upgrade pip
RUN python3.5m -m pip install opencv-python joblib
RUN rm -rf /opt/blender/2.79/python/lib/python3.5/site-packages/numpy
RUN python3.5m -m pip install numpy