Skip to content

Instantly share code, notes, and snippets.

View StianHanssen's full-sized avatar

Stian Hanssen StianHanssen

View GitHub Profile
@StianHanssen
StianHanssen / cuda_installation_on_ubuntu_18.04
Last active October 27, 2023 14:29 — forked from Brainiarc7/cuda_installation_on_ubuntu_18.04
cuda 10.0 installation guidline for ubuntu 18.04 LTS
# DISCLAIMER: This is what worked for me, there may be redunant steps in here or things that could have been
# done easier! Please let me know if you find improvements so I can update the guide!
# If you already have the recommended nvidia drivers skip to "install other import packages"
# OPTION 1 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# Install recommended drivers, if your recommended drivers is older than the requirements for CUDA 10
# then your system may not be suitable for CUDA 10, see system requirements here:
# https://docs.nvidia.com/cuda/archive/10.0/cuda-installation-guide-linux/index.html#system-requirements
sudo ubuntu-drivers autoinstall
FROM pytorch/pytorch:1.2-cuda10.0-cudnn7-devel
WORKDIR /usr/src/app
COPY ./requirements.txt /usr/src/app
COPY ./src/lib/models/networks/DCNv2 /usr/src/app/src/lib/models/networks/DCNv2
RUN apt update && apt install -y ffmpeg libsm6 libxrender-dev
RUN pip install Cython
RUN pip install -r requirements.txt
# This is the biome config file of the Alpine biome, which is a custom biome.
#######################################################################
# +-----------------------------------------------------------------+ #
# | Biome Inheritance | #
# +-----------------------------------------------------------------+ #
#######################################################################
# This should be the value of the biomeConfig you wish to extend.
# The extended config will be loaded, at which point the configs included below