OpenDroneMap / orthorectify

Orthorectify images from ODM reconstruction
https://www.opendronemap.org/odm/
GNU Affero General Public License v3.0
11 stars 3 forks source link

DEM not found error #1

Open chriswilley opened 1 year ago

chriswilley commented 1 year ago

Running the command below returns Error: DEM file at '/path_to_files/osm_dem/dsm.tif' does not exist even though it does and at that location:

docker run -it -v /dataset-path:/path_to_files digipa/orthorectify /path_to_files

To be clear, /path_to_files contains the aerial images used for processing and the contents of the downloaded assets (Download Assets > All Assets) after WebODM has processed them. Is that the right configuration?

HeDo88TH commented 1 year ago

Check your docker command. The -v argument is host_folder:container_folder

chriswilley commented 1 year ago

Good catch, but I don't think that's the issue (or I'm confused about where files need to be). The path on my machine to the files is /home/chriswilley/projects/test. Within that folder are all of the JPGs from the aerial flight, plus all of the assets from the related ODM run (e.g.: entwine_pointcloud, odm_dem, odm_texturing and so on). A redacted list:

drwxrwxr-x 9 chriswilley chriswilley  4.0K Feb 28 11:45 .
drwxrwxr-x 4 chriswilley chriswilley  4.0K Feb 28 11:14 ..
-rw-r--r-- 1 chriswilley chriswilley   469 Feb 28 16:30 cameras.json
-rw-rw-r-- 1 chriswilley chriswilley  982K Oct 13 01:22 DJI_0028_R.JPG
-rw-rw-r-- 1 chriswilley chriswilley  976K Oct 13 01:22 DJI_0030_R.JPG
...
drwxrwxr-x 5 chriswilley chriswilley  4.0K Feb 28 11:36 entwine_pointcloud
-rw-r--r-- 1 chriswilley chriswilley   95K Feb 28 16:30 images.json
-rw-r--r-- 1 chriswilley chriswilley   87K Feb 28 16:30 log.json
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:36 odm_dem
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:36 odm_georeferencing
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:36 odm_orthophoto
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:45 odm_output
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:36 odm_report
drwxrwxr-x 2 chriswilley chriswilley  4.0K Feb 28 11:36 odm_texturing
-rw-r--r-- 1 chriswilley chriswilley  660K Feb 28 16:30 task_output.txt

Running this command gives the same error as in my original post:

docker run -it -v /home/chriswilley/projects:/test digipa/orthorectify /home/chriswilley/projects/test

What am I missing?

HeDo88TH commented 1 year ago

What am I missing?

You are missing a careful read of the documentation I pointed out. Hint: The docker container expects a local path (relative to the container)