File tree 8 files changed +8
-20
lines changed
8 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119
119
command : |
120
120
sudo apt-get update -y
121
121
sudo apt install -y libturbojpeg-dev
122
- pip install --user --progress-bar off numpy mypy
122
+ pip install --user --progress-bar off mypy
123
123
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
124
124
pip install --user --progress-bar off --editable .
125
125
mypy --config-file mypy.ini
@@ -153,7 +153,6 @@ jobs:
153
153
- checkout
154
154
- run :
155
155
command : |
156
- pip install --user --progress-bar off numpy
157
156
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
158
157
# need to install torchvision dependencies due to transitive imports
159
158
pip install --user --progress-bar off --editable .
@@ -166,7 +165,6 @@ jobs:
166
165
- checkout
167
166
- run :
168
167
command : |
169
- pip install --user --progress-bar off numpy
170
168
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
171
169
# need to install torchvision dependencies due to transitive imports
172
170
pip install --user --progress-bar off --editable .
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ jobs:
119
119
command: |
120
120
sudo apt-get update -y
121
121
sudo apt install -y libturbojpeg-dev
122
- pip install --user --progress-bar off numpy mypy
122
+ pip install --user --progress-bar off mypy
123
123
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
124
124
pip install --user --progress-bar off --editable .
125
125
mypy --config-file mypy.ini
@@ -153,7 +153,6 @@ jobs:
153
153
- checkout
154
154
- run:
155
155
command: |
156
- pip install --user --progress-bar off numpy
157
156
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
158
157
# need to install torchvision dependencies due to transitive imports
159
158
pip install --user --progress-bar off --editable .
@@ -166,7 +165,6 @@ jobs:
166
165
- checkout
167
166
- run:
168
167
command: |
169
- pip install --user --progress-bar off numpy
170
168
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
171
169
# need to install torchvision dependencies due to transitive imports
172
170
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
30
30
RUN conda create -y --name python3.8 python=3.8
31
31
SHELL [ "/bin/bash" , "-c" ]
32
32
RUN 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
36
36
CMD [ "/bin/bash" ]
Original file line number Diff line number Diff line change 1
1
channels :
2
2
- pytorch
3
3
- defaults
4
- # using conda-forge for python v3.9+
4
+ # using conda-forge for python v3.9
5
5
- conda-forge
6
6
dependencies :
7
7
- pytest
Original file line number Diff line number Diff line change 24
24
fi
25
25
26
26
printf " 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} "
28
28
29
29
printf " * Installing torchvision\n"
30
30
python setup.py develop
Original file line number Diff line number Diff line change @@ -36,13 +36,10 @@ conda activate "${env_dir}"
36
36
37
37
# 3. Install Conda dependencies
38
38
printf " * Installing dependencies (except PyTorch)\n"
39
- NUMPY_MIN_VER=" 1.11"
40
39
FFMPEG_PIN=" =4.2"
41
40
if [[ " ${PYTHON_VERSION} " = " 3.9" ]]; then
42
- NUMPY_MIN_VER=" 1.20"
43
41
FFMPEG_PIN=" >=4.2"
44
42
fi
45
43
46
- conda install -y -c conda-forge " numpy >=${NUMPY_MIN_VER} "
47
44
conda install -y -c pytorch " ffmpeg${FFMPEG_PIN} "
48
45
conda env update --file " ${this_dir} /environment.yml" --prune
Original file line number Diff line number Diff line change 26
26
fi
27
27
28
28
printf " 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} "
30
30
31
31
printf " * Installing torchvision\n"
32
32
" $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}"
36
36
37
37
# 3. Install Conda dependencies
38
38
printf " * 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} "
44
39
conda env update --file " ${this_dir} /environment.yml" --prune
You can’t perform that action at this time.
0 commit comments