Skip to content

Commit

Permalink
fix: the directory name has been changed and minor errors have been f…
Browse files Browse the repository at this point in the history
…ixed
  • Loading branch information
LevDenisov committed Oct 23, 2023
1 parent cb19621 commit 63998cc
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 87 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(DEPLEX_LIB_DIR ${CMAKE_BINARY_DIR}/lib)
add_subdirectory(external)
add_subdirectory(libs)
add_subdirectory(cpp)
add_subdirectory(benchmark-artifact/cpp-benchmark)
add_subdirectory(benchmark/cpp-benchmark)
if (${BUILD_EXAMPLES})
add_subdirectory(examples)
endif()
Binary file removed benchmark-artifact/python-benchmark/boxplot.png
Binary file not shown.
18 changes: 0 additions & 18 deletions benchmark-artifact/python-benchmark/create_boxplot.py

This file was deleted.

51 changes: 0 additions & 51 deletions benchmark-artifact/python-benchmark/process_cloud.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ double variance(const Eigen::VectorXd& data, double mean) {

int main() {
std::filesystem::path data_dir =
std::filesystem::current_path().parent_path().parent_path().parent_path() / "benchmark-artifact/data";
std::filesystem::current_path().parent_path().parent_path().parent_path() / "benchmark/data";
std::filesystem::path image_path = data_dir / "depth/000004415622.png";
std::filesystem::path intrinsics_path = data_dir / "config/intrinsics.K";
std::filesystem::path config_path = data_dir / "config/TUM_fr3_long_val.ini";
Expand Down Expand Up @@ -68,18 +68,6 @@ int main() {

auto execution_time_segmentation_stage = algorithm.GetExecutionTime();

for (auto& v : execution_time_segmentation_stage) {
for (auto& stage : v) {
stage /= NUMBER_OF_RUNS;
}
}

for (auto& v : execution_time_stage) {
for (auto& stage : v) {
stage /= NUMBER_OF_RUNS;
}
}

Eigen::VectorXd elements = Eigen::VectorXd::Zero(NUMBER_OF_RUNS);
for (auto i = 0; i < NUMBER_OF_RUNS; ++i) {
elements[i] = execution_time_stage[i][0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ double variance(const Eigen::VectorXd& data, double mean) {

int main(int argc, char* argv[]) {
std::filesystem::path data_dir =
std::filesystem::current_path().parent_path().parent_path().parent_path() / "benchmark-artifact/data";
std::filesystem::current_path().parent_path().parent_path().parent_path() / "benchmark/data";
std::filesystem::path image_path = data_dir / "depth/000004415622.png";
std::filesystem::path intrinsics_path = data_dir / "config/intrinsics.K";
std::filesystem::path config_path = data_dir / "config/TUM_fr3_long_val.ini";

auto start_time = std::chrono::high_resolution_clock::now();
auto end_time = std::chrono::high_resolution_clock::now();

const int NUMBER_OF_RUNS = 1;
const int NUMBER_OF_RUNS = 10;
const int NUMBER_OF_SNAPSHOT = 1;

std::vector<Eigen::Vector3d> execution_time_stage(NUMBER_OF_SNAPSHOT, Eigen::VectorXd::Zero(3));
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from pathlib import Path

data_dir = Path(__file__).parent.parent.parent.resolve() / "benchmark-artifact/data"
data_dir = Path(__file__).parent.parent.parent.resolve() / "benchmark/data"
image_path = data_dir / Path("depth") / Path("000004415622.png")
config_path = data_dir / Path("config") / Path("TUM_fr3_long_val.ini")
intrinsics_path = data_dir / Path("config") / Path("intrinsics.K")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from pathlib import Path

data_dir = Path(__file__).parent.parent.parent.resolve() / "benchmark-artifact/data"
data_dir = Path(__file__).parent.parent.parent.resolve() / "benchmark/data"
image_path = data_dir / Path("depth") / Path("000004415622.png")
config_path = data_dir / Path("config") / Path("TUM_fr3_long_val.ini")
intrinsics_path = data_dir / Path("config") / Path("intrinsics.K")
Expand Down

0 comments on commit 63998cc

Please sign in to comment.