So useless, just use overhead lines or batteries.
Hydrogen is just so much less efficient that it doesn't make sense except for industrial processes where there is no alternative.
The train line close to us already switched to battery trains and most other lines are overhead powered. And then the battery train just charges when it gets to parts of the tracks where there is overhead lines, no extra infrastructure needed.