deliriumv01d / nerfpp Goto Github PK
View Code? Open in Web Editor NEWNeural radiance fields(NeRF) c++ LibTorch implementation
Neural radiance fields(NeRF) c++ LibTorch implementation
Nice work! But, there are something wrong on my labtop. I believe it may caused by the version of libtorch, could you please give a detailed version of each libraries?
I was trying to run the code and I'm getting a vector out of bounds error in the following method in RayUtils.h:
inline torch::Tensor GetDirections(const int h, const int w, torch::Tensor k)
{
auto device = k.device();
//pytorch's meshgrid has indexing='ij'
std::vector<torch::Tensor> ij = torch::meshgrid({ torch::linspace(0, w - 1, w), torch::linspace(0, h - 1, h) });
auto i = ij[0].to(device).t();
auto j = ij[1].to(device).t();
torch::Tensor dirs = torch::stack({ (i - k[0][2]) / k[0][0], -(j - k[1][2]) / k[1][1], -torch::ones_like(i) }, -1);
return dirs;
}
Seems to be on:
auto i = ij[0].to(device).t();
I am running this on a RTX 2080Ti. Do you think I'm running out of memory or something along those lines?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.