File tree Expand file tree Collapse file tree 8 files changed +8
-20
lines changed Expand file tree Collapse file tree 8 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119119 command : |
120120 sudo apt-get update -y
121121 sudo apt install -y libturbojpeg-dev
122- pip install --user --progress-bar off numpy mypy
122+ pip install --user --progress-bar off mypy
123123 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
124124 pip install --user --progress-bar off --editable .
125125 mypy --config-file mypy.ini
@@ -153,7 +153,6 @@ jobs:
153153 - checkout
154154 - run :
155155 command : |
156- pip install --user --progress-bar off numpy
157156 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
158157 # need to install torchvision dependencies due to transitive imports
159158 pip install --user --progress-bar off --editable .
@@ -166,7 +165,6 @@ jobs:
166165 - checkout
167166 - run :
168167 command : |
169- pip install --user --progress-bar off numpy
170168 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
171169 # need to install torchvision dependencies due to transitive imports
172170 pip install --user --progress-bar off --editable .
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119119 command: |
120120 sudo apt-get update -y
121121 sudo apt install -y libturbojpeg-dev
122- pip install --user --progress-bar off numpy mypy
122+ pip install --user --progress-bar off mypy
123123 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
124124 pip install --user --progress-bar off --editable .
125125 mypy --config-file mypy.ini
@@ -153,7 +153,6 @@ jobs:
153153 - checkout
154154 - run:
155155 command: |
156- pip install --user --progress-bar off numpy
157156 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
158157 # need to install torchvision dependencies due to transitive imports
159158 pip install --user --progress-bar off --editable .
@@ -166,7 +165,6 @@ jobs:
166165 - checkout
167166 - run:
168167 command: |
169- pip install --user --progress-bar off numpy
170168 pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
171169 # need to install torchvision dependencies due to transitive imports
172170 pip install --user --progress-bar off --editable .
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ RUN conda create -y --name python3.7 python=3.7
3030RUN conda create -y --name python3.8 python=3.8
3131SHELL [ "/bin/bash" , "-c" ]
3232RUN echo "source /usr/local/etc/profile.d/conda.sh" >> ~/.bashrc
33- RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.6 && conda install -y numpy Pillow
34- RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.7 && conda install -y numpy Pillow
35- RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.8 && conda install -y numpy Pillow
33+ RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.6 && conda install -y Pillow
34+ RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.7 && conda install -y Pillow
35+ RUN source /usr/local/etc/profile.d/conda.sh && conda activate python3.8 && conda install -y Pillow
3636CMD [ "/bin/bash" ]
Original file line number Diff line number Diff line change 11channels :
22 - pytorch
33 - defaults
4- # using conda-forge for python v3.9+
4+ # using conda-forge for python v3.9
55 - conda-forge
66dependencies :
77 - pytest
Original file line number Diff line number Diff line change 2424fi
2525
2626printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
27- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c conda-forge pytorch " ${cudatoolkit} "
27+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c conda-forge " pytorch- ${UPLOAD_CHANNEL} " :: pytorch " ${cudatoolkit} "
2828
2929printf " * Installing torchvision\n"
3030python setup.py develop
Original file line number Diff line number Diff line change @@ -36,13 +36,10 @@ conda activate "${env_dir}"
3636
3737# 3. Install Conda dependencies
3838printf " * Installing dependencies (except PyTorch)\n"
39- NUMPY_MIN_VER=" 1.11"
4039FFMPEG_PIN=" =4.2"
4140if [[ " ${PYTHON_VERSION} " = " 3.9" ]]; then
42- NUMPY_MIN_VER=" 1.20"
4341 FFMPEG_PIN=" >=4.2"
4442fi
4543
46- conda install -y -c conda-forge " numpy >=${NUMPY_MIN_VER} "
4744conda install -y -c pytorch " ffmpeg${FFMPEG_PIN} "
4845conda env update --file " ${this_dir} /environment.yml" --prune
Original file line number Diff line number Diff line change 2626fi
2727
2828printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
29- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c conda-forge pytorch " ${cudatoolkit} "
29+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c conda-forge " pytorch- ${UPLOAD_CHANNEL} " :: pytorch " ${cudatoolkit} "
3030
3131printf " * Installing torchvision\n"
3232" $this_dir /vc_env_helper.bat" python setup.py develop
Original file line number Diff line number Diff line change @@ -36,9 +36,4 @@ conda activate "${env_dir}"
3636
3737# 3. Install Conda dependencies
3838printf " * Installing dependencies (except PyTorch)\n"
39- NUMPY_MIN_VER=" 1.11"
40- if [[ " ${PYTHON_VERSION} " = " 3.9" ]]; then
41- NUMPY_MIN_VER=" 1.20"
42- fi
43- conda install -y -c conda-forge " numpy >=${NUMPY_MIN_VER} "
4439conda env update --file " ${this_dir} /environment.yml" --prune
You can’t perform that action at this time.
0 commit comments