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

Installation and Setup with DockerFile #113

Closed
Hemantr05 opened this issue Mar 17, 2020 · 17 comments
Closed

Installation and Setup with DockerFile #113

Hemantr05 opened this issue Mar 17, 2020 · 17 comments
Assignees
Labels
enhancement New feature or request installation Installation questions or issues

Comments

@Hemantr05
Copy link

Hemantr05 commented Mar 17, 2020

🚀 Feature

I would like to propose and implement a DockerFile for easy installation and set up of pytorch3d

Motivation

A lot of users might face problems while installation, I personally took some time to set it up, but a dockerfile makes this easier.
One line of code to run the dockerfile.

Pitch

The DoclkerFile would :

  1. check for python
  2. Ask for OS
  3. create a virtual environment
  4. Install all requirements
  5. Checks for cuda (and version) if doesn't exist, will install with pip (without cuda support)
  6. User can choose.
    [a] anaconda [b] pip
  7. User can choose building / installing from source.
    [a] Install from Github [b] Install from local clone

NOTE: we only consider adding new features if they are useful for many users.

@Hemantr05 Hemantr05 changed the title Dockerfile for installation and set up of PyTorch3D Installtion and Setup with DockerFile Mar 17, 2020
@Hemantr05 Hemantr05 changed the title Installtion and Setup with DockerFile Installation and Setup with DockerFile Mar 17, 2020
@nikhilaravi nikhilaravi added the enhancement New feature or request label Mar 17, 2020
@nikhilaravi
Copy link
Contributor

@Hemantr05 yes this sounds like a good idea. Do you plan to implement it or do you need support from us?

@Hemantr05
Copy link
Author

@nikhilaravi will try implementing it. Should be done by today.
If any support is needed, what would be the approach for it?

@nikhilaravi
Copy link
Contributor

Great! Feel free to make a PR when you're ready. If you have any questions you can ask them here or on your PR.

@Hemantr05
Copy link
Author

Will do, thanks a ton @nikhilaravi

@bhadresh74
Copy link

I was successfully able to setup pytorch3d using docker. Let me know if anyone needs any help.

@Hemantr05
Copy link
Author

@bhadresh74 is it possible for you share the same?

@bhadresh74
Copy link

install_Pytorch3D_Dockerfile.txt
@Hemantr05 There it is. Enjoy.

@Hemantr05
Copy link
Author

@bhadresh74 thank you

@gkioxari gkioxari added the installation Installation questions or issues label Apr 9, 2020
@gkioxari
Copy link
Contributor

gkioxari commented Apr 9, 2020

Seems like this issue is resolved. I am closing it and feel free to reopen it if anything new emerges.

@gkioxari gkioxari closed this as completed Apr 9, 2020
@tianyilt
Copy link

It seems not to work today because pytoch3d=0.2.0=py36_cu100_pyt14 has removed in -c pytorch3d-nightly
The solution is to replace RUN conda install --name pytorch3d pytorch3d -c pytorch3d-nightly with RUN conda install --name pytorch3d pytorch3d -c pytorch3d because pytoch3d=0.2.0=py36_cu100_pyt14 exists in -c pytorch3d

@ktiwary2
Copy link

ktiwary2 commented Nov 29, 2021

How do you upgrade the pytorch3d version after running the docker? Running conda update doesn't seem to work (im running it inside the conda base env).

@themataleao
Copy link

install_Pytorch3D_Dockerfile.txt @Hemantr05 There it is. Enjoy.

Dear @bhadresh74, within your dockerfile you are using python 3.6, but the recommended one is 3.8. I am trying since hours to install it with 3.8 but it doesnt work. Do you mind helping me on that?

@abhayraw1
Copy link

An official docker image is really needed to avoid the countless hours being spent by researchers and developers trying to get it installed!

@RujingD
Copy link

RujingD commented Jul 6, 2022

Please,How can I use pytorch3d in docker?

@domattioli
Copy link

An official docker image is really needed to avoid the countless hours being spent by researchers and developers trying to get it installed!

This x100 for Windows users.

@bhezy
Copy link

bhezy commented Aug 31, 2022

@bhadresh74 is there a way to make a Docker image that generates pytorch3d v0.7.0, for use on a Windows machine? I have been trying, but it seems as though this Docker File is not working (I am on Windows, and have not made any changes). I assume that it should work regardless of machine, I have just been having a lot of trouble getting things to work.

@bottler, please consider an official Docker image for those of us in the community on Windows machines. It is extremely difficult the build pytorch3d on the Windows OS, which is unfortunate given how important it is in the realm of research. I am certain that the team who developed it can come up with a phenomenal solution.

@bottler
Copy link
Contributor

bottler commented Sep 6, 2022

If you want to use PyTorch3D in docker rather than on windows itself, you can use an existing package; I don't see why a pytorch3d specific image would be that useful. For example, starting with an official pytorch package, these conda install steps are fast:

docker run --rm -it pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
> conda install -c fvcore -c iopath -c conda-forge fvcore iopath
> conda install pytorch3d=0.7.0 -c pytorch3d
> ipython
>> from pytorch3d.structures import Meshes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request installation Installation questions or issues
Projects
None yet
Development

No branches or pull requests