Closed ciglenecki closed 2 years ago
In your out_dir/
there should be a transforms.json
. If you take a look at that file, it should have a list of all the images, how many do you see?
There are 10 elements (frames). There were 10 images in the input_dir
so I'm guessing the transforms.json
is fine.
transforms.json
:
{
"fl_x": 1576.078390249128,
"fl_y": 1573.7989096363758,
"cx": 981.3623899513723,
"cy": 770.0756596109569,
"w": 2000,
"h": 1500,
"camera_model": "OPENCV",
"k1": 0.02908676582308789,
"k2": -0.047658955250196165,
"p1": 0.0010081556988369774,
"p2": 0.0011319306469034032,
"frames": [
{
"file_path": "images/frame_00010.jpg",
"transform_matrix": [
[
-0.8166114393288079,
0.41892523514049446,
-0.39704836546674577,
-2.4375610219165464
],
[
-0.14091166558603932,
-0.8117852115958311,
-0.5666998083077851,
-4.779443261927901
],
[
-0.5597228418236129,
-0.40682479963344625,
0.7219445427067824,
-0.28845631170363795
],
[
0.0,
0.0,
0.0,
1.0
]
]
},
... # 9 more elements here
]
}
Which version of nerfstudio are you running? Can you try running with the latest version.
I just pulled the new version (0.1.6) and ran the same commands. I got a different error AttributeError: 'NoneType' object has no attribute 'ContractionType'
edit: please ignore the issue for now, it seems that I didn't properly install the CUDA toolkit ("NerfAcc: No CUDA toolkit found. NerfAcc will be disabled")
```
(nerfstudio) matej@doom:~/projects/nerfstudio$ ns-process-data images --data input_dir/ --output-dir out_dir
[01:25:14] 🎉 Done copying images. process_data.py:283
🎉 Done downscaling images. process_data.py:322
[01:25:15] 🎉 Done extracting COLMAP features. process_data.py:363
🎉 Done matching COLMAP features. process_data.py:377
[01:25:19] 🎉 Done COLMAP bundle adjustment. process_data.py:399
🎉 Done refining intrinsics. process_data.py:408
────────────────────────────────────────────── 🎉 🎉 🎉 All DONE 🎉 🎉 🎉 ──────────────────────────────────────────────
Starting with 10 images
We downsampled the images by 2x, 4x and 8x
Colmap matched 10 images
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
(nerfstudio) matej@doom:~/projects/nerfstudio$ ns-train instant-ngp --data out_dir/
[01:25:25] Using --data alias for --data.pipeline.datamanager.dataparser.data train.py:223
──────────────────────────────────────────────────────── Config ────────────────────────────────────────────────────────
Config(
output_dir=PosixPath('outputs'),
method_name='instant-ngp',
experiment_name=None,
timestamp='2022-10-22_012525',
machine=MachineConfig(seed=42, num_gpus=1, num_machines=1, machine_rank=0, dist_url='auto'),
logging=LoggingConfig(
relative_log_dir=PosixPath('.'),
steps_per_log=10,
max_buffer_size=20,
local_writer=LocalWriterConfig(
_target=
I created my own data and tried to train
instant-ngp
with the following commands:input_dir:
The error I get:
Config context: