Skip to content

Commit b79f3fc

Browse files
authored
Update lightning_wheat.py
1 parent 1583544 commit b79f3fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lightning_classes/lightning_wheat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ def training_step(self, batch, batch_idx):
8383

8484
def validation_step(self, batch, batch_idx):
8585
images, targets, image_ids = batch
86-
targets = [{k: v for k, v in t.items()} for t in targets]
86+
images = list(img for img in images)
87+
# targets = [{k: v for k, v in t.items()} for t in targets]
8788
outputs = self.model(images, targets)
89+
outputs = [{k: v for k, v in t.items()} for t in outputs]
8890
res = {target['image_id'].item(): output for target, output in zip(targets, outputs)}
8991
self.coco_evaluator.update(res)
9092

0 commit comments

Comments
 (0)