Native ODM Windows GPU?

I am running my first test of ODM running natively on Windows. It does not seem to use GPU. Is this normal?

I see:

[INFO] CUDA drivers detected
[WARNING] Cannot use GPU for feature extraction: Cannot initialize CUDA

2 Likes

Welcome!

Sorry for the trouble! Could you please start with giving me a bit more information about your system?

For instance:

  1. Operating System and Version
    eg: Windows 11, MacOS 15.1, Ubuntu Linux 20.04LTS, etc…
  2. Hardware Specifications
    eg: 32GB RAM, i7-6700k, NVIDIA GTX 1050TI OC, 1TB SSD, etc…
  3. WebODM Install Method
    eg: Native installer, Docker, Snap, GitHub download, compiled from source
  4. WebODM/ODM Version
    eg: WebODM v1.9.12 Build 55, ODM v2.8.0, etc…
  5. Procesing Node
    eg: Automatic, Lightning, local (node-odm-1), etc…
  6. Screenshots demonstrating the issue/behavior/error messages

Thanks for the fast reply. Here is the info:

  1. Windows 11
  2. 32 GB RAM, 11th Gen Intel(R) Core™ i7-11800H @ 2.30GHz 2.30 GHz, 1 TB SSD, NVIDIA GeForce RTX 3080 Laptop 8 GB
  3. Native Windows ODM installer
  4. ODM 2.8.5
  5. sorry not sure about that one
  6. Here’s the start of what I see, copy-pasted from console (still running). In bold is the CUDA/GPU message.

