Code Monkey home page Code Monkey logo

Comments (1)

Owen-Liuyuxuan avatar Owen-Liuyuxuan commented on August 17, 2024 1
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu20.04

### Deal with cuda keyring problem
RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list
RUN apt-key del 7fa2af80
RUN apt-get update && apt-get install -y --no-install-recommends wget
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb
RUN dpkg -i cuda-keyring_1.0-1_all.deb

### install python3 and opencv requires
RUN DEBIAN_FRONTEND=noninteractive apt-get update --fix-missing --no-install-recommends && \
    DEBIAN_FRONTEND=noninteractive apt-get install python3.8 python3-pip nano libsm6 \
    libxext6 libxrender-dev libgl1-mesa-glx libglib2.0-0 python3-tk qt5-default curl git nano htop -y && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

### install common packages, some not necessary for this repo
RUN pip3 install -U pip && \
    pip3 install future -U && \
    pip3 install tensorflow pandas matplotlib numpy \
    pillow opencv-python scikit-image numba tqdm \
    cython fire easydict cityscapesscripts pyquaternion \
    nuscenes-devkit onnx pytest synology-api flake8 mypy pygame

### cuda - torch - torchvision
ARG CUDA_VER="111"
ARG TORCH_VER="1.9.1"
ARG VISION_VER="0.10.1"

RUN pip3 install torch==${TORCH_VER}+cu${CUDA_VER} torchvision==${VISION_VER}+cu${CUDA_VER} -f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install kornia
RUN pip3 install torch_scatter -f https://data.pyg.org/whl/torch-{TORCH}+cu{CUDA}

from visualdet3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.