Skip to content

Commit 0e77611

Browse files
committed
added some notes and removed more dead code
1 parent bdbdf3b commit 0e77611

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/pytti/LossAug/DepthLossClass.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def init_AdaBins(device=None):
2929
class DepthLoss(MSELoss):
3030
@torch.no_grad()
3131
def set_comp(self, pil_image):
32-
# pil_image = pil_image.resize(self.image_shape, Image.LANCZOS)
3332
self.comp.set_(DepthLoss.make_comp(pil_image))
3433
if self.use_mask and self.mask.shape[-2:] != self.comp.shape[-2:]:
3534
self.mask.set_(TF.resize(self.mask, self.comp.shape[-2:]))

src/pytti/LossAug/LatentLossClass.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __init__(
2525
TF.resize(comp.clone(), (h, w)), weight, stop, name, image_shape
2626
)
2727

28+
# Comp and mask should live on the image representation, not the loss class.
2829
@torch.no_grad()
2930
def set_comp(self, pil_image, device=DEVICE):
3031
self.pil_image = pil_image

src/pytti/LossAug/MSELossClass.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def set_mask(self, mask, inverted=False, device=None):
5858
def convert_input(cls, input, img):
5959
return input
6060

61+
# Comp and mask should live on the image representation, not the loss class.
62+
# comp for sure
6163
@classmethod
6264
def make_comp(cls, pil_image, device=None):
6365
if device is None:

0 commit comments

Comments
 (0)