MCPcopy Create free account
hub / github.com/TPCD/DCCL / img

Method img

project_utils/visualization_utils.py:973–983  ·  view source on GitHub ↗

self.img('input_img',t.Tensor(64,64))

(self, name, img_)

Source from the content-addressed store, hash-verified

971 opts=self.opts)
972
973 def img(self, name, img_):
974 """
975 self.img('input_img',t.Tensor(64,64))
976 """
977
978 if len(img_.size()) < 3:
979 img_ = img_.cpu().unsqueeze(0)
980 self._viz.image(img_.cpu(),
981 win=name,
982 opts=dict(title=name)
983 )
984 def img_grid_many(self, d):
985 for k, v in d.items():
986 self.img_grid(k, v)

Callers 1

img_gridMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected