centreborelli / satnerf

Satellite Neural Radiance Fields
https://centreborelli.github.io/satnerf/
BSD 3-Clause "New" or "Revised" License
122 stars 23 forks source link

How to generate train.txt for training? #4

Closed xym2009 closed 2 years ago

xym2009 commented 2 years ago

Thanks for this excellent work!

When I was tring to train the model from the instructions, it got an error "FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Code/Python/satnerf-master/root_dir/crops_rpcs_ba/JAX_068/train.txt".

I used this command to generate dataset, "(ba) $ python3 create_satellite_dataset.py JAX068 /mnt/cdisk/roger/Datasets/DFC2019 /mnt/cdisk/roger/Datasets/SatNeRF/root_dir/crops_rpcs_ba/JAX_068".

gfacciol commented 2 years ago

Hi, this is because there are some hardcoded paths in the call you used to generate the dataset. It you have downloaded the DFC2019 data to some local folder then you should generate with

python3 create_satellite_dataset.py JAX068 //Datasets/DFC2019 //Datasets/SatNeRF/root_dir/crops_rpcs_ba/JAX_068".