From 179886dfd57797b2b0d379062387c60313a58b2b Mon Sep 17 00:00:00 2001 From: MisakaQwQ <37115612+MisakaQwQ@users.noreply.github.com> Date: Wed, 26 Jul 2023 01:37:32 +0800 Subject: [PATCH] Fix python UnicodeDecodeError on windows (#6277) --- cpp/pybind/data/dataset.cpp | 152 ++++++++++++++++++------------------ 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/cpp/pybind/data/dataset.cpp b/cpp/pybind/data/dataset.cpp index e1454c70315..9cfcca0293c 100644 --- a/cpp/pybind/data/dataset.cpp +++ b/cpp/pybind/data/dataset.cpp @@ -977,25 +977,25 @@ cloud, rgb sequence, clean depth sequence, noisy depth sequence, oni sequence, and ground-truth camera trajectory. RedwoodIndoorLivingRoom1 -├── colors -│  ├── 00000.jpg -│ ├── 00001.jpg -│ ├── ... -│ └── 02869.jpg -├── depth -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02869.png -├── depth_noisy -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02869.png -├── dist-model.txt -├── livingroom1.oni -├── livingroom1-traj.txt -└── livingroom.ply +|-- colors +| |-- 00000.jpg +| |-- 00001.jpg +| |-- ... +| '-- 02869.jpg +|-- depth +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02869.png +|-- depth_noisy +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02869.png +|-- dist-model.txt +|-- livingroom1.oni +|-- livingroom1-traj.txt +'-- livingroom.ply )doc"); dataset.def(py::init(), "data_root"_a = ""); dataset.def_property_readonly("point_cloud_path", @@ -1032,25 +1032,25 @@ cloud, rgb sequence, clean depth sequence, noisy depth sequence, oni sequence, and ground-truth camera trajectory. RedwoodIndoorLivingRoom2 -├── colors -│  ├── 00000.jpg -│ ├── 00001.jpg -│ ├── ... -│ └── 02349.jpg -├── depth -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02349.png -├── depth_noisy -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02349.png -├── dist-model.txt -├── livingroom2.oni -├── livingroom2-traj.txt -└── livingroom.ply +|-- colors +| |-- 00000.jpg +| |-- 00001.jpg +| |-- ... +| '-- 02349.jpg +|-- depth +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02349.png +|-- depth_noisy +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02349.png +|-- dist-model.txt +|-- livingroom2.oni +|-- livingroom2-traj.txt +'-- livingroom.ply )doc"); dataset.def(py::init(), "data_root"_a = ""); dataset.def_property_readonly("point_cloud_path", @@ -1086,25 +1086,25 @@ cloud, rgb sequence, clean depth sequence, noisy depth sequence, oni sequence, and ground-truth camera trajectory. RedwoodIndoorOffice1 -├── colors -│  ├── 00000.jpg -│ ├── 00001.jpg -│ ├── ... -│ └── 02689.jpg -├── depth -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02689.png -├── depth_noisy -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02689.png -├── dist-model.txt -├── office1.oni -├── office1-traj.txt -└── office.ply +|-- colors +| |-- 00000.jpg +| |-- 00001.jpg +| |-- ... +| '-- 02689.jpg +|-- depth +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02689.png +|-- depth_noisy +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02689.png +|-- dist-model.txt +|-- office1.oni +|-- office1-traj.txt +'-- office.ply )doc"); dataset.def(py::init(), "data_root"_a = ""); dataset.def_property_readonly("point_cloud_path", @@ -1139,25 +1139,25 @@ cloud, rgb sequence, clean depth sequence, noisy depth sequence, oni sequence, and ground-truth camera trajectory. RedwoodIndoorOffice2 -├── colors -│  ├── 00000.jpg -│ ├── 00001.jpg -│ ├── ... -│ └── 02537.jpg -├── depth -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02537.png -├── depth_noisy -│ ├── 00000.png -│ ├── 00001.png -│ ├── ... -│ └── 02537.png -├── dist-model.txt -├── office2.oni -├── office2-traj.txt -└── office.ply +|-- colors +| |-- 00000.jpg +| |-- 00001.jpg +| |-- ... +| '-- 02537.jpg +|-- depth +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02537.png +|-- depth_noisy +| |-- 00000.png +| |-- 00001.png +| |-- ... +| '-- 02537.png +|-- dist-model.txt +|-- office2.oni +|-- office2-traj.txt +'-- office.ply )doc"); dataset.def(py::init(), "data_root"_a = ""); dataset.def_property_readonly("point_cloud_path",