Skip to content

Commit

Permalink
Correction of version errors, working!
Browse files Browse the repository at this point in the history
  • Loading branch information
aagustinconti committed Apr 14, 2023
1 parent b534374 commit f8758e7
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 22 deletions.
5 changes: 3 additions & 2 deletions dependencies/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Specify the parent image from which we build
FROM pytorch/pytorch:latest
FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtime

# Copy the dependencies directory
COPY . /dependencies_files_docker
Expand All @@ -11,7 +11,8 @@ WORKDIR /dependencies_files_docker
RUN pip install -r requirements.txt
RUN chmod +x dependencies.sh
RUN bash dependencies.sh
RUN cp -f ./upsampling.py /opt/conda/lib/python3.7/site-packages/torch/nn/modules/upsampling.py
RUN mv /opt/conda/lib/python3.10/site-packages/torch/nn/modules/upsampling.py /opt/conda/lib/python3.10/site-packages/torch/nn/modules/upsampling_wrong.py
RUN cp -f ./upsampling.py /opt/conda/lib/python3.10/site-packages/torch/nn/modules/upsampling.py

# To go to the working directory
WORKDIR /workspace
Expand Down
36 changes: 18 additions & 18 deletions dependencies/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
opencv-python==4.6.0.66
scipy==1.7.3
gdown==4.5.3
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
pafy==0.5.5
youtube-dl==2020.12.2
pandas==1.3.5


absl-py==1.3.0
brotlipy==0.7.0
cachetools==5.2.0
conda==4.13.0
conda-build==3.21.9
cycler==0.11.0
Cython==0.29.32
deep-sort-realtime==1.3.1
dnspython==2.2.1
easydict==1.10
flake8==5.0.4
fonttools==4.37.4
future==0.18.2
gdown==4.5.3

google-auth==2.13.0
google-auth-oauthlib==0.4.6
grpcio==1.50.0
Expand All @@ -32,36 +40,28 @@ nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
oauthlib==3.2.2
opencv-python==4.6.0.66

packaging==21.3
pafy==0.5.5
pandas==1.3.5


Pillow==9.0.1
protobuf==3.19.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle==2.9.1
pycosat==0.6.3
pyflakes==2.5.0
pyparsing==3.0.9
python-dateutil==2.8.2
python-etcd==0.4.5
PyYAML==6.0
requests-oauthlib==1.3.1
rsa==4.9
scipy==1.7.3

seaborn==0.12.0
tb-nightly==2.11.0a20221105
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
thop==0.1.1.post2209072238
torch==1.13.0
torchelastic==0.2.0
torchtext==0.13.0
torchvision==0.14.0

Werkzeug==2.2.2
yacs==0.1.8
yapf==0.32.0
youtube-dl==2020.12.2

zipp==3.10.0
78 changes: 78 additions & 0 deletions dependencies/requirements_wrong.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
opencv-python==4.6.0.66
scipy==1.7.3
gdown==4.5.3
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
pafy==0.5.5
youtube-dl==2020.12.2
pandas==1.3.5




absl-py==1.3.0
brotlipy==0.7.0
cachetools==5.2.0
#conda==4.13.0
#conda-build==3.21.9
cycler==0.11.0
Cython==0.29.32
deep-sort-realtime==1.3.1
dnspython==2.2.1
easydict==1.10
flake8==5.0.4
fonttools==4.37.4
future==0.18.2

google-auth==2.13.0
google-auth-oauthlib==0.4.6
grpcio==1.50.0
h5py==3.7.0
imageio==2.22.3
importlib-metadata==4.2.0
isort==4.3.21
Jinja2==2.10.1
kiwisolver==1.4.4
Markdown==3.3.4
MarkupSafe==2.1.1
matplotlib==3.5.3
mccabe==0.7.0
mkl-fft==1.3.1
mkl-service==2.4.0
nvidia-cublas-cu11==11.10.3.66
nvidia-cuda-nvrtc-cu11==11.7.99
nvidia-cuda-runtime-cu11==11.7.99
nvidia-cudnn-cu11==8.5.0.96
oauthlib==3.2.2

packaging==21.3


Pillow==9.0.1
protobuf==3.19.6
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle==2.9.1
pycosat==0.6.3
pyflakes==2.5.0
pyparsing==3.0.9
python-dateutil==2.8.2
python-etcd==0.4.5
PyYAML==6.0
requests-oauthlib==1.3.1
rsa==4.9

seaborn==0.12.0
tb-nightly==2.11.0a20221105

thop==0.1.1.post2209072238
torch==1.13.0
torchelastic==0.2.0
torchtext==0.13.0
torchvision==0.14.0
Werkzeug==2.2.2
yacs==0.1.8
yapf==0.32.0

zipp==3.10.0
5 changes: 3 additions & 2 deletions dependencies/upsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ def __init__(self, size: Optional[_size_any_t] = None, scale_factor: Optional[_r
self.recompute_scale_factor = recompute_scale_factor

def forward(self, input: Tensor) -> Tensor:
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners)
#recompute_scale_factor=self.recompute_scale_factor)
return F.interpolate(input, self.size, self.scale_factor, self.mode, self.align_corners,
#recompute_scale_factor=self.recompute_scale_factor
)

def extra_repr(self) -> str:
if self.scale_factor is not None:
Expand Down

0 comments on commit f8758e7

Please sign in to comment.