Azure / batch-scoring-for-dl-models

Batch Scoring For Deep Learning Models
MIT License
16 stars 7 forks source link

Documentation: Suggest adding section on target environment #26

Open roalexan opened 5 years ago

roalexan commented 5 years ago

I would suggest a recommended target environment for the user, such as an Azure VM. For example, I initially tried using a VM using image: Data Science Virtual Machine for Linux (Ubuntu), but I hit a problem running "az login". So, I switched to using a VM using image: Ubuntu Server 16.04 LTS. Doing that, however, you end up having to install a lot more software manually. I was able to use the links, but sometimes it wasn't clear how for to go in each one.

My steps were as follows:

    Ubuntu >=16.04LTS (not tested on Mac or Windows)
         uname -a
            Linux rbaHappyPathVM 4.15.0-1028-azure #29~16.04.1-Ubuntu SMP Thu Oct 18 21:21:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    NVIDIA Drivers on GPU enabled machine (Optional) (SKIP)
    Conda >=4.5.4
        curl 'https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh' > Miniconda3.sh
        bash Miniconda3.sh
        cd /home/roalexan/miniconda3/bin
        ./conda update conda
        conda --version (required restart)
            conda 4.5.11
    Docker >=1.0
        sudo apt install docker.io
        docker version
            API version:  1.27
    AzCopy >=7.0.0
        echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod/ xenial main" > azure.list
        sudo cp ./azure.list /etc/apt/sources.list.d/
        sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF
        sudo apt-get update
        sudo apt-get install azcopy
        azcopy --version
            azcopy 7.2.0-netcore
    ffmpeg >=3.4.4
        sudo add-apt-repository ppa:jonathonf/ffmpeg-3
        sudo add-apt-repository ppa:jonathonf/tesseract
        sudo apt-get update
        sudo apt-get install ffmpeg libav-tools x264 x265
        ffmpeg -version
            ffmpeg version 3.4.4-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
            built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
    Azure CLI >=2.0
        AZ_REPO=$(lsb_release -cs)
        echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
            sudo tee /etc/apt/sources.list.d/azure-cli.list
        curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
        sudo apt-get update
        sudo apt-get install apt-transport-https azure-cli
        az --version
            azure-cli (2.0.49)