-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from dashidhy/master
improve installation, support remote usage
- Loading branch information
Showing
7 changed files
with
393 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Install remotely on a Ubuntu 16.04 server and visulize by Jupyter Notebook | ||
## Install mayavi | ||
- remote servers usually lack GUI supports, so first some libraries and backends should be installed | ||
``` | ||
(base)$ sudo apt-get update && sudo apt-get install libgl1-mesa-glx xvfb | ||
``` | ||
- install like locally, add [xvfbwrapper](https://github.com/enthought/mayavi/issues/477#issuecomment-477653210) | ||
``` | ||
(base)$ conda create -n kitti_vis python=3.7 | ||
(base)$ conda activate kitti_vis | ||
(kitti_vis)$ pip install opencv-python pillow scipy matplotlib xvfbwrapper | ||
(kitti_vis)$ conda install mayavi -c conda-forge | ||
``` | ||
- install jupyter notebook | ||
``` | ||
(kitti_vis)$ pip install notebook | ||
``` | ||
- install ipywidgets and ipyevents, enable them as notebook extensions | ||
``` | ||
(kitti_vis)$ pip install ipywidgets ipyevents | ||
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix widgetsnbextension | ||
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix ipyevents | ||
``` | ||
- install and enable mayavi extension | ||
``` | ||
(kitti_vis)$ jupyter nbextension install --py --sys-prefix mayavi | ||
(kitti_vis)$ jupyter nbextension enable --py --sys-prefix mayavi | ||
``` | ||
- to test on Jupyter notebook, first set [ETS_TOOLKIT](https://github.com/enthought/mayavi/issues/439#issuecomment-251703994) | ||
``` | ||
(kitti_vis)$ export ETS_TOOLKIT='null' | ||
``` | ||
- then you can test mayavi intallation by [this notebook](test_mayavi.ipynb), which should show an interactive 3D curve | ||
|
||
## Use Jupyter Notebook for kitti visulization | ||
- Here is a simple [demo](../notebook_demo.ipynb). | ||
|
||
**Note: the above installation is tested successful on [an official PyTorch docker image](https://hub.docker.com/layers/pytorch/pytorch/1.5-cuda10.1-cudnn7-devel/images/sha256-449d5b98aa911955f55cb3ab413b81b34861ab5f4244519099328df282275690?context=explore).** |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters