MCPcopy Create free account
hub / github.com/IceClear/StableSR / gather

Method gather

scripts/util_image.py:800–802  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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----------------------------
805class Clamper:

Callers 3

inferenceFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected