So the question is whether you want per-dataset or per-image normalization - I would imagine that you want global because depth is a physical quantity (but in medical imaging it is not uncommon to use per-image, in particular when working with images taken by different scanners). If you need global, you’d need to iterate over the dataset once during preprocessing and find the maximum.
Best regards
Thomas