#!/bin/bash
name="/home/data/"
for line in $(cat test_scene_name.txt)
do
address=${name}${line}
echo ${address}
contents="$(jq --arg a "$address" '.path_dataset = $a' /home/data/Open3D-0.16.1/examples/python/reconstruction_system/config/nyu_depth_v2.json)" && \
echo -E "${contents}" > /home/data/Open3D-0.16.1/examples/python/reconstruction_system/config/nyu_depth_v2.json
python3 run_system.py --config "/home/data/Open3D-0.16.1/examples/python/reconstruction_system/config/nyu_depth_v2.json" --make --register --refine --integrate
done
shell读取txt文件,更改json参数
最新推荐文章于 2024-08-09 23:54:45 发布
本文介绍了一个bash脚本,用于自动化处理多个场景的数据集。通过读取特定文件中的场景名称,该脚本会更新配置文件中的数据路径,并运行一个Python脚本进行三维重建任务。这个过程包括制作、注册、细化和整合等多个步骤。
6091

被折叠的 条评论
为什么被折叠?



