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

Replace pytorch-gpu with pytorch in environment.yml #295

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

ashnair1
Copy link
Collaborator

@ashnair1 ashnair1 commented Dec 16, 2021

Fixes #293

Tried this on my Linux machine and it installs pytorch 1.10.0 with gpu support.

@ashnair1
Copy link
Collaborator Author

Should we add a note regarding the windows situation? You can't use environment.yml to create an environment on windows due to pytorch and torchvision (from conda-forge) and pycocotools not supporting it.

@adamjstewart
Copy link
Collaborator

Yeah, we should probably add a note for Windows. Spack also doesn't yet support Windows, although that's a work in progress. Idk how many of our users actually use Windows.

@adamjstewart adamjstewart added the documentation Improvements or additions to documentation label Dec 16, 2021
@adamjstewart adamjstewart added this to the 0.1.1 milestone Dec 16, 2021
@calebrob6
Copy link
Member

Works for me too!

It looks like conda-forge has:

  • pytorch
  • pytorch-cpu
  • pytorch-gpu

the "pytorch" version has both cpu and cuda versions -- https://anaconda.org/conda-forge/pytorch/files?version=1.10.0 -- I'm not sure how conda install selects between them, but I think it should be fine.

@adamjstewart adamjstewart merged commit 3900bf4 into microsoft:main Dec 16, 2021
@ashnair1 ashnair1 deleted the conda-docs branch December 17, 2021 10:36
adamjstewart pushed a commit that referenced this pull request Dec 19, 2021
* Replace pytorch-gpu with pytorch in environment.yml

* Add windows note
@remtav
Copy link
Contributor

remtav commented May 4, 2022

Yeah, we should probably add a note for Windows. Spack also doesn't yet support Windows, although that's a work in progress. Idk how many of our users actually use Windows.

See issue #527

yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Replace pytorch-gpu with pytorch in environment.yml

* Add windows note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

environment.yml pytorch-gpu can be simplified to pytorch to support Macs
4 participants