Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda's environment.yml: install pytorch gpu by pegging cudatoolkit to <= v11.5 #540

Closed
wants to merge 43 commits into from

Conversation

remtav
Copy link
Contributor

@remtav remtav commented May 25, 2022

Fixes #529

@remtav remtav changed the title conda's environment.yml: peg cudatoolkit to <= v11.5 conda's environment.yml: install pytorch gpu by pegging cudatoolkit to <= v11.5 May 25, 2022
@ashnair1
Copy link
Collaborator

The docs issue was solved by a755bb6. Could you try rebasing from main?

@adamjstewart
Copy link
Collaborator

This hack will need to be updated with every new cudatoolkit release. Does switching from pytorch to pytorch-gpu also solve the issue?

@ashnair1
Copy link
Collaborator

ashnair1 commented May 25, 2022

Switching to pytorch-gpu will get us back to #293. macOS and windows won't be supported.

@ashnair1
Copy link
Collaborator

Also this isn't really required for every cudatoolkit release. Just the latest cudatoolkit that pytorch is compiled with. Hence why 11.5 is used instead of 11.7

adamjstewart and others added 24 commits May 26, 2022 08:50
* Remove type ignores for PyTorch

* Mypy fixes for pytest MonkeyPatch

* Black

* Ignore Identity

* Generic fixes

* Remove unused Generator import

* More fixes

* Fix remaining mypy errors

* More typing cleanups

* typing.OrderedDict isn't available until Python 3.7.2+

* Need Python 3.9 to build docs for fancy OrderedDict

* Fix Python 3.8 and earlier support

* Fix BigEarthNet tests

* Fix bug in ETCI 2021 tests

* Remove unused flake8 ignore

* More robust and well-documented trainer steps

* Many functions don't actually use batch_idx

* Store cast hparams in trainers
* VectorDataset: fix issue with empty query

* isort
* gitattributes: allow diff of data.py files

* Allow diffs of all text files, not just data.py
* add own plot method and data.py

* clean up data.py

* version changed instead of added

* Update cbf.py

* Any instead of Tensor

* Fix VectorDataset tests

* Plot method in base class no longer needed/tested

* Removing unused imports

* Remove type ignore from openbuildings

* Fix tests

* Black formatting

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* Add SpaceNet3

* Fixes

* Replace itertools.product with zip

* Update docstring

* Remove unused options
* Drop Python 3.6 support

* pandas 0.23.2+ required for Python 3.7+ support

* Update environment.yml too
* Upgrade all files to Python 3.7+ syntax

* Update contributing guide

* Move pyupgrade to correct section
* RasterDataset: remove plot method

* Remove RasterDataset plot tests

* Remove plotting tests for landsat/naip
* add dataset

* md5

* added tests and data

* test

* remove type

* fix docs

* fix docs

* requested changes

* fix documentation and pyupgrade

* remove random

* missing license header
…#493)

* Indices tutorial: better normalization for true color plot

* Brighten Sentinel-2 image plots
adamjstewart and others added 16 commits May 26, 2022 08:50
* RandomGeoSampler: prevent area bias

* Use builtin PyTorch random

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
* add plot method and data.py

* add version

* file typo

* forgot data.py

* add version change and larger image size

* requested changes

* test with print

* test geo

* change data to match chesapeake

* fix crs test
)

* Landsat: allow use of non-SR bands

* Fix citation

* The more citation the better
…soft#528)

* add channels to prevent conda's ResolvePackageError on Windows

* add open3d-admin channel for open3d dependency
* Add GBIF dataset

* Typo fix

* Add tests

* Style fixes

* Don't ignore CSV files

* Testing...

* Fix coverage bug

* Add note about required dep
* Test on Python 3.10

* Install pre-release versions of rasterio for 3.10 wheels

* Only use pre-release for rasterio

* Open3D does not yet have 3.10 wheels
* Add EDDMapS dataset

* Mypy hack

* Test fix
* Add Inria Datamodule

* Fix up

* Add predict.py

* Integrate kornia fns for extracting & combining

Requires kornia/kornia#1558 to be merged

* transform creates problem when calculating metrics

* Update

* Use dict.get

* Add tests & update test data

* Add Inria datamodule to docs

* Reduce test data size

* Datamodules always have predict_dataloader

* Remove comments

* Update predict.py

* Add PredictDataset

* Fix tests

* Update inria.yaml

* Clarify predict_on doc

* Refactor

* Update min kornia

* Update inria.yaml

* Remove predict utilities

* Trainer fix

* Use kornia's compute_padding

* kornia docfix

* Use stable docs

* Fixes
@github-actions github-actions bot added datamodules PyTorch Lightning datamodules datasets Geospatial or benchmark datasets documentation Improvements or additions to documentation losses Geospatial loss functions models Models and pretrained weights samplers Samplers for indexing datasets testing Continuous integration testing trainers PyTorch Lightning trainers transforms Data augmentation transforms labels May 26, 2022
@adamjstewart
Copy link
Collaborator

Looks like a bad rebase.

@remtav
Copy link
Contributor Author

remtav commented May 26, 2022

Messed up my rebase. I'm not a pro with git. I'll reopen a PR from a fresh branch.

@remtav remtav closed this May 26, 2022
@remtav remtav deleted the 529-conda-pytorch-cpu branch May 26, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodules PyTorch Lightning datamodules datasets Geospatial or benchmark datasets documentation Improvements or additions to documentation losses Geospatial loss functions models Models and pretrained weights samplers Samplers for indexing datasets testing Continuous integration testing trainers PyTorch Lightning trainers transforms Data augmentation transforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conda installs a cpu version of pytorch and torchvision
7 participants