Documentation
¶
Overview ¶
Command depthtrain learns the depth refinement (internal/stereo's RefineWeights) from 3D discs' pairs: stereobench -samples files, each a picture's left eye, the depth network's depth of it and the disc's disparity, all at half size.
depthtrain -train DIR -val DIR -out FILE [-epochs N] [-lr R]
The loss is what is left of the disc's disparity after fitting it, a picture at a time, by a scale and an offset of the refined depth (as stereobench's "fitted" measure): the films' own grading, which the pictures do not tell, is left out, and the depth's shape is learnt. Each epoch it reports the validation pictures' error after that fit (in pixels at the picture's size), the depth's as the network gives it and refined, and writes the weights.