A nonlinear solar magnetic field calibration method for the filter-based magnetograph by the residual network