From ba8edde57b3109d28d1dd93ca5def84b2b61cd7d Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Fri, 26 Mar 2021 09:51:52 +0000 Subject: [PATCH 1/3] Fix Indentation in test.py --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index 61d6965f7414..ffa8ebee9f9f 100644 --- a/test.py +++ b/test.py @@ -156,7 +156,7 @@ def test(data, "domain": "pixel"} for *xyxy, conf, cls in pred.tolist()] boxes = {"predictions": {"box_data": box_data, "class_labels": names}} # inference-space wandb_images.append(wandb_logger.wandb.Image(img[si], boxes=boxes, caption=path.name)) - wandb_logger.log_training_progress(predn, path, names) # logs dsviz tables + wandb_logger.log_training_progress(predn, path, names) if wandb_logger else None # logs dsviz tables # Append to pycocotools JSON dictionary if save_json: From 7f9cc21f2cd7470a469056fec6a6b510ab6d8855 Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Fri, 26 Mar 2021 10:00:52 +0000 Subject: [PATCH 2/3] CI fix --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index ffa8ebee9f9f..da07122e657e 100644 --- a/test.py +++ b/test.py @@ -156,7 +156,7 @@ def test(data, "domain": "pixel"} for *xyxy, conf, cls in pred.tolist()] boxes = {"predictions": {"box_data": box_data, "class_labels": names}} # inference-space wandb_images.append(wandb_logger.wandb.Image(img[si], boxes=boxes, caption=path.name)) - wandb_logger.log_training_progress(predn, path, names) if wandb_logger else None # logs dsviz tables + wandb_logger.log_training_progress(predn, path, names) if wandb_logger and wandb_logger.wandb_run else None # logs dsviz tables # Append to pycocotools JSON dictionary if save_json: From 242c5477e6198faac409bf3f1804f5ad731681da Mon Sep 17 00:00:00 2001 From: Ayush Chaurasia Date: Fri, 26 Mar 2021 20:10:43 +0530 Subject: [PATCH 3/3] Comply with PEP8: 80 characters per line --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index da07122e657e..c0af91120e60 100644 --- a/test.py +++ b/test.py @@ -156,7 +156,7 @@ def test(data, "domain": "pixel"} for *xyxy, conf, cls in pred.tolist()] boxes = {"predictions": {"box_data": box_data, "class_labels": names}} # inference-space wandb_images.append(wandb_logger.wandb.Image(img[si], boxes=boxes, caption=path.name)) - wandb_logger.log_training_progress(predn, path, names) if wandb_logger and wandb_logger.wandb_run else None # logs dsviz tables + wandb_logger.log_training_progress(predn, path, names) if wandb_logger and wandb_logger.wandb_run else None # Append to pycocotools JSON dictionary if save_json: