(self)
| 798 | self.pixel_count[:, :, h_start:h_end, w_start:w_end] += self.weight |
| 799 | |
| 800 | def gather(self): |
| 801 | assert torch.all(self.pixel_count != 0) |
| 802 | return self.im_res.div(self.pixel_count) |
| 803 | |
| 804 | # ----------------------Patch Cropping---------------------------- |
| 805 | class Clamper: |