Totoro97 / f2-nerf

Fast neural radiance field training with free camera trajectories
https://totoro97.github.io/projects/f2-nerf/
Apache License 2.0
933 stars 69 forks source link

f2-nerf carsh on euroc mav data set #109

Closed Idanaviv66 closed 1 year ago

Idanaviv66 commented 1 year ago

Hi, I am trying to test the f2-nerf on the euroc mav dataset (Vicon Room 1 01). I limited the number of images to be able to run colmap on my device (took every 10th image). Then I ran the colmap here is the folder after colmap.

When I run the f2-nerf I get the following error:

Screenshot from 2023-10-03 20-10-28

$ python3 scripts/run.py --config-name=wanjinyou dataset_name=euroc case_name=short mode=train +work_dir=$(pwd)

I try to reduce even further the number of frames but still got the following error:

Working directory is /home/ubuntu/f2-nerf
register Hash3DAnchoredInfo
register TCNNWPInfo
register volume render info
Aoligei!
[Dataset::Dataset] begin
[LoadImages] begin
[LoadImages] end in 0.0529063 seconds
Number of train/test/val images: 21/4/0
[Dataset::Dataset] end in 1.11251 seconds
[PersSampler::PersSampler] begin
[PersOctree::PersOctree] begin
[PersOctree::ConstructEdgePool] begin
edge_pool_.size() is value 2088
[PersOctree::ConstructEdgePool] end in 0.00311819 seconds
[PersOctree::PersOctree] end in 4.19006 seconds
[PersSampler::PersSampler] end in 4.20924 seconds
[Hash3DAnchored::Hash3DAnchored] begin
[Hash3DAnchored::Hash3DAnchored] end in 1.83235 seconds
terminate called after throwing an instance of 'c10::IndexError'
  what():  index 4689914 is out of bounds for dimension 0 with size 3008000
Exception raised from get at ../aten/src/ATen/native/cpu/IndexKernelUtils.h:44 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0x6b (0x7f986fe553cb in /home/ubuntu/f2-nerf/External/libtorch/lib/libc10.so)
frame #1: <unknown function> + 0x5363b4d (0x7f9843563b4d in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #2: <unknown function> + 0x537499e (0x7f984357499e in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #3: at::TensorIteratorBase::serial_for_each(c10::function_ref<void (char**, long const*, long, long)>, at::Range) const + 0x36f (0x7f983f5a278f in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #4: at::TensorIteratorBase::for_each(c10::function_ref<void (char**, long const*, long, long)>, long) + 0x167 (0x7f983f5a2c67 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #5: <unknown function> + 0x53640c5 (0x7f98435640c5 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #6: <unknown function> + 0x254ea3b (0x7f984074ea3b in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #7: <unknown function> + 0x254ebd3 (0x7f984074ebd3 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #8: at::_ops::index_Tensor::redispatch(c10::DispatchKeySet, at::Tensor const&, c10::List<c10::optional<at::Tensor> > const&) + 0x90 (0x7f98401e8c80 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #9: <unknown function> + 0x38ba8bc (0x7f9841aba8bc in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #10: <unknown function> + 0x38bae26 (0x7f9841abae26 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #11: at::_ops::index_Tensor::call(at::Tensor const&, c10::List<c10::optional<at::Tensor> > const&) + 0x1a3 (0x7f9840239d43 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #12: at::Tensor::index(c10::ArrayRef<at::indexing::TensorIndex>) const + 0x1ad (0x7f983f59dbed in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #13: at::Tensor::index(std::initializer_list<at::indexing::TensorIndex>) const + 0x36 (0x7f983f59e616 in /home/ubuntu/f2-nerf/External/libtorch/lib/libtorch_cpu.so)
frame #14: <unknown function> + 0x90ab0 (0x561c4951cab0 in /home/ubuntu/f2-nerf/build/main)
frame #15: <unknown function> + 0x13b7c2 (0x561c495c77c2 in /home/ubuntu/f2-nerf/build/main)
frame #16: <unknown function> + 0x13cb2a (0x561c495c8b2a in /home/ubuntu/f2-nerf/build/main)
frame #17: <unknown function> + 0x516bd (0x561c494dd6bd in /home/ubuntu/f2-nerf/build/main)
frame #18: <unknown function> + 0x29d90 (0x7f980f829d90 in /lib/x86_64-linux-gnu/libc.so.6)
frame #19: __libc_start_main + 0x80 (0x7f980f829e40 in /lib/x86_64-linux-gnu/libc.so.6)
frame #20: <unknown function> + 0x5f2f5 (0x561c494eb2f5 in /home/ubuntu/f2-nerf/build/main)

Aborted (core dumped)

Do you have any idea what went wrong ?