Skip to content

Commit 513a647

Browse files
bottlerfacebook-github-bot
authored andcommitted
iopath dependency
Summary: Add ioPath as a dependency of PyTorch3D in preparation for using the new PathManager. Reviewed By: nikhilaravi Differential Revision: D25372971 fbshipit-source-id: d8aa661d2de975e747dd494edc42bf843990cf68
1 parent 0a309ec commit 513a647

File tree

8 files changed

+9
-4
lines changed

8 files changed

+9
-4
lines changed

.circleci/config.in.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
# - run: conda install -c pytorch pytorch torchvision
7676

7777
- run: pip3 install --progress-bar off 'git+https://github.com/facebookresearch/fvcore'
78+
- run: pip3 install --progress-bar off 'git+https://github.com/facebookresearch/iopath'
7879
- run:
7980
name: get cub
8081
command: |

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
# - run: conda install -c pytorch pytorch torchvision
7676

7777
- run: pip3 install --progress-bar off 'git+https://github.com/facebookresearch/fvcore'
78+
- run: pip3 install --progress-bar off 'git+https://github.com/facebookresearch/iopath'
7879
- run:
7980
name: get cub
8081
command: |

INSTALL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The core library is written in PyTorch. Several components have underlying imple
1313
- torchvision that matches the PyTorch installation. You can install them together as explained at pytorch.org to make sure of this.
1414
- gcc & g++ ≥ 4.9
1515
- [fvcore](https://github.com/facebookresearch/fvcore)
16+
- [ioPath](https://github.com/facebookresearch/iopath)
1617
- If CUDA is to be used, use a version which is supported by the corresponding pytorch version and at least version 9.2.
1718
- If CUDA is to be used and you are building from source, the CUB library must be available. We recommend version 1.10.0.
1819

@@ -21,7 +22,7 @@ The runtime dependencies can be installed by running:
2122
conda create -n pytorch3d python=3.8
2223
conda activate pytorch3d
2324
conda install -c pytorch pytorch=1.7.0 torchvision cudatoolkit=10.2
24-
conda install -c conda-forge -c fvcore fvcore
25+
conda install -c conda-forge fvcore iopath
2526
```
2627

2728
For the CUB build time dependency, if you are using conda, you can continue with

dev/run_tutorials.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ conda init bash
1919
source ~/.bashrc
2020
conda create -y -n myenv python=3.8 matplotlib ipython ipywidgets nbconvert
2121
conda activate myenv
22-
conda install -y -c conda-forge fvcore
22+
conda install -y -c conda-forge fvcore iopath
2323
conda install -y -c pytorch pytorch=1.6.0 cudatoolkit=10.1 torchvision
2424
conda install -y -c pytorch3d-nightly pytorch3d
2525
pip install plotly scikit-image

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ sphinx_markdown_tables
66
mock
77
numpy
88
git+git://github.com/facebookresearch/fvcore.git
9+
git+git://github.com/facebookresearch/iopath.git
910
https://download.pytorch.org/whl/cpu/torchvision-0.8.2%2Bcpu-cp37-cp37m-linux_x86_64.whl
1011
https://download.pytorch.org/whl/cpu/torch-1.7.1%2Bcpu-cp37-cp37m-linux_x86_64.whl

packaging/build_conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ setup_conda_pytorch_constraint
1717
setup_conda_cudatoolkit_constraint
1818
setup_visual_studio_constraint
1919
# shellcheck disable=SC2086
20-
conda build $CONDA_CHANNEL_FLAGS ${TEST_FLAG:-} -c bottler -c defaults -c conda-forge --no-anaconda-upload -c fvcore --python "$PYTHON_VERSION" packaging/pytorch3d
20+
conda build $CONDA_CHANNEL_FLAGS ${TEST_FLAG:-} -c bottler -c defaults -c conda-forge --no-anaconda-upload --python "$PYTHON_VERSION" packaging/pytorch3d

packaging/pytorch3d/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ requirements:
2222
- numpy >=1.11
2323
- torchvision >=0.5
2424
- fvcore
25+
- iopath
2526
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
2627
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
2728

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(self, *args, **kwargs):
109109
description="PyTorch3D is FAIR's library of reusable components "
110110
"for deep Learning with 3D data.",
111111
packages=find_packages(exclude=("configs", "tests", "tests.*")),
112-
install_requires=["torchvision>=0.4", "fvcore"],
112+
install_requires=["torchvision>=0.4", "fvcore", "iopath"],
113113
extras_require={
114114
"all": ["matplotlib", "tqdm>4.29.0", "imageio", "ipywidgets"],
115115
"dev": ["flake8", "isort", "black==19.3b0"],

0 commit comments

Comments
 (0)