venv) C:\ODM>run C:\Users\etien\OneDrive\Documents\projets\airplanteco\data\bog
[INFO] Initializing ODM 2.8.5 - Fri Jun 10 11:12:43 2022
[INFO] ==============
[INFO] 3d_tiles: False
[INFO] auto_boundary: False
[INFO] boundary: {}
[INFO] build_overviews: False
[INFO] camera_lens: auto
[INFO] cameras: {}
[INFO] cog: False
[INFO] copy_to: None
[INFO] crop: 3
[INFO] debug: False
[INFO] dem_decimation: 1
[INFO] dem_euclidean_map: False
[INFO] dem_gapfill_steps: 3
[INFO] dem_resolution: 5
[INFO] depthmap_resolution: 640
[INFO] dsm: False
[INFO] dtm: False
[INFO] end_with: odm_postprocess
[INFO] fast_orthophoto: False
[INFO] feature_quality: high
[INFO] feature_type: sift
[INFO] force_gps: False
[INFO] gcp: None
[INFO] geo: None
[INFO] gps_accuracy: 10
[INFO] ignore_gsd: False
[INFO] matcher_neighbors: 0
[INFO] matcher_type: flann
[INFO] max_concurrency: 16
[INFO] merge: all
[INFO] mesh_octree_depth: 11
[INFO] mesh_size: 200000
[INFO] min_num_features: 10000
[INFO] name: C:\Users\etien\OneDrive\Documents\projets\airplanteco\data\bog
[INFO] no_gpu: False
[INFO] optimize_disk_space: False
[INFO] orthophoto_compression: DEFLATE
[INFO] orthophoto_cutline: False
[INFO] orthophoto_kmz: False
[INFO] orthophoto_no_tiled: False
[INFO] orthophoto_png: False
[INFO] orthophoto_resolution: 5
[INFO] pc_classify: False
[INFO] pc_copc: False
[INFO] pc_csv: False
[INFO] pc_ept: False
[INFO] pc_filter: 2.5
[INFO] pc_geometric: False
[INFO] pc_las: False
[INFO] pc_quality: medium
[INFO] pc_rectify: False
[INFO] pc_sample: 0
[INFO] pc_tile: False
[INFO] primary_band: auto
[INFO] project_path: /
[INFO] radiometric_calibration: none
[INFO] rerun: None
[INFO] rerun_all: False
[INFO] rerun_from: None
[INFO] resize_to: 2048
[INFO] sfm_algorithm: incremental
[INFO] skip_3dmodel: False
[INFO] skip_band_alignment: False
[INFO] skip_orthophoto: False
[INFO] skip_report: False
[INFO] sm_cluster: None
[INFO] smrf_scalar: 1.25
[INFO] smrf_slope: 0.15
[INFO] smrf_threshold: 0.5
[INFO] smrf_window: 18.0
[INFO] split: 999999
[INFO] split_image_groups: None
[INFO] split_overlap: 150
[INFO] texturing_data_term: gmi
[INFO] texturing_keep_unseen_faces: False
[INFO] texturing_outlier_removal_type: gauss_clamping
[INFO] texturing_skip_global_seam_leveling: False
[INFO] texturing_skip_local_seam_leveling: False
[INFO] texturing_tone_mapping: none
[INFO] tiles: False
[INFO] time: False
[INFO] use_3dmesh: False
[INFO] use_exif: False
[INFO] use_fixed_camera_params: False
[INFO] use_hybrid_bundle_adjustment: False
[INFO] verbose: False
[INFO] ==============
[INFO] Running dataset stage
[INFO] Loading dataset from: C:\Users\etien\OneDrive\Documents\projets\airplanteco\data\bog\images
[INFO] Loading 276 images
[INFO] Wrote images database: C:\Users\etien\OneDrive\Documents\projets\airplanteco\data\bog\images.json
[INFO] Found 276 usable images
[INFO] Parsing SRS header: WGS84 UTM 19N
[INFO] Finished dataset stage
[INFO] Running split stage
[INFO] Normal dataset, will process all at once.
[INFO] Finished split stage
[INFO] Running merge stage
[INFO] Normal dataset, nothing to merge.
[INFO] Finished merge stage
[INFO] Running opensfm stage
[INFO] Maximum photo dimensions: 4000px
[INFO] Photo dimensions for feature extraction: 2000px
[INFO] CUDA drivers detected
[WARNING] Cannot use GPU for feature extraction: Cannot initialize CUDA
[INFO] Altitude data detected, enabling it for GPS alignment
[INFO] [‘use_exif_size: no’, ‘flann_algorithm: KDTREE’, ‘feature_process_size: 2000’, ‘feature_min_frames: 10000’, ‘processes: 16’, ‘matching_gps_neighbors: 0’, ‘matching_gps_distance: 0’, ‘matching_graph_rounds: 50’, ‘optimize_camera_parameters: yes’, ‘reconstruction_algorithm: incremental’, ‘undistorted_image_format: tif’, ‘bundle_outlier_filtering_type: AUTO’, ‘sift_peak_threshold: 0.066’, ‘align_orientation_prior: vertical’, ‘triangulation_type: ROBUST’, ‘retriangulation_ratio: 2’, ‘bundle_compensate_gps_bias: yes’, ‘matcher_type: FLANN’, ‘feature_type: SIFT’, ‘use_altitude_tag: yes’, ‘align_method: auto’, ‘local_bundle_radius: 0’]
[INFO] Wrote reference_lla.json
[INFO] running “C:\ODM\SuperBuild\install\bin\opensfm\bin\opensfm” detect_features “C:\Users\etien\OneDrive\Documents\projets\airplanteco\data\bog\opensfm”
2022-06-10 11:12:48,078 INFO: Capping memory usage to ~ 8421.0390625 MB
2022-06-10 11:12:48,078 INFO: Expecting to process 183 images.

2 Likes

Hmmm… Thanks for this. This matches a number of other recent reports we’ve had from users on builds newer than v1.9.11 Build 58, all on hardware and software that should be appropriate for GPU feature extraction.

3 Likes

See:

1 Like

With the latest build GPU feature extraction is again working for smaller images :slight_smile: However, I still don’t understand why a 12MB M2P image can’t have its features extracted inside 4GB of GPU memory.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.