eigenvivek / DiffPose

[CVPR 2024] Intraoperative 2D/3D registration via differentiable X-ray rendering
http://vivekg.dev/DiffPose/
MIT License
118 stars 14 forks source link

How to build a stable Conda environment for running Diffpose #20

Closed 98zhenyu closed 6 months ago

98zhenyu commented 7 months ago
  1. Please, what version of Python does the environment require to run for Diffpose?
  2. Currently, I've built a Conda environment with Python 3.10, but when I try to directly 'pip install diffpose', it throws an error due to missing PyTorch3D dependency.
  3. Is it correct for me to reconfigure the environment by installing 'environment.yml' from Diffpose, like 'pip install -e .'?
eigenvivek commented 7 months ago

Hi @98zhenyu , thanks for letting me know. It should work to install from source like this:

mamba create -f environment.yml
mamba activate diffpose
pip install -e .
pobi123 commented 7 months ago

Hi @98zhenyu , thanks for letting me know. It should work to install from source like this:

mamba create -f environment.yml
mamba activate diffpose
pip install -e .

Hello, what should I do if an error occurs when executing condacreate -f environment.yml?

eigenvivek commented 7 months ago

Hi @pobi123 , what errors are you getting?

eigenvivek commented 7 months ago

sorry the first line should've said mamba env create -f environment.yml