Add --feature-quality help warning

pull/1572/head
Piero Toffanin 2022-12-20 10:50:42 -05:00
rodzic 551a76df02
commit 70155e35e8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -26,7 +26,7 @@ def has_popsift_and_can_handle_texsize(width, height):
from opensfm import pypopsift
fits = pypopsift.fits_texture(int(width * 1.02), int(height * 1.02))
if not fits:
log.ODM_WARNING("Image size (%sx%spx) would not fit in GPU memory, falling back to CPU" % (width, height))
log.ODM_WARNING("Image size (%sx%spx) would not fit in GPU memory, try lowering --feature-quality. Falling back to CPU" % (width, height))
return fits
except (ModuleNotFoundError, ImportError):
return False