forked from mrq/DL-Art-School
Fix bug with chunk_with_reference
This commit is contained in:
parent
ce163ad4a9
commit
e7cf337dba
|
@ -14,6 +14,7 @@ class ChunkWithReference:
|
||||||
img = util.read_img(None, img_path, rgb=True)
|
img = util.read_img(None, img_path, rgb=True)
|
||||||
if img is None:
|
if img is None:
|
||||||
return np.zeros(128, 128, 3)
|
return np.zeros(128, 128, 3)
|
||||||
|
return img
|
||||||
|
|
||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
centers = torch.load(osp.join(self.path, "centers.pt"))
|
centers = torch.load(osp.join(self.path, "centers.pt"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user