Skip to content
Snippets Groups Projects
Commit 00325868 authored by Floris Erich's avatar Floris Erich
Browse files

Spaces -> tabs

parent a58f4a82
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ inline void to_json(nlohmann::json& j, const TrainingXForm& x) {
inline void to_json(nlohmann::json& j, const NerfDataset& dataset) {
j["n_images"] = dataset.n_images;
j["paths"] = dataset.paths;
j["paths"] = dataset.paths;
for (size_t i = 0; i < dataset.n_images; ++i) {
j["metadata"].emplace_back();
j["xforms"].emplace_back();
......@@ -179,8 +179,8 @@ inline void from_json(const nlohmann::json& j, NerfDataset& dataset) {
if (j.contains("paths")) {
dataset.paths.push_back(j["paths"].at(i));
} else {
dataset.paths.push_back(std::string(""));
}
dataset.paths.push_back(std::string(""));
}
}
dataset.render_aabb = j.at("render_aabb");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment