赞
踩
waymo-open-dataset-viewer是一个开源的waymo open dataset的可视化工具,本文基于我fork的这一版本进行详解,并直接在原README文件中进行修改。
A WebGL viewer for pointclouds of the waymo open dataset that runs seamlessly in the browser with an integrated python server that processes and serves the dataset segments.
Before using the viewer, you first need to download (parts of) the dataset from the official download page. Create a directory containing the segments (.tfrecord files) you want to view.
下载过程中你可能会用到gsutil,关于它的使用可以参考gsutil的安装与文件下载注意事项和gsutil下载失败如何恢复下载。
Consider using tensorflow-gpu since it will speed up reading the segments.
原文使用的是 tensorflow2.0.0,其实在tensorflow2.0.0之后已经不再区分CPU和GPU版本了,只要你的环境中有GPU且依赖环境设置正确就会自动调用GPU进行计算。而且根据下文中用到的requirements.txt
文件中所写的依赖库可以看出作者使用的tensorflow为2.5.0,但经过测试在tensorflow2.4.0上也能使用。
git clone https://github.com/erksch/waymo-open-dataset-viewer.git
cd ./waymo-open-dataset-viewer
pip install -r requirements.txt
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
yarn install
python websocket.py --segments-dir path/to/segments
如
python websocket.py --segments-dir /media/bit/waymo_open_dataset_v_1_3_2/validation
yarn build
index.html
file (在你终端的当前目录下)in the browser or callyarn serve
to start a small python server on port 8000 that serves the html file.
当运行上面的指令,终端会打印如下信息,将其中的网址http://0.0.0.0:8000/
用浏览器打开即可
yarn run v1.22.19
$ ./serve_frontend.sh
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
waymo-open-dataset-viewer效果演示
CUDA_VISIBLE_DEVICES="-1" python websocket.py --segments-dir path/to/segments
如
CUDA_VISIBLE_DEVICES="-1" python websocket.py --segments-dir /media/bit202/BIT202/waymo_open_dataset_v_1_3_2/validation
否则有可能出现如下报错
F tensorflow/core/util/cuda_solvers.cc:120] Check failed: cublasCreate(&cublas_handle) == CUBLAS_STATUS_SUCCESS Failed to create cuBlas instance.
已放弃 (核心已转储)
sudo apt install yarn
而不进行前面的设置,你可能会安装cmdtest
,安装过程中他会提示你下面的信息,而这种情况下你后续的操作将无法实现。注意,选中 'cmdtest' 而非 'yarn'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。