@@ -25,7 +25,7 @@ Zachary Teed and Jia Deng, CVPR 2021
...
@@ -25,7 +25,7 @@ Zachary Teed and Jia Deng, CVPR 2021
### Requirements:
### Requirements:
* Cuda >= 10.1 (with nvcc compiler)
* Cuda >= 10.1 (with nvcc compiler)
* PyTorch >= 1.6
* PyTorch >= 1.7
We recommend installing within a virtual enviornment. Make sure you clone using the `--recursive` flag. If you are using Anaconda, the following command can be used to install all dependencies
We recommend installing within a virtual enviornment. Make sure you clone using the `--recursive` flag. If you are using Anaconda, the following command can be used to install all dependencies
```
```
...
@@ -42,7 +42,7 @@ To run the examples, you will need OpenCV and Open3D. Depending on your operatin
...
@@ -42,7 +42,7 @@ To run the examples, you will need OpenCV and Open3D. Depending on your operatin
pip install opencv-python open3d
pip install opencv-python open3d
```
```
### Installing:
### Installing (from source)
Clone the repo using the `--recursive` flag and install using `setup.py` (may take up to 10 minutes)
Clone the repo using the `--recursive` flag and install using `setup.py` (may take up to 10 minutes)
### Converting between Groups Elements and Euclidean Embeddings
We provide differentiable `FromVec` and `ToVec` functions which can be used to convert between LieGroup elements and their vector embeddings. Additional, the `.matrix` function returns a 4x4 transformation matrix.
```python
# random quaternion
q=torch.randn(1,4,requires_grad=True)
q=q/q.norm(dim=-1,keepdim=True)
# create SO3 object from quaternion (differentiable w.r.t q)