Fix bug with chunk_with_reference

This commit is contained in:
James Betker 2020-10-12 10:23:03 -06:00
parent ce163ad4a9
commit e7cf337dba

View File

@ -14,6 +14,7 @@ class ChunkWithReference:
img = util.read_img(None, img_path, rgb=True)
if img is None:
return np.zeros(128, 128, 3)
return img
def __getitem__(self, item):
centers = torch.load(osp.join(self.path, "centers.pt"))