Skip to content

Commit 9484920

Browse files
committed
Removing scipy as dependency
1 parent e454c6a commit 9484920

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV LIBRARY_PATH /usr/local/nvidia/lib64:/usr/local/nvidia/lib:/usr/local/cuda/l
2121

2222
# python3 modules
2323
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py && \
24-
pip3 install --upgrade --no-cache-dir wheel six setuptools cython numpy scipy==1.2.0 \
24+
pip3 install --upgrade --no-cache-dir wheel six setuptools cython numpy imageio \
2525
matplotlib seaborn scikit-learn scikit-image pillow requests \
2626
jupyterlab networkx h5py pandas plotly protobuf tqdm tensorboardX colorama setproctitle && \
2727
pip3 install https://download.pytorch.org/whl/cu90/torch-1.0.0-cp35-cp35m-linux_x86_64.whl

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ L1 and L2 losses with multi-scale support are available in [losses.py](./losses.
4848
Currently, the code supports python 3
4949
* numpy
5050
* PyTorch ( == 0.4.1, for <= 0.4.0 see branch [python36-PyTorch0.4](https://github.com/NVIDIA/flownet2-pytorch/tree/python36-PyTorch0.4))
51-
* scipy
51+
* imageio
5252
* scikit-image
5353
* tensorboardX
5454
* colorama, tqdm, setproctitle

datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from glob import glob
99
import utils.frame_utils as frame_utils
1010

11-
from scipy.misc import imread, imresize
11+
from imageio import imread
1212

1313
class StaticRandomCrop(object):
1414
def __init__(self, image_size, crop_size):

utils/frame_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
from os.path import *
3-
from scipy.misc import imread
3+
from imageio import imread
44
from . import flow_utils
55

66
def read_gen(file_name):

0 commit comments

Comments
 (0)