MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / test

Method test

pix2pix/models/base_model.py:98–106  ·  view source on GitHub ↗

Forward function used in test time. This function wraps function in no_grad() so we don't save intermediate steps for backprop It also calls to produce additional visualization results

(self)

Source from the content-addressed store, hash-verified

96 net.eval()
97
98 def test(self):
99 """Forward function used in test time.
100
101 This function wraps <forward> function in no_grad() so we don&#x27;t save intermediate steps for backprop
102 It also calls <compute_visuals> to produce additional visualization results
103 """
104 with torch.no_grad():
105 self.forward()
106 self.compute_visuals()
107
108 def compute_visuals(self):
109 """Calculate additional output images for visdom and HTML visualization"""

Callers 3

estimateboostFunction · 0.45
doubleestimateFunction · 0.45
test.pyFile · 0.45

Calls 2

forwardMethod · 0.95
compute_visualsMethod · 0.95

Tested by

no test coverage detected